Is there any way to get Protocol stream URL included selected audio track

56 views
Skip to first unread message

NaviX

unread,
Mar 22, 2019, 11:51:20 PM3/22/19
to Mistserver.org
Hi all,
I have videos MP4 format with multiple audio tracks but when using protocol stream url from Mistserver in HTML5 and VideoJS it alway get only first default audio track.
I know some Stream Servers can deliver protocol stream URLs included audio track. Is there any way to get protocol stream URL from mistserver?
Meta-Player from Mist can get all audio tracks but we cannot use it because of lack documents to help us can customize as other players Videojs, Flowplayer,etc for our demand.
Thanks for any advices!

NaviX

Carina van der Meer

unread,
Mar 23, 2019, 4:21:26 AM3/23/19
to Mistserver.org
Hi NaviX,

For most protocols you can use ?audio=<trackid>&video=<trackid>.
HLS has a different syntax: https://example.com:4433/hls/streamname/<audiotrackid>/<videotrackid>/index.m3u8

If it's easier you can view the stream you want the url from on the preview tab of the Management Interface. Open the browser's development console (F12), go to the network tab. If you choose the protocol and track you want in the player, you'll see a network request appear. Just copy the url from there.

I hope that helps, feel free to ask if you run into anything.

Kind regards,
Carina van der Meer

Carina van der Meer

unread,
Mar 23, 2019, 9:40:34 AM3/23/19
to Mistserver.org
Apparently I messed up. The syntax for HLS is actually https://example.com:4433/hls/streamname/<videotrackid>_<audiotrackid>/index.m3u8

Apologies for the confusion.

Kind regards,
Carina van der Meer

NaviX

unread,
Mar 23, 2019, 11:34:03 AM3/23/19
to Mistserver.org

Thank so much, Carina van der Meer.
Your advice working fine. It loss my headache some days.
Navix
Reply all
Reply to author
Forward
0 new messages