Available in the OSS Version

Video Player > Commercials Support

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.

The jQuery Video Player control supports inserted advertisement videos which are played at specified times during the initial video playback. Setting a property can make these advertisements appear every time the end user replays the video. The following sample demonstrates both how the inserted advertisements are played and how the property can be set 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, then 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