简体   繁体   English

Chromecast自定义接收器播放器停留在IDLE状态,无法响应

[英]Chromecast Custom Receiver player stuck on an IDLE state and doesn't respond

I am trying to fix the issue when a sender (android app) send a queue of audio items. 我正在尝试解决发件人(Android应用)发送音频项目队列时的问题。 Few of those items can be with an invalid URL 这些项目中很少有可以使用无效网址的
When it happens the receiver occurs an error and set the player to an IDLE state. 发生这种情况时,接收器会发生错误,并将播放器设置为空闲状态。
Then I try to click on play next button or do something else on my android app - the receiver doesn't respond. 然后,我尝试单击“播放下一个”按钮或在我的android应用程序上执行其他操作-接收器没有响应。
What am I doing wrong? 我究竟做错了什么?

screenshot of the chrome console chrome控制台的屏幕截图
screenshot of the chrome console 2 chrome控制台2的屏幕截图

You may try these suggestions discussed in Media events : 您可以尝试在媒体活动中讨论的这些建议:

Receiver applications can tweak this logic by applying their own heuristics and changing the state in the customizedStatusCallback API. 接收器应用程序可以通过应用自己的试探法并在customizedStatusCallback API中更改状态来调整此逻辑。 This API will provide the current state, and the application can return a modified state. 该API将提供当前状态,应用程序可以返回修改后的状态。

The receiver app can also not to go to IDLE after ended or error by overriding onEnded / onError , if this makes sense in a particular scenario. 如果在特定情况下有意义,则接收器应用也可以通过覆盖onEnded / onErrorendederror后不进入空闲状态。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM