-1

I am trying to cast local videos to google cast. I have tried a lot but no proper solution is there I guess. I searched a lot over the internet and Stack Overflow

What I need is that:-

I am working to cast local videos from iphone to chromecast TV and for local host i am using GCDWebServer. My asset is successfully exporting on directory. I am not saving it using ExportSession just moving the FileData to the Documents Directory and creating a new file.

What Should Have Happened:-

The video should have been casted to the Chromecast and played successfully.

What Is Happening Instead:-

When i am using server url with my filename (https://192.168.1.3:8080/rendered_video.mp4) to chromecast i am getting below error

Error Domain=com.google.cast.GCKError Code=30 "Media failed to load" UserInfo={NSLocalizedDescription=Media failed to load, gck_detailed_error_code=104}

I have searched all over SOF but failed to find a working solution.

Edit:-

I have made the connection successfully and have proper understanding of how the Google Cast SDK works.

I just have no idea about how to make the contentURL to feed in to the GCKMediaInformation Object.

Edit No. 2:-

I have been able to resolve this error but by using another cloud based server like Firebase storage to first store my picked asset in the storage and then use that link to feed in to the GCKMediaInformation Content URL but I still don't have any idea how I can use the iPhone as a Server and cast my assets to the TV.

0 Answers0