-
Notifications
You must be signed in to change notification settings - Fork 422
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switching from loop to noLoop #161
Comments
@developerweeks Thank you!! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: