SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Aug 2011
    Location
    Trinidad and Tobago
    Posts
    194
    Mentioned
    0 Post(s)
    Tagged
    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
    Location
    Christchurch, New Zealand
    Posts
    14,682
    Mentioned
    99 Post(s)
    Tagged
    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


Bookmarks

Posting Permissions

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