I have implemented Google Cast SDK successfully and the main problem that I am facing is .m3u8 streaming link is not playing on Chromecast. CORS is also enabled on the server side as well.
I have tried test streams of .mp4 as http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/WeAreGoingOnBullrun.mp4 and it's working fine and for .m3u8 i am using the test streaming link as https://commondatastorage.googleapis.com/gtv-videos-bucket/CastVideos/hls/DesigningForGoogleCast.m3u8 but this does not work.
Below is how I am building MediaInfo:
MediaMetadata movieMetadata = new MediaMetadata(MediaMetadata.MEDIA_TYPE_MOVIE);
movieMetadata.putString(MediaMetadata.KEY_TITLE, mBinding.getItem().getName());
movieMetadata.putString(MediaMetadata.KEY_SUBTITLE, mBinding.getItem().getStreamingLink());
movieMetadata.addImage(new WebImage(Uri.parse(mBinding.getItem().getImage())));
return new MediaInfo.Builder(streamUrl)
.setStreamType(MediaInfo.STREAM_TYPE_LIVE)
.setContentType("videos/mp4")
.setMetadata(movieMetadata)
.build();
What might be wrong here?