googlecast / CastVideos-android

Reference Android Sender w/ Framework API: CastVideos-android application shows how to cast videos from an Android device that is fully compliant with the Cast Design Checklist.
Apache License 2.0
340 stars 180 forks source link

Unable to cast m3u8 and ts files #113

Open bhumikash-tech opened 2 years ago

bhumikash-tech commented 2 years ago

I am successfully able to cast mp4 files to TV through my sender app but got a issue while casting m3u8 and ts video files. Please help me out.

bhaskarraj commented 2 years ago

For m3u8 CORS should be enabled on the origin server. Please check this once.

I am also facing the same issue but CORS is enabled on the streaming server. If CORS was enabled on your server have you managed to solve this?

abhayJangde92 commented 1 year ago

I also had faced similar issue in past with m3u8 files. First thing you should check if the CORS are enabled on your server.

Second, To support m3u8 files casting we need Custom Receiver. while creating application on your Google cast SDK developer console create custom receiver and add your custom Web Receiver Application URL.

You can try this also. - https://googleads.github.io/googleads-ima-cast/client_receiver/player.html

If you need further customization you can create your own and use.

HOPE THIS SOLVE YOUR PROBLEM