Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Managing GCKDevices on app when user switch TV source

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?

like image 251
hariszaman Avatar asked Dec 01 '25 04:12

hariszaman


1 Answers

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

like image 159
Ali Naddaf Avatar answered Dec 02 '25 19:12

Ali Naddaf



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!