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 detect when the cast device available? #108

Open
Blurzschyter opened this issue Oct 25, 2021 · 2 comments
Open

How to detect when the cast device available? #108

Blurzschyter opened this issue Oct 25, 2021 · 2 comments

Comments

@Blurzschyter
Copy link

Hi, i just starting to explore and try to develop this google cast functionality in my app.
I planned to make the cast button float and display only when there are at least 1 cast device available(refer below image) and automatically hide when there is no cast device available.
plan

But when I set my float uibutton to GCKUICastButton subclass, the button still appear although there is no device available(refer below image).
same

Appreciate anyone advice and help on this matter. Thank you ^_^

@vpunjabi
Copy link

vpunjabi commented Nov 1, 2021

Can you try creating your own cast button instead of using the GCKUICastButton and then handle discovery and visibility yourself.

@OmarJalil
Copy link

@vpunjabi How are you handling discovery by yourself? I'm trying to use GCKDeviceProvider but it keeps crashing when I try to access .devieces

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