I am using MediaPlayer to play mp3 stream via http. On some specific devices, it too often does not reach the end of the stream. Just stopping. This happens only on 2.3.x, cannot catch this problem on Bean jelly. The only weird lines in logcat are:
02-04 17:34:14.379: ERROR/HTTPStream(95): recv failed, server is gone, total received: 54683 bytes 02-04 17:34:14.379: ERROR/HTTPStream(95): recv failed, errno = 9 (Bad file number) 02-04 17:34:14.379: ERROR/NuCachedSource2(95): source returned error -1004
OnCompletionListener called (too early)
It seems to download only 5 MB of stream and is not trying to download more.
It mainly happens on Samsung Galaxy Ace devices.
Taras
source share