Radiant Media Player

Audio ads

Mobile applications documentation



Scope of support for audio ads

Radiant Media Player supports audio-only streaming in HLS, DASH or progressive download with flexible configuration options. See our audio-only player docs for more information.

Audio ads are supported within our audio-only player in various formats: M4A (AAC), MP3 or even HLS (where natively supported by the device). Other formats (like Vorbis or Opus in .oga or .webm) may work depending on device capabilities.

Audio-ads must be linear audio-ads. Non-linear or Skippable Linear ads are not supported as they would not fit the audio-only player.

Audio-ads and our audio-only player can be controlled through our player API & ads API. You can also use ad waterfalling or our ad scheduler for audio ads.


Example

Single linear preroll audio ad:

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.3.10/js/rmp.min.js" 
  integrity="sha384-oqyrp9HkidOFyRcmx+X2yLeX4ICBkGqK+vCML6IeTlkD3JV9omoVl0lvZJNqdmTX"
  crossorigin="anonymous"></script>
<!-- Set up your wrapper div with its unique id -->
<div id="rmpPlayer"></div>
<!-- Set up player configuration options -->
<script>
// First we specify bitrates to feed to the player
var bitrates = {
  hls: 'https://dqwp3xzzbfhtw.cloudfront.net/vod/smil:audio.smil/playlist.m3u8'
};
// Then we set our player settings
var settings = {
  licenseKey: 'your-license-key',
  bitrates: bitrates,
  width: 640,
  ads: true,
  adTagUrl: 'https://www.radiantmediaplayer.com/vast/tags/audio.xml',
  adTagWaterfall: [
    'https://www.radiantmediaplayer.com/vast/tags/audio.xml'
  ],
  audioOnly: true
};
// Reference to the wrapper div (unique id)
var elementID = 'rmpPlayer';
// Create an object based on RadiantMP constructor
var rmp = new RadiantMP(elementID);
// Initialization ... test your page and done!
rmp.init(settings);
</script>
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 3.0 License.