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
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
Post a Comment