BigVideo.js
BigVideo.js copied to clipboard
Switching from loop to noLoop
I am building a site where the designer wants a loop video playing silently (ambient) with a large play button there. When the button is pressed a different video with sound is played, but not looped. Both .show() commands have explicit {ambient} settings in them but the second video was looping anyway. Turns out, because the first video looped, they all would as the library does not have a line for settings.doLoop = false; So I changed line 350 to this: if (isAmbient || options.doLoop) { settings.doLoop = true; } else { settings.doLoop = false; } Worked great for me.
@developerweeks Thank you!!