user3184899
user3184899

Reputation: 3069

Cast SDK - using local files

I'm building an app and I wanted to use the Cast SDK.

I set everything up, But then I realized that the files I want to cast must be online (using URL) and I can't use my phone local files.

Does anyone know how to use local files in the Mediainfo.builder(..)?

Even a way to cast only the app's audio will help.

Thanks.

Upvotes: 2

Views: 1815

Answers (1)

Ali Naddaf
Ali Naddaf

Reputation: 19034

You need to include a small web server in your application and serve the media that you are interested within that web server. Then communicate with your receiver and send the URL of the media (that is being served through your embedded web server) to your receiver so it can play that. Since media it is being served from your mobile device, your web server needs to stay up for the whole duration of media.

Upvotes: 4

Related Questions