Wowza Community

ask about toggle multi language audio tracks JWplayer7

Hi I’m beginner and new Junior developer in small firm about streaming anime video on internet.

Too much question now, if I want to make JWplayer7 video that can toggle audio language, what should I begin with?

I ask in JWplayer forum

https://support.jwplayer.com/customer/portal/questions/16678831-jwplayer7-multi-language-audio-track-

they said JWplayer multi audio track support HLS stream and give me a link to demo sourcecode page,

but that page just show file: https://wowzaec2demo.streamlock.net/vod-multitrack/definst/smil:ElephantsDream/ElephantsDream.smil/playlist.m3u8 <<<Where is this come form? How to do this?

and then tell me, you would have to contact your stream provider/CDN about multi track audio in your streams. (WOWZA)

and I have many questions.

1.Do I need to have 1 video file and two external sound audio files? because now I have 2 video files with same animation but the audio language are different (don’t have external sound audio files)

  1. https://www.wowza.com/docs/how-to-select-multiple-tracks-from-a-vod-file-modulemultitrackvod <<Is this method necessary for me? or I need to use other method

3.I don’t understand the definition of HLS (.m3u8). I read many articles. some said It’s for ios phone. does this mean on PC cannot play? some said the meaning is playlist file

4.#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID=“audio”,LANGUAGE=“eng”,NAME=“English”,AUTOSELECT=YES,DEFAULT=NO,URI=“en/prog_index.m3u8”

#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID=“audio”,LANGUAGE=“fre”,NAME=“French”,AUTOSELECT=YES,DEFAULT=NO,URI=“fr/prog_index.m3u8”

#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID=“audio”,LANGUAGE=“nl”,NAME=“Dutch”,AUTOSELECT=YES,DEFAULT=NO,URI=“nl/prog_index.m3u8”

#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=150000,CODECS=“avc1.42e00a,mp4a.40.2”,AUDIO=“audio”,SUBTITLES=“subs”

is this m3u8 file? I’m not sure the “en/prog_index.m3u8” on edge is just sound file or video file? and do I have to write like this to import this file to embed in JWplayer? I’m not sure if this method is obsolete for JWplayer7

The answer depends on whether you want to achieve that for VOD or Live.

For vod:

https://www.wowza.com/docs/how-to-select-multiple-tracks-from-a-vod-file-modulemultitrackvod

For live:

An article to use multiple tracks for HLS.

To play such multiple audio, you will need to have a player supporting it. JWPlayer Premium for instance.

The playlist you link , should be called by the player.

The latest 4.5.0.01 update brought mpeg-dash multiple audio capabilities

https://www.wowza.com/docs/how-to-use-alternative-audio-or-video-tracks-with-mpeg-dash-streams

The bitmovin dash player supports multiple live audio. Haven’t checked jwplayer

Mpeg-ts also supports multiple audio of course;

https://www.wowza.com/docs/how-to-select-mpeg-ts-stream-by-program-id-and-also-audio-language-by-pid

Another way is to use the AVMix module on several streams which are in sync.

Hello Supanatthana,

I believe you and I have been engaged in a few recent tickets but I am checking this thread to make sure that your questions here have been resolved.

Thank you Phamkv for your useful response.

Regards,

Jason Hatchett