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

Why Chromecast is not discovered on the First Attempt and always when App is reopened #400

Open
drmuzaffarkhan opened this issue May 6, 2023 · 4 comments

Comments

@drmuzaffarkhan
Copy link

I am seeing that Chromecast is not discovered on its first attempt when app is opened and only dial is discovered, but when app is closed and reopened then the chromecast gets discovered

@harimoradiya
Copy link

Can you provide your log and code?

@drmuzaffarkhan
Copy link
Author

drmuzaffarkhan commented Sep 15, 2023 via email

@bettimms
Copy link

@drmuzaffarkhan how did you solve this? I'm having the same issue?

@drmuzaffarkhan
Copy link
Author

Just add this:
if (isNew) {
foundService = new ServiceDescription(CastService.ID, uuid,
castDevice.getIpAddress().getHostAddress());
foundService.setFriendlyName(castDevice.getFriendlyName());
foundService.setServiceID(CastService.ID);
listUpdateFlag = true;
isNew = false;
}

above the if (!isNew) in the CastDiscoveryProvider and all should be solved.

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