Cast HLS to chromecast
- Dominant language
- Java
- Stars
- 21.9k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
### Searched documentation and issues
https://codelabs.developers.google.com/codelabs/cast-videos-android
https://github.com/google/ExoPlayer
https://github.com/googlecast/CastVideos-android
### Question
How to cast HLS to chromecast?
What I'm doing:
1. Clone https://github.com/google/ExoPlayer
2. Choose demo-cast module
3. In sample with name "Clear DASH: Tears" I replaced
url with:
https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8
and type with:
MimeTypes.APPLICATION_M3U8/"application/x-mpegurl"
4. Run demo-cast
5. Select "Clear DASH: Tears" from "Add samples" dialog
6. Then click on cast button and choose your existing chromecast room
7. Chromecast trying to play content, but fails and shows only stub and logcat message:
2019-09-27 15:38:20.054 8102-8102/com.google.android.exoplayer2.castdemo W/MediaControlChannel: received unexpected error: Invalid Request.
2019-09-27 15:38:20.056 8102-8102/com.google.android.exoplayer2.castdemo W/MediaQueue: Error fetching queue item ids, statusCode=2100, statusMessage=null
### Device(s) and version(s) of Android being used
Mobile: Samsung J7(30FM/DS). Android 9.
Chromecast: NC2-6A5. Firmware version: 1.42.172094
### A full bug report captured from the device
[bugreport-2019-09-27-16-01-27.zip](https://github.com/google/ExoPlayer/files/3663124/bugreport-2019-09-27-16-01-27.zip)
[logcat.log](https://github.com/google/ExoPlayer/files/3663127/logcat.log)
Contributor guide
Assessment
This issue has not been assessed yet.