You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: