Reputation: 7959
My app is integrated with the Google Cast SDK to cast videos to a Chromecast.
Since the device needs to be connected to a WiFi network to be able to connect and cast, I thought that maybe I could disable device discovery if the device is not connected to a WiFi network, so I don't waste battery and CPU cycles with useless tasks.
Then I wondered: do I really need to do this manually or is the SDK smart enough to make this decision?
I didn't find any information about it in the documentation, and I have no idea where else to look for it.
Upvotes: 0
Views: 69
Reputation: 4656
You should leave device discovery to the Cast SDK which has been optimized for various networking conditions.
Upvotes: 1