请求新会话时,Chromecast发送者应用程序错误 [英] Chromecast sender application error when requesting new session
问题描述
我有一个未发布的自定义接收器应用程序,无法从Chrome浏览器的Web播放器发送器应用程序投射到该应用程序。我在初始化Cast API时确实收到了接收器可用消息,但是当我单击播放器中的Cast按钮并从扩展名的下拉菜单中选择chromecast设备时,电视屏幕变黑,几秒钟后我得到onError方法调用时出现以下错误:
I have an unpublished custom receiver app, and I am unable to cast to it from my web player sender app in chrome. I do get the receiver "available" message upon initialization of cast api, but when I click on the cast button in player and select the chromecast device from drop down menu in extension, the TV screen goes black and few seconds later I get onError method called with following error:
{code: "channel_error", description: "Error: Timeout", details: null}
使用默认媒体接收器时,投射效果很好。另外,我在服务器控制台日志中没有看到任何来自chromecast设备的网络流量,这意味着chromecast没有获取接收器应用程序。
The casting works fine when using default media receiver. Also, I do not see any network traffic coming from chromecast device in my server console log, which means that chromecast is not fetching the receiver application.
我确保以下内容:
- Chromecast加密狗已在Cast
开发人员控制台中注册为Cast Receiver设备。 - 我的Macbook运行有NodeJS服务器来服务
接收器应用程序,并且在
开发人员控制台中的接收器应用程序URL正确指向在$上运行的服务器b $ b macbook。 - chromecast和我的Macbook都在同一网络上,具有
个有效的192.168.xx IP地址。
我发现了另一个讨论此错误的线程 Chromecast示例发件人应用程序CastHelloText-chrome在尝试获取会话时以错误结尾,但是那里提供的建议似乎不适用于我的情况。
I found another thread discussing this error Chromecast sample sender application CastHelloText-chrome ends with error when trying to get session, but the suggestions provided there dont seem to apply to my situation.
推荐答案
我能够通过重新启动chromecast设备来解决此特定错误。我在两个不同的场合尝试过,并且两次重启设备后问题都消失了。我无法解释它是如何工作的,但它确实完成了工作。如果有人可以解释此特定错误的原因以及为什么重新启动可以解决此问题,我将接受该答案。
I was able to resolve this particular error by restarting the chromecast device. I tried it on two separate occasions and both times the issue went away once the device was restarted. I can't explain how it worked, but it did the job. If someone can explain what is the cause of this particular error and why restarting fixes it, I will accept that answer.
这篇关于请求新会话时,Chromecast发送者应用程序错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!