-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Couldn't select audio track #2056
Comments
--- library/src/main/java/com/google/android/exoplayer2/source/hls/HlsChunkSource.java (revision ) +++ library/src/main/java/com/google/android/exoplayer2/source/hls/HlsChunkSource.java (revision ) @@ -399,7 +399,7 @@ } } extractor = new TsExtractor(timestampAdjuster, - new DefaultTsPayloadReaderFactory(esReaderFactoryFlags), true); + new DefaultTsPayloadReaderFactory(esReaderFactoryFlags), false); } } else { // MPEG-2 TS segments, and we need to continue using the same extractor. |
I doubt the above response is relevant. |
Yes, I just have noticed that my solution is not for the issue. I got only 1 audio track. I suppose the issue is an encryption related. |
I could switch tracks on VLC or SM player. Android media player also can recognize it. |
Any news for this issue? |
Have you seen #2014 ? Is this related? If so, this is a duplicate. If that's the case, please close the issue. If not, please clarify, as I might be misunderstanding the problem. |
Also, if not a duplicate, try to provide a link for us to have a look. That makes everything easier. You can do so at [email protected]. |
This is our .ts file sample. https://drive.google.com/open?id=0B6PilUifi8koMkpmMzdaYk5fYkE |
This is a duplicate of #2014 . |
It won't work perfectly well, but it would be interesting to try @Avetri 's patch(above). The language would be incorrectly set, but I wonder how it would work. @bene25 , give it a try and let me know the outcome. Or send your HLS link to [email protected]. |
@Avetri could you please explain more detail your solution? Where you get DefaultTsPayloadReaderFactory? |
@Avetri solution helps. |
You are probably using an older Exoplayer version, that's why. |
r2.0.4 |
Could you help me please. |
@bene25 , I have not noticed a notification from You. I just have seen it. |
How to force notifyTrackSelectionsChanged again without setting TrackSelections? |
Hello.
We have m3u8 file format such as:
#EXTM3U
#EXT-X-STREAM-INF:BANDWIDTH=490000,RESOLUTION=640x360
http://XXX.XXX.XX.XXX:31213/MEDIA/76336503.....583609776254/161/4161/
#EXT-X-STREAM-INF:BANDWIDTH=1500000,RESOLUTION=720x576
http://XXX.XXX.XX.XXX:31213/MEDIA/76336503.....583609776254/161/3161/
#EXT-X-STREAM-INF:BANDWIDTH=2500000,RESOLUTION=1280x720
http://XXX.XXX.XX.XXX:31213/MEDIA/76336503.....583609776254/161/2161/
Each EXT-X-STREAM-INF tag link to file like:
#EXTM3U
#EXT-X-TARGETDURATION:5
#EXT-X-VERSION:3
#EXT-X-MEDIA-SEQUENCE:35156
#EXT-X-START:TIME-OFFSET=-25,PRECISE=YES
#EXT-X-KEY:METHOD=AES-128,URI="http://XXX.XXX.XX.XXX:02444/xxXXXXX/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/191/2191/aeskey_191_
#EXTINF:5,
http://XXX.XXX.XX.XXX:XXXXX/SSEGMENT/3020314583628416652818934133893/191/2191/seg_XXXXX.ts
#EXTINF:5,
http://XXX.XXX.XX.XXX:XXXXX/SSEGMENT/6545456465456456465454564/191/2191/seg_191_XXXXX.ts
#EXTINF:5,
http://XXX.XXX.XX.XXX:XXXXX/SSEGMENT/6545456465456456465454564/191/2191/seg_191_XXXXX.ts
#EXTINF:5,
http://XXX.XXX.XX.XXX:XXXXX/SSEGMENT/6545456465456456465454564/191/2191/seg_191_XXXXX.ts
#EXTINF:5,
http://XXX.XXX.XX.XXX:XXXXX/SSEGMENT/6545456465456456465454564/191/2191/seg_191_XXXXX.ts
Audio and subtitles are embeded in TS file.
trackSelector.getCurrentSelections().info.getTrackGroups() method doesnt work. How can I get audio and subtitles?
The text was updated successfully, but these errors were encountered: