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

Example gets stuck trying to discover Chromecast devices #5

Open
ryanheise opened this issue Jan 3, 2023 · 8 comments
Open

Example gets stuck trying to discover Chromecast devices #5

ryanheise opened this issue Jan 3, 2023 · 8 comments
Assignees
Labels
bug Something isn't working

Comments

@ryanheise
Copy link

When I run the example on my Google Pixel 3a, and click the Chromecast button, it shows a dialog where it searches for Chromecast devices. That dialog searches forever without success. The Chromecast is on, and other apps can discover it.

@MatthiasWissink
Copy link

Did you change the receiverApplicationId in CastOptionsProvider in the android project?
You can use the default CC1AD845 receiver ID
After that the example worked for me

@ryanheise
Copy link
Author

Thanks @MatthiasWissink . I only ran the example as is without checking it so I didn't spot that - @gianlucaparadise perhaps it would be a good idea for the default example in this repo to also use the default receiver ID?

@gianlucaparadise
Copy link
Owner

Did it work using the default receiver ID? The receiver ID of the example points to a custom web receiver that showcases the feature of the example sender.
If it worked with the default receiver ID, than there is a problem on the custom receiver and I can look into it.

@gianlucaparadise gianlucaparadise self-assigned this Jan 17, 2023
@MatthiasWissink
Copy link

Yes, I have the example working with the default receiver ID. When using the one that comes in the repo, I get the same loading/searching issue as @ryanheise

@gianlucaparadise gianlucaparadise added the bug Something isn't working label Jan 17, 2023
@gianlucaparadise
Copy link
Owner

Can you please try again? I just published the custom receiver.

@MatthiasWissink
Copy link

Still the same behavior running the example as it is.
But I also saw that the receiver ID in example/android (D6760CCD) is different from the one in root/android (4F8B3483). Only using this ID or the default ID works.

@markst
Copy link

markst commented Jan 31, 2023

@MatthiasWissink is there an Android equivalent to kGCKDefaultMediaReceiverApplicationID?


Edit:
Looks like there's DEFAULT_MEDIA_RECEIVER_APPLICATION_ID
Might open a PR to use these constants in example rather than D6760CCD / 4F8B3483 as mentioned.

@markst
Copy link

markst commented Feb 1, 2023

The receiver ID of the example points to a custom web receiver that showcases the feature of the example sender.

@gianlucaparadise Care to share how to use the custom web receiver?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants