Index: branches/new-upload/phase3/js2/mwEmbed/libEmbedVideo/mv_javaEmbed.js |
— | — | @@ -16,8 +16,9 @@ |
17 | 17 | 'volume_control':false |
18 | 18 | }, |
19 | 19 | getEmbedHTML : function (){ |
| 20 | + //big delay on embed html cuz its just for status updates and ie6 is crazy. |
20 | 21 | if(this.controls) |
21 | | - setTimeout('document.getElementById(\''+this.id+'\').postEmbedJS()', 150); |
| 22 | + setTimeout('document.getElementById(\''+this.id+'\').postEmbedJS()', 500); |
22 | 23 | //set a default duration of 30 seconds: cortao should detect duration. |
23 | 24 | return this.wrapEmebedContainer( this.getEmbedObj() ); |
24 | 25 | }, |
— | — | @@ -52,8 +53,9 @@ |
53 | 54 | '<param name="audio" value="true" />'+"\n"+ |
54 | 55 | '<param name="seekable" value="true" />'+"\n"+ |
55 | 56 | '<param name="duration" value="' + this.duration + '" />'+"\n"+ |
56 | | - '<param name="bufferSize" value="200" />'+"\n"+ |
57 | | - '</applet>'; |
| 57 | + '<param name="bufferSize" value="4096" />'+"\n"+ |
| 58 | + '</applet>'; |
| 59 | + |
58 | 60 | // Wrap it in an iframe to avoid hanging the event thread in FF 2/3 and similar |
59 | 61 | // Doesn't work in MSIE or Safari/Mac or Opera 9.5 |
60 | 62 | if ( embedTypes.mozilla ) { |
— | — | @@ -82,7 +84,7 @@ |
83 | 85 | }, |
84 | 86 | monitor:function(){ |
85 | 87 | this.getJCE() |
86 | | - if(this.jce){ |
| 88 | + if(this.jce && this.jce.getPlayPosition){ |
87 | 89 | try{ |
88 | 90 | //java reads ogg media time.. so no need to add the start or seek offset: |
89 | 91 | //js_log(' ct: ' + this.jce.getPlayPosition() + ' ' + this.supportsURLTimeEncoding()); |