File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 27
27
$ ( function ( ) {
28
28
var BV = new $ . BigVideo ( { useFlashForFirefox :false } ) ;
29
29
BV . init ( ) ;
30
- BV . show ( 'vids/river.mp4' , { ogg :'vids/river.ogv' } ) ;
30
+ BV . show ( 'vids/river.mp4' , { altSource :'vids/river.ogv' } ) ;
31
31
} ) ;
32
32
</ script >
33
33
</ body >
Original file line number Diff line number Diff line change @@ -59,12 +59,12 @@ <h2>Setup</h2>
59
59
BV.init();
60
60
BV.show('http://video-js.zencoder.com/oceans-clip.mp4');
61
61
});</ pre > </ blockquote > </ p >
62
- < p > For best results in Firefox, create an Ogg version of your video and configure BigVideo.js like this:</ p >
62
+ < p > For best results in Firefox, create an Ogg version of your video and configure BigVideo.js like this (works for WebM also) :</ p >
63
63
< p > < blockquote > < pre >
64
64
$(function() {
65
65
var BV = new $.BigVideo({useFlashForFirefox:false});
66
66
BV.init();
67
- BV.show('vids/river.mp4', {ogg :'vids/river.ogv'});
67
+ BV.show('vids/river.mp4', {altSource :'vids/river.ogv'});
68
68
});</ pre > </ blockquote > </ p >
69
69
</ div >
70
70
Original file line number Diff line number Diff line change 287
287
if ( ext === 'jpg' || ext === 'gif' || ext === 'png' ) {
288
288
showPoster ( source ) ;
289
289
} else {
290
- if ( options !== undefined && options . ogg && navigator . userAgent . toLowerCase ( ) . indexOf ( 'firefox' ) > - 1 ) {
291
- source = options . ogg ;
290
+ if ( options !== undefined && options . altSource && navigator . userAgent . toLowerCase ( ) . indexOf ( 'firefox' ) > - 1 ) {
291
+ source = options . altSource ;
292
292
}
293
293
playVideo ( source ) ;
294
294
isQueued = false ;
You can’t perform that action at this time.
0 commit comments