Javascript Snippet: Play next video

By | April 23, 2013

There is a requirement from one of my project to insert video ads before the actual video gets played.

There are ways to do it, one is to use JWPlayer and OVA plugin, or the other way is to write your own javascript to control the playback.

In the following demo, shows how you can put ad video in the first source tag, and put actual video in second source tag.

    
    
    

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.