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
345 stars 183 forks source link

Local Storage Videos is not casting like content:///storage/emulated/0/DCIM/Camera/VID_20230227_235552.mp4 #129

Closed adityaec004 closed 1 year ago

adityaec004 commented 1 year ago

Hi Team-

How can we do the local storage file cast to TV. Like this: content:///storage/emulated/0/DCIM/Camera/VID_20230227_235552.mp4 I have tried bt its not working where as http url only working like: https://commondatastorage.googleapis.com/gtv-videos-bucket/CastVideos/mp4/DesigningForGoogleCast.mp4 But How can we do below file to cast: Like this: content:///storage/emulated/0/DCIM/Camera/VID_20230227_235552.mp4

adityaec004 commented 1 year ago

Getting:::: W/MediaControlChannel: received unexpected error: Invalid Request.

QingyunDeng commented 1 year ago

You should start an HTTP service locally and generate a URL for the local video so that the cast server can access it remotely

adityaec004 commented 1 year ago

Very too late reply Now I have implemented Thanks