Radiant Media Player

Multiple audio tracks support (HLS & DASH)



The above example will display multi-audio tracks in HLS. The language name of the audio track is indicative, "Deutsch" and "Fran├žais" tracks will play music.


Audio-selector module

Radiant Media Player supports the rendering of mutliple audio tracks (different language or bitrate) in HLS & DASH. When the player detects multiple audio tracks within a HLS or DASH stream it will automatically display the audio selector module (headset icon). Information held within this module will be based from the available information in the HLS or DASH manifest.

This features is supported for on-demand & live video streaming.


Player code example

The below example is the one used for the player displayed above (HLS with multi-languages audio-tracks):

<script src="https://cdn.radiantmediatechs.com/rmp/v4/latest/js/rmp.min.js"></script>
<div id="rmpPlayer"></div>
<script>
var bitrates = {
  // Our multi-audio HLS stream
  hls: 'https://dqwp3xzzbfhtw.cloudfront.net/vod/smil:hls-maudios-prod.smil/playlist.m3u8'
};
var settings = {
  width: 640,
  height: 360,
  licenseKey: 'your-license-key',
  delayToFade: 3000,
  bitrates: bitrates,
  googleCast: false,
  poster: 'https://www.radiantmediaplayer.com/images/poster-rmp-showcase.jpg'
};
var rmp = new RadiantMP('rmpPlayer');
rmp.init(settings);
</script>

Support notes

  • On iOS the player must be in fullscreen mode for the audio-selector menu to be available
  • Multi-audio tracks HLS or DASH casting with Google Cast is not supported - googleCast setting should be set to false for such use-cases
  • Generally the change in audio track is near instant but depending on the configuration and buffer state the player may take a couple of seconds to change audio track.