Chrome Cast Sender “session_error” NOT_FOUND

五迷三道 提交于 2019-11-26 04:56:03

问题


I can\'t get a basic sender app set up. I\'ve tried the CastHelloText sender example, put in my own AppId and get an error immediately after chrome.cast.requestSession() is called when I select my device from the top-right Google Cast extension button. My receiver is based off of Cast-Simple-Receiver. I\'ve done the whole unplugging power/plugging back in thing to restart ChromeCast, but that doesn\'t resolve my issue.

Resources out there seem kind of slim at the moment, but is there a place that explains everything in-depth without having to jump from site to site? Also, take a look at the image I\'ve attached. I can\'t figure out what that other URL is supposed to be.

My specific error from the requestSession() looks like this:

{code: \"session_error\", description: \"NOT_FOUND\", details: null}

EDIT: I\'ve verified that I can connect to the default chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID but my receiver app can\'t be connected to. I\'ve registered my device and restarted it multiple times. I\'ve now removed it and am trying to re-register it to see if that helps (even though it said it was ready for dev).

\"Chrome


回答1:


Check these; hopefully they get things sorted out:

  • Make sure you have registered your chromecast device on the developer console. Double check the serial number since sometimes it is hard to read it.

  • During the chromecast setup, there was a box stating something like "Send the serial number ..", make sure that is checked

  • Wait 1/2 hour or so and reboot your chromecast

  • Check whether you can access http://<chromecast-ip>:9222 from a chrome browser on the same wifi network; if you can, then your device is ready for development

As for the area on the image that you have pointed to, that is more for informational purposes at this point



来源:https://stackoverflow.com/questions/21618176/chrome-cast-sender-session-error-not-found

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!