Radiant Media Player supports the rendering of multiple 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 tracks selection 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, DVR and live video streaming.
HLS with multi-languages audio-tracks
<!-- Include Radiant Media Player - here we use the optimised build for hls.js --> <script src="https://cdn.radiantmediatechs.com/rmp/9.15.19/js/rmp-hlsjs.min.js"></script> <div id="rmp"></div> <script> const src = { // Your multi-audio HLS stream hls: 'https://your-hls-url.m3u8' }; const settings = { licenseKey: 'your-license-key', width: 640, height: 360, src: src, contentMetadata: { poster: [ 'https://your-poster-url.jpg' ] } }; const rmp = new RadiantMP('rmp'); rmp.init(settings); </script>
Similarly to the above example you can also use a DASH stream with embedded multi-audio tracks to display a multi-languages experience with our player.
See our player API docs here.
getAudioTracks
and setAudioTrack
API methods and
a complete example here.
©2015-2024 Radiant Media Player. All Rights Reserved.