masoomeh001 / npr-android-app

Automatically exported from code.google.com/p/npr-android-app
0 stars 0 forks source link

Streaming does not reconnect after losing/switching network temporarily #133

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I often stream while driving, and I've noticed that often the app will lose its 
connection but then refuse to reconnect automatically. This seems to be 
correlated with HSPA+<-->3g<--->EDGE transitions in either direction, but I 
can't be sure since I'm paying attention to the road when this happens.

If I (or a passenger) hits play on the station again, then the stream restarts 
just fine. However, I really wish the app would handle this gracefully and pick 
back up whenever it got a good connection back.

(Sometimes it does seem to recover, but most of the time I have to manually 
restart the stream)

Original issue reported on code.google.com by con...@google.com on 13 Feb 2012 at 1:57

GoogleCodeExporter commented 8 years ago
Does our new resume functionality handle this case?, Justin

Original comment by jpenn...@gmail.com on 9 Apr 2012 at 8:02

GoogleCodeExporter commented 8 years ago
Yes, I implemented the error handling on the connection to try to handle this 
problem.  The code should recover when it does, though I've really only tested 
the wifi<->3g transitions.  Note that I think the OS often fails to make the 
transitions as quickly as we would like, though.  

On a related note, I've read a few things that make it sound like Ice Cream 
Sandwich does a much better job with the connection, but I haven't worked with 
it in person yet. 

Original comment by justinfr...@gmail.com on 9 Apr 2012 at 8:11

GoogleCodeExporter commented 8 years ago
Marking as duplicate then.

Original comment by jpenn...@gmail.com on 9 Apr 2012 at 8:18