oralodabas / google-cast-sdk

Automatically exported from code.google.com/p/google-cast-sdk
0 stars 0 forks source link

Reconnecting to cached device fails when Chromecast is power-cycled (iOS SDK) #576

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Launch sender app
2. Connect to Chromecast
3. Shut down sender app
4. Turn off TV
5. Relaunch sender app (no attempt to reconnect is made since the Chromecast 
does not come back online - no call to deviceDidComeOnline:)
6. Shut down sender app
7. Turn TV back on and wait for Chromecast to start up
8. Relaunch sender app.

At this point the previously connected Chromecast sends the 
deviceDidComeOnline: callback, the cached ID (in lastDeviceID) is checked, and 
a call to connectToDevice: is made. The device's connection state sticks in 
GoogleCastStateConnecting until it errors out.

The desired behavior would be to connect properly to the cached device.

What version of the product are you using? On what operating system?

Chromecast firmware version 27946.
iOS v8.3

Please provide any additional information below.

This is a bit of an edge-case where the device running the sender app is 
shutdown (out of battery, etc.), and the TV is turned off. Then when the TV and 
device are both turned back on casting fails.

You can force the connection by opening the list of available Chromecast 
devices and selecting one, forcing the connection.  Doing this, you should 
notice that the cast icon is displaying the "attempting to connect" state.

Original issue reported on code.google.com by christop...@pluto.tv on 5 May 2015 at 11:47