'Custom ChromeCast Receiver fails to play video on Android TV
I have created a custom cast receiver [CAF 3] following this google code labs.
The receiver loads all well, and even plays some of the videos(of mp4 type). However, the majority of the videos we use are .m3u8 type.
Now even for some .m3u8 videos, the receiver plays them just fine for ex this URL: https://fitbudd.b-cdn.net/fitbud-b5c08/hfggx1nkxm/1b0e21bc-08bc-48cb-8c53-d7ca0d09d920/playlist.m3u8, where the video content plays just fine on cast receiver.
But for some of the m3u8 videos URL like this https://fitbudd.b-cdn.net/fitbud-b5c08/hfggx1nkxm/9b69258e-32e8-45fe-8cdc-7e2411b62126/playlist.m3u8, the receiver quits abruptly and moves back to idle state. After debugging the following crash logs are obtained
It seems like something is going wrong with the manifest file for m3u8. However, with my limited knowledge, I couldn't make much sense of it.
Further, I tried hitting both working and non-working URLs via curl. Posting their responses too,
curlresponse form3u8video URL which plays on cast receiver
curlresponse form3u8video URL which DOES NOT play on cast receiver
What I tried and didn't work:
I tried intercepting load request and set
hlsSegmentFormatandhlsVideoSegmentFormatto bothMPEG2_TSorFMP4but the video still couldn't play.I tried my non-playing URLs on google's default cast receiver(
appId = CC1AD845), the videos didn't play there too
Environment:
My Chromecast is in-built in my smart MI TV
MI TV:
- Device Name:
Blaze - Model:
MiTV4i - Android OS:
9 Pie
In-build Chromecast version: 1.56.275391
Can someone please guide me on what is going wrong here and what should be the possible changes to fix it?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|





