gabrielfari / aacdecoder-android

Automatically exported from code.google.com/p/aacdecoder-android
GNU Lesser General Public License v3.0
1 stars 0 forks source link

Switching Internet connection problem #17

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Start stream on wifi with wifi and 3G enabled
2. Switch off wifi
3. Wait for 3G to take over
Same thing happens when switching from 3G to wifi

What is the expected output? What do you see instead?
The stream should stop for a moment while the switch from wifi to 3G happens 
and continue streaming afterwards

Instead it just hangs there and logat displays the following error:
W/AudioTrack(32245): obtainBuffer() track 0x17a468 disabled, restarting

What version of the product are you using? On which device ?
Using version (sources code not jar) 0.5.1 
Device is HTC Desire HD with Ice Cream Sandwich (Ice Cold Sandwich 4.0.3 ROM)

What is the URL of the stream ?

Please provide any additional information below.

Original issue reported on code.google.com by abav...@gmail.com on 15 May 2012 at 3:57

GoogleCodeExporter commented 8 years ago
You may handle ConnectivityManager.CONNECTIVITY_ACTION intent and stop and 
resume playing manually.

Original comment by NKuznet...@gmail.com on 18 Jul 2012 at 4:54

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I think its wrong to handle this from lib. Because, for example, you may want 
to switch to lower rate stream, but if the lib will reconnect for you then you 
will need to handle this situation by yourself with duplicating same 
functionality in your code.
Better if the lib will thrown an exception and then you can do what you want 
with this kind of situation.

Original comment by Pavel.Kr...@gmail.com on 11 Aug 2012 at 1:18