简体   繁体   中英

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. 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.
What am I doing wrong?

screenshot of the chrome console
screenshot of the chrome console 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. This API will provide the current state, and the application can return a modified state.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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