Offering ad skipping options to your audience is great way to monetise your content while providing a gentle and smart viewing experience. Radiant Media Player supports ad skipping in 2 ways:
Using VAST 3 skippable video ads (e.g. skip information held in the VAST XML response) is the preferred way to support ad skipping with Radiant Media Player. As an alternative we support configurable ad skipping through player settings with rmp-vast.
Configurable ad skipping through player settings is not available for the Google IMA SDK as it would go against Google terms of service. VAST skippable ads must be configured with the ad-server when using the Google IMA SDK.
When both adSkipButton is set to true and a VAST skippable ad is detected, only one skip button will show and the VAST skippable data will take precedence.
When set to true this setting will enable the display of a skip button while a linear video ad is on stage. Default: false.
Sets the time in seconds before the linear ad becomes effectively skippable. In-between the player will show a message and countdown announcing the soon-to-be available skip option. Default: 5.
It is also possible to customise the skip message and waiting for skip message through player labels.
Player code for the above example - see this example here
The following methods are available for skippable ads. Note that those methods only work with VAST 3+ skippable ads or when the
adSkipButton setting is used.
This method orders the player to skip the currently displayed ad (and to resume content). This method only has effects if the ad is a skippable ad and is in a state where it can be skipped. Once may query the
method to know if an ad can be skipped or not.
This method returns a
Boolean stating if the ad on stage can be skipped (returns
true) or not (returns
The following API events are available when dealing with skippable ads:
adskippablestatechanged: fires when the displayed ads skippable state is changed
adskipped: fires when the ad is skipped by the user