Radiant Media Player

Ad skipping



Ad skipping documentation sections


Ad skipping scope of support

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:

  • VAST 3 skippable video ads: when a valid VAST 3 tag with skippable information (e.g. skip information are held within the VAST XML response) is presented to the player, it will automatically read that information and display a skip button when appropriate. This is available for the Google IMA and our rmp-vast VAST parser - no extra configuration is required.
  • Ad skipping through player settings: in this case skip information are not held within the VAST XML response but are passed to the player through player settings.

Ad skipping through player settings

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.

Before enabling ad skipping through player settings make sure your ad-server/advertiser contract allows for custom ad skipping.

Do not use ad skipping through player settings with the Google ads network (AdSense, DFP, AdX ...) - most ads delivered through the Google ads network will either be VAST 3 skippable compliant or are not intended to be skippable.

Do not enable ad skipping through player settings if your inventory contains VAST 3 skippable video ads as this may cause the display of 2 overlapping skip buttons which is not ideal user experience.

adSkipButton: Boolean

When set to true this setting will enable the display of a skip button while a linear video ad is on stage. Default: false.

adSkipOffset: Number

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.

Example:

Player code for the above example:

<!-- Include Radiant Media Player JavaScript file in your <body> or <head> -->
<script src="https://cdn.radiantmediatechs.com/rmp/4.6.29/js/rmp.min.js" 
  integrity="sha384-sMI2HuoPulvUlSUh7354Ye9LU4jDAFk7kVVXNDk4mCW3O7fV5uWX78fn9MRjjScO"
  crossorigin="anonymous"></script>
<!-- Set up your wrapper div with its unique id -->
<div id="rmpPlayer"></div>
<script>
// Our streaming URLs
var bitrates = {
  mp4: [
    'https://www.rmp-streaming.com/media/bbb-360p.mp4'
  ]
};
// Our player labels to customise our ad skipping messages
var labels = {
  ads: {
    controlBarCustomMessage: 'RMP ad',
    skipMessage: 'Skip this ad',
    skipWaitingMessage: 'Skip this ad in'
  }
};
// Our player settings
var settings = {
  licenseKey: 'your-license-key',
  bitrates: bitrates,
  width: 640,
  height: 360,
  ads: true,
  // Here we pass the ad skipping player settings
  adSkipButton: true,
  adSkipOffset: 4,
  labels: labels,
  adTagUrl: 'https://www.radiantmediaplayer.com/vast/tags/inline-linear.xml',
  poster: 'https://www.radiantmediaplayer.com/images/poster-rmp-showcase.jpg'
};
var elementID = 'rmpPlayer';
var rmp = new RadiantMP(elementID);
rmp.init(settings);
</script>
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 3.0 License.