Skip to content

Commit b52dc33

Browse files
committed
use static background image for playlist example
1 parent d415b65 commit b52dc33

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ Find out everything you need to know about how to use this plugin on its demo pa
55

66
* * *
77
### Draftfcb Chicago
8-
We are the development group at Draftfcb Chicago. If you want to work on big digital ideas for big brands, get in touch with us on our [devrecruiting@draftfcb.com](mailto:devrecruiting@draftfcb.com).
8+
We are the development group at Draftfcb Chicago. If you want to work on big digital ideas for big brands, get in touch with us at [devrecruiting@draftfcb.com](mailto:devrecruiting@draftfcb.com).

bigvideo.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,13 @@
4141
BigVideo.settings = $.extend({}, defaults, options);
4242

4343
// If only using mp4s and browser is firefox, use flash fallback
44-
if (BigVideo.settings.useFlashForFirefox && (navigator.userAgent.toLowerCase().indexOf('firefox') != -1)) {
44+
var ua = navigator.userAgent.toLowerCase();
45+
var isFirefox = ua.indexOf('firefox') != -1;
46+
if (BigVideo.settings.useFlashForFirefox && (isFirefox)) {
4547
VideoJS.options.techOrder = ['flash'];
4648
}
4749

50+
4851
function updateSize() {
4952
var windowW = $(window).width();
5053
var windowH = $(window).height();

example-playlist.html

+2-6
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,8 @@ <h2>Fullscreen Background Video Website With Playlist Example</h2>
5656
// initialize BigVideo
5757
var BV = new $.BigVideo({forceAutoplay:isTouch});
5858
BV.init();
59-
// show background image on touchscreens, background video on others
60-
if (isTouch) {
61-
BV.show('img/background-dock.jpg');
62-
} else {
63-
BV.show('http://player.vimeo.com/external/47395197.sd.mp4?s=b6a94437c655d572fc80fa86e551d3e6',{ambient:true});
64-
}
59+
// show background image
60+
BV.show('img/background-dock.jpg');
6561

6662
// Playlist button click starts video, enables autohiding
6763
$('.playlist-btn').on('click', function(e) {

0 commit comments

Comments
 (0)