HTML5 Video / End of a Video Poster

后端 未结 10 727
感动是毒
感动是毒 2020-11-28 12:09

With the above; within the HTML

10条回答
  •  广开言路
    2020-11-28 12:23

    In short: what you need is to add video.addEventListener('ended',function() {}) and trigger video.load() in your custom JavaScript.

    Here is a related post that redirects after video is played, you may modify it accordingly - Redirect html5 video after play.

    References to look for detailed information:

    • Everything you need to know about HTML5 video and audio
    • Media events to which you can bind
    • HTML5 Video Events and API
    • MSDN - Using HTML5 video events

提交回复
热议问题