Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get List of Chromecast devices without CastButton #6

Open
rangav opened this issue Mar 27, 2019 · 2 comments
Open

How to get List of Chromecast devices without CastButton #6

rangav opened this issue Mar 27, 2019 · 2 comments

Comments

@rangav
Copy link

rangav commented Mar 27, 2019

How to get List of Chromecast devices in Android without CastButton, as i am developing custom UI functionality.

Or is there a way to detect Chromecast device?

@mtkopone
Copy link
Owner

mtkopone commented Mar 28, 2019

Hi. Currently, the cast device list is not accessible to React native, since that functionality is entirely provided by the android native MediaRouteButton.

I don't really have the opportunity to look into this during the coming weeks. PR's are always welcome!

@KalebMatthews
Copy link

I don't have time to look into this either but I can provide some links to help if you want to investigate it on your own.

Google Cast Api: https://developer.android.com/reference/android/support/v7/media/MediaRouter.html#getRoutes()
(I think this is the main method you will need. Transformations to make it readable will probably be needed but I am unsure without coding a little of it which as mentioned I can't do currently)

Code file with Exposed Java functions to React-Native:
./android/src/main/java/com/reactnativegooglecastv3/CastModule.java

Feel free to reach out if you have any questions on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants