Available in the OSS Version

Video Player - Commercials

This sample demonstrates how to insert video advertisements into video playback in the jQuery video player, and how to specify the times to play the advertisements.
Always Play Commercials

This sample is designed for a larger screen size.

On mobile, try rotating your screen, view full size, or email to another device.

You can set a property in the jQuery video player to make the advertisements appear every time the end user replays the video. The sample demonstrates both how the inserted advertisements are played and how to set the property to a desired value. Note: When running this sample on a mobile device, the default device video player controls are rendered, unless the Modernizr JavaScript library is undefined. If for some reason you don't have the Modernizr library available on your page, the igVideoPlayer control is rendered, which in some cases may have fewer touch capabilities than the default device video player. That's why this sample uses the Modernizr library and in mobile contexts the igVideoPlayer falls back to the default device video player.

Code View

Copy to Clipboard