File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 1414
1515 var webcam = {
1616
17+ id : null ,
18+
1719 width : 320 ,
1820 height : 240 ,
1921
4143 }
4244 }
4345
44- this . append ( '<object id="webcam-object" type="application/x-shockwave-flash" data="' + webcam . swffile + '" width="' + webcam . width + '" height="' + webcam . height + '"><param name="movie" value="' + webcam . swffile + '" /><param name="FlashVars" value="mode=' + webcam . mode + '&quality=' + webcam . quality + '" /></object>' ) ;
46+ var source = '<object id="webcam-object" type="application/x-shockwave-flash" data="' + webcam . swffile + '" width="' + webcam . width + '" height="' + webcam . height + '"><param name="movie" value="' + webcam . swffile + '" /><param name="FlashVars" value="mode=' + webcam . mode + '&quality=' + webcam . quality + '" /></object>' ;
47+
48+ if ( null !== webcam . id ) {
49+ $ ( webcam . id ) . html ( source ) ;
50+ } else {
51+ this . append ( source ) ;
52+ }
4553
4654 ( _register = function ( run ) {
4755
You can’t perform that action at this time.
0 commit comments