gapu / google-cast-sdk

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

not possible to know if session stopped on purpose or by network issue #291

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. stop cast session via chrome extension
- or -
1. disable network connection while casting

2. try to figure out if session has stopped because user stopped it or because 
internet connection got lost (e.g. computer went standby)

What is the expected output? What do you see instead?
I need to know if the user pressed stop in the cast chrome extension or if the 
session stopped because of other problems so I can try to restart the cast 
session

What version of the product are you using? On what operating system?
newest, os x 10.9.3

Please provide any additional information below.
https://developers.google.com/cast/docs/reference/chrome/chrome.cast.Session#add
UpdateListener
only returns a boolean and no other information about why the session has 
stopped

Original issue reported on code.google.com by p...@zattoo.com on 16 Jun 2014 at 1:01

GoogleCodeExporter commented 9 years ago

Original comment by z...@google.com on 24 Sep 2014 at 4:42

GoogleCodeExporter commented 9 years ago
I saw that the boolean in addUpdateListener's callback is now deprecated and 
chrome.cast.Session#status should now be used.
but it still reports chrome.cast.SessionStatus.STOPPED when session is lost due 
to network problems instead of chrome.cast.SessionStatus.DISCONNECTED

Original comment by p...@zattoo.com on 5 Jan 2015 at 2:32

GoogleCodeExporter commented 9 years ago
Any updates on this issue? It would be extremely nice to know if the session 
was stopped by a user action or if the connection was disconnected. 

We've got tons of users with *interesting* network setups that are experiencing 
rapid disconnects. If we can detect it, we can educate the users on how to fix 
the problems. If we can't help them fix it, they're going to give up on their 
Chromecast altogether!

Original comment by gra...@kennery.com on 6 Apr 2015 at 4:28