miloproductionsinc/cordova-plugin-chromecast

Select route on behalf of user without requestSession()

Closed this issue · 3 comments

Hi! Thank you so much for this plugin! It's been working great so far. More of a question than an issue...

I'm creating a mobile app where I want to show the routes on my own styled UI, and not through the native requestSession popup. Can I obtain a session without the user selecting a route through this requestSession popup.

My app is not casting immediately, but is creating a scheduled task to cast media at certain times of the day. The UI is there to select the route (which I can do without the popup now), and then show a "test" button next to each route for the user to hit it with a quick chirp audio. However sending a test audio requires an active session which seems to only be acquired through the requestSession flow.

Would love any insight on this, and if this is possible in the current set up of this plugin.

That was the trick I was looking for! Thank you so much for your super quick turnaround! 🙏

Thanks again for this awesome fork.
(btw, It seems like most plugins dealing with cast at 3-5 years old.. at best. Any ideas what the people are using these days?)