ExoPlayer icon indicating copy to clipboard operation
ExoPlayer copied to clipboard

HLS multi language: double language but same ISO 639-2

Open Gian84 opened this issue 10 years ago • 5 comments

screenshot_2016-06-30-17-24-57 screenshot_2016-06-30-17-51-15

  • When I try to reproduce an HLS multi language content in the ExoPlayer demo app the audio list shows the same ISO 639-2 for different languages.
  • I'm using exoplayer 1.5.9.
  • I'm using different devices: Sony D5103 Android 4.4.4, Samsung SM-T700 Android 5.0.2, Samsung Galaxy S4 Android 5.0.2 and others.
  • Screenshots attached for different HLS contents. In the first case you can see "ITA" for both languages. I suppose the last row of the audio list should be "ENG" (in fact in the brackets I can read "audio-english").

N.B. this is a snippet of the master playlist:

...

EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="AUDIO_192000",NAME="audio-italian",DEFAULT=YES,AUTOSELECT=YES,LANGUAGE="ita"

EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="AUDIO_192000",NAME="audio-english",DEFAULT=NO,AUTOSELECT=NO,LANGUAGE="eng",URI="v18.m3u8"

...

Thanks a lot.

Gian84 avatar Jun 30 '16 16:06 Gian84

HlsSampleSource.txt

Hi, waiting for your next update I have tried to fix it and I share it with you. I have just added the following snippet: if (MimeTypes.isAudio(format.mimeType)) { language = chunkSource.getHlsMasterPlaylist().audios.get(j).getFormat().language; }

in the HlsSampleSource.java class (attached file, rows 560-562). Obviously I have created getHlsMasterPlaylist() method to recover the private HlsMasterPlaylist.

Gian84 avatar Jul 04 '16 17:07 Gian84

Would you kindly provide the URL to the media (you can use [email protected] if you don't want it to be public) so that I can see what the problem seems to be? The provided solution is appreciated but I would like to get to the bottom of the issue, since I fixed a somewhat similar issue not long ago.

AquilesCanta avatar Jul 04 '16 17:07 AquilesCanta

Yes, of course. I sent to you an email with this bug title as subject field yesterday. Let me know if you need more info.

Gian84 avatar Jul 05 '16 09:07 Gian84

@AquilesCanta - Is this fixed in V2? I don't think we need to backport to V1, but we should make sure things are working correctly in V2.

ojw28 avatar Aug 10 '16 19:08 ojw28

Yes, this will be fixed in V2 once the new Hls patch gets pushed.

AquilesCanta avatar Aug 11 '16 09:08 AquilesCanta