ConnectSDK / Connect-SDK-Android-Core

Core source code for the Android Connect SDK project
Apache License 2.0
114 stars 79 forks source link

Fix AirPlay session #6

Closed oleksii-frolov closed 9 years ago

oleksii-frolov commented 9 years ago

fix for issue https://github.com/ConnectSDK/Connect-SDK-Cordova-Plugin/issues/5

viveksekar commented 9 years ago

@frolov-alexey can you please test that without having merged the zeroconf provider, if this issue is resolved ?

oleksii-frolov commented 9 years ago

I've got this when phone in background mode during playing

12-18 12:38:37.280: D/Connect SDK(18912): onServiceRemoved: friendlyName: Apple TV 12-18 12:38:37.290: D/2ndScreenAPP(18912): Device Disconnected

and after that the socket is closed and video is stopped. So the issue is not resolved.

khk624 commented 9 years ago

@viveksekar I think that's another issue, not related to this. This issue was that apple tv close the remote socket connection, but the fix for ZeroConfDiscoveryProvider is somehow we cannot detect apple tv for 30 seconds.

We've set 30 seconds as Timeout, so we use the value for SSDPDiscoveryProvider, ZeroconfDiscoveryProvider, and also in iOS SSDPDiscoveryProvider.

If we want to change the value, then I think it would be better to change all of them.