Skip to content
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

Open
developerweeks opened this issue Mar 3, 2015 · 1 comment
Open

Switching from loop to noLoop #161

developerweeks opened this issue Mar 3, 2015 · 1 comment

Comments

@developerweeks
Copy link

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.

@mwvd
Copy link

mwvd commented Sep 11, 2015

@developerweeks Thank you!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants