We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Sometimes the ended event doesn't happen and the video controls will lock up.
The text was updated successfully, but these errors were encountered:
Flash or Ogg?
Sorry, something went wrong.
Yeah using the VideoElement and ogg.
Using a setTimeout instead of relying on the event being fired helped with my use. Using something like this in the media player js:
function end_loop(){ if(t.media.ended){ show_end() } else { setTimeout(end_loop, 333) } } if (t.media){ end_loop() } function show_end(){ t.media.setCurrentTime(0); t.media.pause(); if (t.options.loop) { t.media.play(); } else { t.controls.css('visibility','hidden'); } } // ended for all t.media.addEventListener('ended', show_end, true);
No branches or pull requests
Sometimes the ended event doesn't happen and the video controls will lock up.
The text was updated successfully, but these errors were encountered: