7
votes

I'm developping a sender/receiver application but, in my sender app, in always get an empty receiver list.

I did:

  • Whitelist my ChromeCast and my receiver page and I received my App ID from Google
  • Tick the box: "send this Chromecast serial number to google when checking for updates" and wait more than 1 day
  • Install ChromeCast Chrome extension, allow my domain and tick the "developper mode" box on chrome://extensions
  • I used this Github to avoid JS mistakes: https://github.com/pjjanak/chromecast-hello-world (I also try with other exemples, without success)
  • I put my App ID and set a NameSpace on my app
  • My ChromeCast can access to my receiver page.

If I put "Youtube" as appId, my sender app can find my ChromeCast.

I can cast a Chrome Tab and Youtube Android App can cast too.

I can't access to my_chromecast_ip:9222, I found this topics: Initial chromecast setup and Initial chromecast setup it can be my solution but I wanted to ask here before use [email protected] to check if I miss something.

Thanks for help.

3
Since this issue appears to be more of an account access type of issue, please contact us at: [email protected] so that I can assist you further. Regards, AdamAdamH
I'm having the same issue, despite I can see the debug link when accessing my_chromecast_ip:9222, but my receiver is still not showing ing in receiver list. Is it something related to the whitelisting or an error the code of chromecast-hello-world ?svassr
Same issue here, but I can access the dev tools via my IP.Jacob Ensor
I know this sounds silly, but sometimes you need to reboot your chromecast and/or wait 15 minutes.Andrew Rondeau
@CyrilleGuimezanes you should accept the answer which best answers your question. It will help make it easier for others who come across this question to know which answer to look at first.machineghost

3 Answers

2
votes

Make absolutely sure that the device serial ID you entered in Google Cast SDK Developer Console is correct. I accidentally made a typo when entering my device's serial number ('I' vs '1'). The best way to make sure is to press on this little icon when registering your device. It will be loud and clear, and they use a serif font so you can't mix things like 'l' and 'I' and '1'.

enter image description here

If you found your typo, don't forget to reboot your chromecast device as soon as you see "Ready For Testing" in Google Cast SDK Developer Console.

0
votes

I used to get the issue a lot when building my sender app and after doing my research, this is how to you solve the problem.

  1. Add your sender app on localhost & Make sure your chromecast is on.
  2. Turn on developer mode on Chrome (F12) and refresh your sender app. Make sure there is no error when initialize the Chrome Cast. If there is no error, you should see the ChromeCast-extension found : ..... in your Developer Console. If there is any error during initialization ChromeCast process in your sender app, the ChromeCast receiver will not appear in Extension popup.
  3. If initializing the ChromeCast has no error but you still can not see your Receiver, simply close your ChromeCast browser (and try to clear your Chrome's cache if possible) and reload your sender app.

Hope this help.

0
votes

https://github.com/pjjanak/chromecast-hello-world this sample is an old format.

if (!chrome.cast || !chrome.cast.isAvailable) {
  setTimeout(initializeCastApi, 1000);
}

doesnt work with this code. cant get "receiver list"

please try following

window['__onGCastApiAvailable'] = function(loaded, errorInfo) {
  if (loaded) {
    initializeCastApi();
  } else {
    console.log(errorInfo);
  }
}

reference: https://developers.google.com/cast/docs/chrome_sender?hl=ja#Initialization