Radiant Media Player

Multiple audio tracks support (MPEG-DASH & HLS)



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.


Features

HTML5 Flash

Multiple audio tracks support with adaptive bitrate streaming

HLS to HTML5 video

HLS to Flash video selection menu to be available

MPEG-DASH to HTML5 video


Player code examples


HLS multi-audio tracks stream

<script src="https://cdn.radiantmediatechs.com/rmp/v3/latest/js/rmp.min.js"></script>
<div id="rmpPlayer"></div>
<script>
var bitrates = {
  // Our multi-audio HLS stream
  hls: 'https://streamingrmp-1479.kxcdn.com/vod/smil:hls-maudios-prod.smil/playlist.m3u8'
};
var settings = {
  width: 640,
  height: 360,
  licenseKey: 'your-license-key',
  delayToFade: 3000,
  bitrates: bitrates,
  // optional label for Flash fallback
  labels: {
    flash: {
      defaultAudioLabel: 'Original'
    }
  },
  poster: 'https://www.radiantmediaplayer.com/images/poster-rmp-showcase.jpg'
};
var rmp = new RadiantMP("rmpPlayer");
rmp.init(settings);
</script>

MPEG-DASH multi-audio tracks streaming to HTML5 video

<script src="https://cdn.radiantmediatechs.com/rmp/v3/latest/js/rmp.min.js"></script>
<div id="rmpPlayer"></div>
<script>
var bitrates = {
  // Our multi-audio MPEG-DASH stream
  dash: 'http://dash.edgesuite.net/dash264/TestCases/10a/1/iis_forest_short_poem_multi_lang_480p_single_adapt_aaclc_sidx.mpd',
  // this exists as a fallback where MPEG-DASH is not supported
  mp4: [
    'https://rmpsite-1479.kxcdn.com/media/ed-360p.mp4'
  ]
};
var settings = {
  width: 640,
  height: 360,
  licenseKey: 'your-license-key',
  delayToFade: 3000,
  bitrates: bitrates,
  // Optional dashForceInitialAudioIndex setting
  // dashForceInitialAudioIndex: 0,
  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 language selection menu to be available
  • HLS to HTML5 video with multi-audio tracks is currently only supported for on-demand video
  • MPEG-DASH to HTML5 video with multi-audio tracks is supported for on-demand and live video
  • Multi-audio tracks HLS casting with Google Cast is not supported (Google Cast devices do not seem to support HLSv4 with audio as a separated playlist at the moment) -
  • Multi-audio tracks MPEG-DASH casting with Google Cast is supported but only the default audio track found in the MPEG-DASH manifest will be cast