Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Detect usage of Google Cast

How to detect if my AndroidTV is currently an Google Cast receiver from mobile/desktop ?

How to detect who is currently an Google Cast sender from Google Cast Receiver perspective?

How to detect if my Android Phone is currently an Google Cast sender?

like image 386
Adam Styrc Avatar asked Feb 11 '16 10:02

Adam Styrc


People also ask

Can you see Chromecast history?

The Chromecast itself doesn't store a historical log or record of what's been played on the device. Simply put: There isn't a menu you can look through to see viewing history on Chromecast. There's no need to worry someone can see what you were doing on the Chromecast after you're done using it.

How do I find out what devices are casting to?

Turn on Bluetooth on your Android device. If there is a nearby Chromecast device that hasn't been set up, you'll see a Chromecast setup notification pop up on your Android device. To begin setting up your Chromecast device, tap Set up a nearby Chromecast device. follow the prompts to set up your device.

How do I know if Google is casting?

How will you know if a website is Chromecast-enabled? on the website within the video or audio player. For sites that aren't Chromecast-enabled, you can cast the tab to view the content.


1 Answers

  1. You could use the Android Media Router API to request all available routes to Cast devices. Then you would then have to connect to each Cast device and then you can determine the app ID or even if media is playing. If you only want to know if your own app is running, then simply filter the Media Router request by that.

  2. Only the receiver would know which senders are connected to it. In your own custom receiver you could keep track of that for your own app.

  3. You might be able to use the Media Router to determine if there is an active route. Not sure if you will be able to tell if it is a Cast route, since these routes could also go to other devices like bluetooth speakers.

like image 90
Leon Nicholls Avatar answered Oct 02 '22 23:10

Leon Nicholls