MediaPlayer stops playing when streaming over 3G on the Nexus One

by henrik » Fri, 23 Apr 2010 16:12:14 GMT


Sponsored Links
 


Another small thing:  It doesn't matter whether the Nexus One is
sleeping or not.  I happens even though I set the device and screen to
never sleep.

Henrik

--



MediaPlayer stops playing when streaming over 3G on the Nexus One

by henrik » Fri, 23 Apr 2010 18:35:36 GMT


 


Here's another thing.  When I'm on 3G on the Nexus One, I get a
SocketException when it starts buffering.  I guess I get a chunk of
the song, then it fails.  MediaPlayer also continuously call
onBufferingUpdate(), which doesn't happen on Wifi.

E/HttpServer( 1525): java.net.SocketException: The connection was
reset
E/HttpServer( 1525):    at
org.apache.harmony.luni.platform.OSNetworkSystem.receiveStreamImpl(Native
Method)
E/HttpServer( 1525):    at
org.apache.harmony.luni.platform.OSNetworkSystem.receiveStream(OSNetworkSystem.java:
478)
E/HttpServer( 1525):    at
org.apache.harmony.luni.net.PlainSocketImpl.read(PlainSocketImpl.java:
565)
E/HttpServer( 1525):    at
org.apache.harmony.luni.net.SocketInputStream.read(SocketInputStream.java:
87)
E/HttpServer( 1525):    at
org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:
103)
E/HttpServer( 1525):    at
org.apache.http.impl.io.AbstractSessionInputBuffer.read(AbstractSessionInputBuffer.java:
134)
E/HttpServer( 1525):    at
org.apache.http.impl.io.ContentLengthInputStream.read(ContentLengthInputStream.java:
174)
E/HttpServer( 1525):    at
org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:
159)
E/HttpServer( 1525):    at
java.io.BufferedInputStream.read(BufferedInputStream.java:341)
E/HttpServer( 1525):    at
org.apache.http.entity.InputStreamEntity.writeTo(InputStreamEntity.java:
92)
E/HttpServer( 1525):    at
org.apache.http.impl.entity.EntitySerializer.serialize(EntitySerializer.java:
97)
E/HttpServer( 1525):    at
org.apache.http.impl.AbstractHttpServerConnection.sendResponseEntity(AbstractHttpServerConnection.java:
182)
E/HttpServer( 1525):    at
org.apache.http.protocol.HttpService.handleRequest(HttpService.java:
209)
E/HttpServer( 1525):    at my.player.http.HttpServer
$WorkerThread.run(HttpServer.java:93)

Best regards,
Henrik

--


Sponsored Links


MediaPlayer stops playing when streaming over 3G on the Nexus One

by henrik » Fri, 23 Apr 2010 19:45:47 GMT


 


I switched to our secondary streaming server, and things started to
work again.  I have no idea why, because it's supposed to be
identical.

Henrik

--



MediaPlayer stops playing when streaming over 3G on the Nexus One

by prabhakaran sambasivam » Fri, 23 Apr 2010 19:55:54 GMT


 *Avoid using so many threads that may leads to such kind of probs usually...
*




>



Other Threads

1. Slow time zone name loading

Hey,

I am using the twitter4j api to get tweets but it takes to long to get
the result.
When I see at the log files i see this:

10-24 16:29:19.300: INFO/Resources(12924): Loaded time zone names for
en_US in 2265ms.

And that per tweet. So it takes a long time before it loads this.

I have tested this on my Htc Hero (1.5) and it takes long and on the
emulator with 1.6 it goes fast and normal.
How can this be fixed for 1.5? It takes too long to load this all.

Thank you,

Wouter

--~--~---------~--~----~------------~-------~--~----~

2. How to import an existing project into Eclipse?

HI

I wanna import some codes sample to the Eclipse to learn the API usage.
But, when I choose "import" from the menu, I found there's no "Android"
project in it.

How can I import an existing project into the Eclipse?

Thanks a lot.

Regards,
Freeman

--~--~---------~--~----~------------~-------~--~----~

3. How to donwload a free app from android market?

4. How to donwload a free app from android market?

5. Handler behaving strangely after orientation change

6. Database Creation in android

7. Out of surface memory in WVGA