media icon indicating copy to clipboard operation
media copied to clipboard

SampleQueueMappingException when loading HLS video

Open JonWatson opened this issue 1 year ago • 0 comments

Version

Media3 main branch

More version details

Issue occurs on all recent versions(1.3.0 and up were tested)

Devices that reproduce the issue

Pixel 7 (14) Nvidia Shield (11)

Devices that do not reproduce the issue

None

Reproducible in the demo app?

Different error in Demo App

Reproduction steps

In the Demo app, I get an UnrecognizedInputFormatException for this HLS manifest. In my implementation, I get the SampleQueueMappingException. In both apps, other m3u8's play correctly.

I have no doubt there is something that Media3 doesn't like about the manifest. However, AVPlayer(iOS) plays it without error and it's my job to figure out exactly what the problem is with the manifest and how we can get it working on Android/ExoPlayer

Manifest: https://shorturl.at/Yq1kr

Demo app can be reproduced by adding this to the media.exolist.json

"samples": [
  {
    "name": "HLS Test Stream SampleQueueMappingException",
    "uri": "https://shorturl.at/Yq1kr"
  },

Can you please help us figure out what exactly the problem is with this manifest and why ExoPlayer doesn't like it? We have the ability to ask the Video Encoding team to help fix the manifests, if we just knew what the problem is. This is a DRM-protected asset, but I believe the problem can be debugged without the need for DRM keys.

Also please note that the URL that I'm providing is only good for about 72 hours. I will immediately reply to updates here with a new Manifest URL if someone can take a look and the manifest is no longer available.

Expected result

Successful HLS playback

Actual result

My (HlsMediaSource.Factory) implementation:

androidx.media3.exoplayer.hls.SampleQueueMappingException: Unable to bind a sample queue to TrackGroup with MIME type video/avc.

Demo app: UnrecognizedInputFormatException

Media

https://shorturl.at/Yq1kr

Bug Report

  • [ ] You will email the zip file produced by adb bugreport to [email protected] after filing this issue.

JonWatson avatar Aug 30 '24 14:08 JonWatson