Skip to content

Commit f65ce4a

Browse files
committed
change ogg option to altSource to indicate WebM support
1 parent 83903b0 commit f65ce4a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

example-ogg.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
$(function() {
2828
var BV = new $.BigVideo({useFlashForFirefox:false});
2929
BV.init();
30-
BV.show('vids/river.mp4', {ogg:'vids/river.ogv'});
30+
BV.show('vids/river.mp4', {altSource:'vids/river.ogv'});
3131
});
3232
</script>
3333
</body>

index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@ <h2>Setup</h2>
5959
BV.init();
6060
BV.show('http://video-js.zencoder.com/oceans-clip.mp4');
6161
});</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>
6363
<p><blockquote><pre>
6464
$(function() {
6565
var BV = new $.BigVideo({useFlashForFirefox:false});
6666
BV.init();
67-
BV.show('vids/river.mp4', {ogg:'vids/river.ogv'});
67+
BV.show('vids/river.mp4', {altSource:'vids/river.ogv'});
6868
});</pre></blockquote></p>
6969
</div>
7070

js/bigvideo.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,8 @@
287287
if (ext === 'jpg' || ext === 'gif' || ext === 'png') {
288288
showPoster(source);
289289
} 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;
292292
}
293293
playVideo(source);
294294
isQueued = false;

0 commit comments

Comments
 (0)