I’m try to implement caption display in html5, something like:
video_element.addEventListener('CUE=11ms',show_sub1,false)
how can I do this? and besides popcorn.js is there any better way to do this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
HTML5
<video>, or all HTML5 media elements, have timeupdate event you should use for such purposes.https://github.com/miohtama/Krusovice/blob/master/src/show.js#L953
More info:
https://duckduckgo.com/?q=!mdn+timeupdate