Khang-NT / aacdecoder-android

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

Connection timed out not fire playerException(Throwable t) #20

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Connect wifi and start play mp3 stream
2.Disconnect wifi
3. playerStopped(int perf ) will called instead of  playerException(Throwable t)

In LogCat you can see:
08-11 15:44:05.560: D/AACPlayer(31504): play(): decoded 59904 samples
08-11 15:44:06.225: D/BufferReader(31504): run() awaken
08-11 15:44:06.230: E/BufferReader(31504): Exception when reading: 
java.net.SocketException: recvfrom failed: ETIMEDOUT (Connection timed out)
08-11 15:44:06.230: D/BufferReader(31504): run() stopped.
08-11 15:44:06.235: D/AACPlayer(31504): play(): decoded 59904 samples

What is the expected output? What do you see instead?
Expected that playerException(Throwable t) will be fired but instead only 
playerStopped(int perf ) are called witch is wrong.

What version of the product are you using? On which device ?
The latest release version (0.6.1) on Samsung Galaxy S3

What is the URL of the stream ?
http://uk01.tc.trance.fm/128

Please provide any additional information below.

Original issue reported on code.google.com by Pavel.Kr...@gmail.com on 11 Aug 2012 at 1:03

GoogleCodeExporter commented 8 years ago
According to your code this exception happens on native layer but not bobbled 
to java layer

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

GoogleCodeExporter commented 8 years ago
Yes, you're right. 

10-18 00:09:09.222: D/BufferReader(7691): run() awaken
10-18 00:09:09.222: E/BufferReader(7691): Exception when reading: 
java.net.SocketException: recvfrom failed: ETIMEDOUT (Connection timed out)
10-18 00:09:09.222: D/BufferReader(7691): run() stopped.
10-18 00:09:09.642: D/AACPlayer(7691): play(): decoded 307200 samples
10-18 00:09:13.142: D/AACPlayer(7691): play(): decoded 307200 samples
10-18 00:09:16.522: I/Decoder(7691): decode() detected end-of-file
10-18 00:09:16.522: D/AACPlayer(7691): play(): decoded 200704 samples
10-18 00:09:19.672: I/Decoder(7691): decode() detected end-of-file
10-18 00:09:19.672: D/AACPlayer(7691): play(): decoded 0 samples
10-18 00:09:19.672: I/Decoder(7691): stop() stopping native decoder
10-18 00:09:19.672: I/AACPlayer(7691): play(): average decoding time: 418 ms
10-18 00:09:19.682: I/AACPlayer(7691): play(): average rate (samples/sec): 
audio=88200, decoding=672267, audio/decoding= 662 %  (the higher, the better; 
negative means that decoding is slower than needed by audio)
10-18 00:09:19.692: D/PCMFeed(7691): run() stopped.

Isn't a big issue, my player is disconnecting properly and not throwing any 
errors or exceptions. 

Original comment by arvid.ge...@gmail.com on 17 Oct 2012 at 10:10

GoogleCodeExporter commented 8 years ago
Ok, I noticed this is kind of annoying. Will fix it in the next days. 

Original comment by arvid.ge...@gmail.com on 22 Oct 2012 at 12:35

GoogleCodeExporter commented 8 years ago
Has this issue been resolved ??? I am using the latest build but still getting 
the same behavior !!!

Original comment by m.zahid...@gmail.com on 28 Apr 2014 at 7:00