ios - Device not getting disconnected -


I have integrated the functionality of Chrome casting in my iPhone app. The problem I am facing is that when casting Does not start and sometimes when the molding goes on, I press the disconnected device button but nothing happens. My code for disconnecting is:

  - (zero) disconnect device {{self.deviceManager stopApplication]; [Self.deviceManager removeChannel: self.mediaControlChannel]; [Self. Disconnect Device Manager]; Self.mediaControlChannel = Zero; Self.deviceManager = Zero; Self.selectedDevice = Zero; }  

What am I doing?

Is your receiver handling the disconnect state? The template code looks like this:

  window.castReceiverManager = cast.receiver.CastReceiverManager.getInstance (); CastReceiverManager.onSenderDisconnected = function (event) {console.log ('received sender disconnected event:' + event.data); If (window.castReceiverManager.getSenders (). Length == 0) {window.close (); }};  

Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -