Problem with HLS and Chromecast.
- Dominant language
- Java
- Stars
- 21.9k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
### Issue description
Some HLS streams cannot be loaded by chromecast enabled devices. The devices try to load the stream but stop abruptly and doesn't trigger any callbacks to know what is producing the error.
I looked for issues here:
https://github.com/google/ExoPlayer
https://issuetracker.google.com/issues?q=componentid:190205%2B%20%20
### Reproduction steps
Clone https://github.com/google/ExoPlayer
Choose demo-cast module
In DemoUtils class replace the "Clean HLS: Angel One HLS" stream with the following:
```
samples.add(
new MediaItem.Builder()
.setUri("https://arte-cmafhls.akamaized.net/am/cmaf/091000/091100/091152-135-A/200909054336/091152-135-A_VOF-STMF_XQ.m3u8")
.setTitle("Test HLS")
.setMimeType(MIME_TYPE_HLS)
.build());
```
Run demo-cast
Add the video "Test HLS"
Click on cast button and choose your the chromecast device.
Chromecast tries to play content, but fails and remains in the loading screen with the Video Title.
Please note that this also happens with the "Clean HLS: Angel One" in the demo.
### A full bug report captured from the device
[log2.txt](https://github.com/google/ExoPlayer/files/5209539/log2.txt)
### Version of ExoPlayer being used
Using Exoplayer 2.11.8
### [REQUIRED] Device(s) and version(s) of Android being used
Galaxy Tab S6, Android 10
Google Pixel 2XL, Android 11
Receiver ADT-2 Android 9, Chromecast Version 1.47.216070
Google Nest Hub.
Contributor guide
Assessment
This issue has not been assessed yet.