SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Aug 2011
    Trinidad and Tobago
    0 Post(s)
    0 Thread(s)

    Handling Video Rotation

    Is there a JS I can implement that allows me to have one video playback on the screen but when one video finishes it loads the another and starts automatically. Currently the videos I have is flash based and in different folders on the server. Any help will be greatly appreciated.

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Christchurch, New Zealand
    104 Post(s)
    4 Thread(s)
    If you're using an HTML5 video element, it should fire an "ended" event when the video has finished playing.
    Some details about the implementation can be found in the ended playback section of the specs.

    There is now also a video.js plugin that allows you to greatly simplify the video playback, and provides a cross-browser solution to playing and managing video in web pages. It also allows you to listen for the ended event, as can be seen in this thread on Redirect to URL Once Video Has Ended
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts