Radiant Media Player

HTML5 audio ads



Documentation sections


Scope of support for HTML5 audio ads

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

HTML5 audio ads are supported in our HTML5 audio player through the Google IMA SDK with VAST in various formats (support may vary based on device capabilities): M4A (AAC), MP3, OGG or even HLS (where natively supported by the device). We currently do not support HTML5 audio ads with our rmp-vast parser with our audio-only player. Note that audio-ads must be served with VAST as the IMA SDK does not currently support IAB DAAST standard.

HTML5 audio ads should be linear audio ads. Non-linear or skippable linear ads are not supported as they would not fit within the HTML5 audio player.

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


Usage example

Single linear preroll HTML5 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/5.0.6/js/rmp.min.js"></script>
<!-- Player container element -->
<div id="rmpPlayer"></div>
<!-- Set up player configuration options -->
<script>
// Streaming source - HLS audio-only in this example
var src = {
  hls: 'https://your-audio-only-hls-url.m3u8'
};
// Player settings
var settings = {
  licenseKey: 'your-license-key',
  src: src,
  width: 640,
  // Enabling ads
  ads: true,
  adTagUrl: 'https://your-audio-ad-tag-url',
  adTagWaterfall: [
    'https://your-audio-ad-tag-fallback-url'
  ],
  audioOnly: true
};
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.