androidx / media

Jetpack Media3 support libraries for media use cases, including ExoPlayer, an extensible media player for Android
https://developer.android.com/media/media3
Apache License 2.0
1.71k stars 409 forks source link

Exoplayer plays HLS stream without audio #1378

Open gags-lover opened 6 months ago

gags-lover commented 6 months ago

Version

Media3 1.1.1 / ExoPlayer 2.19.1

More version details

No response

Devices that reproduce the issue

Ugoos X4, Ugoos X3 and any other Android device i guess

Devices that do not reproduce the issue

No response

Reproducible in the demo app?

Yes

Reproduction steps

  1. Optional*. Replace default demo app extractor with DefaultHlsExtractorFactory(FLAG_ALLOW_NON_IDR_KEYFRAMES, false) to be able to play at least the video.
  2. Replace one of the sample stream urls to the one i sent to you by the mail
  3. Play the stream on demo app

Expected result

The hls stream plays stream that includes video and audio tracks

Actual result

ExoPlayer plays video with no sound.

Logs tell that there's no audio at all, even if there is:

tracks [eventTime=0.72, mediaPos=0.00, window=0, period=0 group [ [X] Track:0, id=0, mimeType=video/avc, container=application/x-mpegURL, bitrate=3950000, codecs=avc1.4d401e, res=1048x576, fps=25.0, supported=YES ] group [ [X] Track:0, id=ID3, mimeType=application/id3, supported=YES ] Metadata [ HlsTrackMetadataEntry ] ]

Media

Sent the hls stream url to android-media-github@google.com

Bug Report

tianyif commented 6 months ago

Hi @gags-lover,

Thanks for reporting! Yes, the logs in the bug report suggested that there is no audio track in the media. We need to check the playlist and see if there is anything wrong with it or our preparation logic. However, the media url included in your email currently doesn't work, and it gives 403 error. Could you please provide an alternative one?

gags-lover commented 5 months ago

Hi. Seems like the link has regional restrictions and I have no access to the link owner. Can you try playing the stream with russian vpn turned on please?