chromecast - Stop casting on the receiver -


i need disconnect sender , return receiver's main ("ready cast" screen). receiver decides when , how (e.g. 10 mins idling after media playback paused)

i've tried stop receiver explicitly

receiver.stop() 

and disconnecting connection service

cs = receiver.getconnectionservice() cs.disconnect() 

that didn't work wanted, doesn't return main screen , senders still see ongoing cast session

enter image description here

so how can force disconnecting on receiver? receiver api page seems describing these 2 methods.

you shouldn't call receiver.stop(), nor calling cs.disconnect(); instead try using window.close().


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -