Managing GCKDevices on app when user switch TV source

我怕爱的太早我们不能终老 提交于 2019-12-12 15:11:25

问题


Google Chrome cast api of ios have the following methods of device discovery

- (void)deviceDidComeOnline:(GCKDevice *)device {


// : manipulate UI
[self.tableView reloadData];

}

- (void)deviceDidGoOffline:(GCKDevice *)device {

//: manipulate UI 
[self.tableView reloadData];

} this runs fine at the start of application and the devices are added to UI normally because I add a listener to it and start the scan when startScan method that typically runs for 5 seconds but if now i switch the source from TV or unplug the device from TV device deviceDidGoOffline method is not called. How can I have a notification posted once the device have gone offline?


回答1:


There is currently a bug in the SDK which affects this feature. It will be addressed in the next release.



来源:https://stackoverflow.com/questions/21167241/managing-gckdevices-on-app-when-user-switch-tv-source

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!