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

prevent youtube videos from auto-looping #17

Merged
merged 2 commits into from
Feb 18, 2017
Merged

Conversation

mziwisky
Copy link

the fix was to change a pause() to a stop() as shared in
mediaelement#1851

in addition, we had to turn off timeupdates in the UNSTARTED youtube
event handler, because when the youtube video finished, it would trigger
ENDED, then PLAYING for some reason, then UNSTARTED. so after PLAYING
turns timeupdates on, we turn them back on in UNSTARTED.

the fix was to change a `pause()` to a `stop()` as shared in
mediaelement#1851

in addition, we had to turn off timeupdates in the UNSTARTED youtube
event handler, because when the youtube video finished, it would trigger
ENDED, then PLAYING for some reason, then UNSTARTED. so after PLAYING
turns timeupdates on, we turn them back on in UNSTARTED.
Copy link

@a-b-r-o-w-n a-b-r-o-w-n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good.

@mziwisky
Copy link
Author

new commit up, don't know how to reject the old approval, but needs another look plz @astephenb

@a-b-r-o-w-n
Copy link

My review still stands. :shipit:

@mziwisky mziwisky merged commit 1f271a6 into master Feb 18, 2017
@mziwisky mziwisky deleted the dont-loop-youtube branch February 18, 2017 07:00
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

Successfully merging this pull request may close these issues.

2 participants