Radiant Media Player

Ad scheduler



Features

Insert pre-roll, mid-roll and/or post-roll ads at designated timestamps.

Suitable for linear, non-linear (or both) ads.

Compatible with on-demand and live media content for desktop and mobile devices.

Does not require VMAP support. VMAP may support more advanced use-cases (like multiple pre-rolls) and should be preferred when available.


Documentation


Documentation sections

This documentation page applies when using the Google IMA SDK with Radiant Media Player. We currently do not support the ad scheduler with rmp-vast.


1 pre-roll, 1 mid-roll at 60s, 1 post-roll video ads

<script src="https://cdn.radiantmediatechs.com/rmp/4.4.4/js/rmp.min.js" 
  integrity="sha384-KfgOHL+uRs3rPCnZledCYzAuPc3+eu4j6DQzjQH8370JtLm2QhZzZSlZ4r9OfCtK"
  crossorigin="anonymous"></script>
<div id="rmpPlayer"></div>
<script>
// Define bitrates
var bitrates = {
  mp4: [
    'https://www.rmp-streaming.com/media/bbb-360p.mp4'
  ]
};
// Define schedule
var schedule = {
  // Preroll
  preroll: 'https://www.radiantmediaplayer.com/vast/tags/inline-linear.xml',
  // Midroll
  midroll: [
    [60, 'https://www.radiantmediaplayer.com/vast/tags/inline-linear-skippable.xml']
  ],
  // Postroll
  postroll: 'https://www.radiantmediaplayer.com/vast/tags/inline-linear.xml'
};
var settings = {
  licenseKey: 'your-license-key',
  delayToFade: 3000,
  width: 640,
  height: 360,
  bitrates: bitrates,
  poster: 'https://www.radiantmediaplayer.com/images/poster-rmp-showcase.jpg',
  ads: true,
  // Inject schedule in player settings
  adSchedule: schedule
};
var elementID = 'rmpPlayer';
var rmp = new RadiantMP(elementID);
// Initialize player
rmp.init(settings);
</script>

Cycling video ads in a live stream

For live video streaming you can display mid-roll video ads at fixed or flexible intervals. In the following example a pre-roll is played when the live player is started and mid-roll video ads are played every 2 minutes (when the player is not paused) for the first 10 minutes of the live stream:

<script src="https://cdn.radiantmediatechs.com/rmp/4.4.4/js/rmp.min.js" 
  integrity="sha384-KfgOHL+uRs3rPCnZledCYzAuPc3+eu4j6DQzjQH8370JtLm2QhZzZSlZ4r9OfCtK"
  crossorigin="anonymous"></script>
<div id="rmpPlayer"></div>
<script>
// Define bitrates
var bitrates = {
  hls: 'https://dqwp3xzzbfhtw.cloudfront.net/testlive/smil:live.smil/playlist.m3u8'
};
// Define schedule
var schedule = {
  // Preroll
  preroll: 'https://www.radiantmediaplayer.com/vast/tags/inline-linear.xml',
  // Midroll: a mid-roll ad is played every 120 seconds (2 minutes) for the first 10 minutes of live video
  midroll: [
    [120, 'https://www.radiantmediaplayer.com/vast/tags/inline-linear.xml'],
    [240, 'https://www.radiantmediaplayer.com/vast/tags/inline-linear.xml'],
    [360, 'https://www.radiantmediaplayer.com/vast/tags/inline-linear.xml'],
    [480, 'https://www.radiantmediaplayer.com/vast/tags/inline-linear.xml'],
    [600, 'https://www.radiantmediaplayer.com/vast/tags/inline-linear.xml']
  ]
};
var settings = {
  licenseKey: 'your-license-key',
  delayToFade: 3000,
  width: 640,
  height: 360,
  bitrates: bitrates,
  isLive: true,
  poster: 'https://www.radiantmediaplayer.com/images/poster-rmp-showcase.jpg',
  ads: true,
  // Inject schedule in player settings
  adSchedule: schedule
};
var elementID = 'rmpPlayer';
var rmp = new RadiantMP(elementID);
// Initialize player
rmp.init(settings);
</script>

Mid-roll video ads using the midrollRepeat attribute (live or on-demand video)

The midrollRepeat attribute lets you repeat a request to a specific adTag at regular intervals.

<script src="https://cdn.radiantmediatechs.com/rmp/4.4.4/js/rmp.min.js" 
  integrity="sha384-KfgOHL+uRs3rPCnZledCYzAuPc3+eu4j6DQzjQH8370JtLm2QhZzZSlZ4r9OfCtK"
  crossorigin="anonymous"></script>
<div id="rmpPlayer"></div>
<script>
// Define bitrates
var bitrates = {
  mp4: [
    'https://www.rmp-streaming.com/media/ed-360p.mp4'
  ]
};
// Define schedule
var schedule = {
  // Preroll
  preroll: 'https://www.radiantmediaplayer.com/vast/tags/inline-linear.xml',
  // Midroll: every 60 seconds the player will attempt to load a video ad at the given URL.
  midrollRepeat: [60, 'https://www.radiantmediaplayer.com/vast/tags/inline-linear.xml']
};
var settings = {
  licenseKey: 'your-license-key',
  delayToFade: 3000,
  width: 640,
  height: 360,
  bitrates: bitrates,
  poster: 'https://www.radiantmediaplayer.com/images/poster-rmp-showcase.jpg',
  ads: true,
  // Inject schedule in player settings
  adSchedule: schedule
};
var elementID = 'rmpPlayer';
var rmp = new RadiantMP(elementID);
// Initialize player
rmp.init(settings);
</script>

Support notes

  • Mid-roll timestamps must be expressed in seconds
  • For live video content do not include post-roll data as this would be irrelevant
  • The midrollRepeat setting is capped at 50 midroll ads impression
  • Mid-roll or post-roll video ads are not supported with DVR streaming (only pre-roll linear video ads are currently supported)