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. listview (text+icon) inside a class Atcivity and not ListActivity

Hi

I want to know if its possible to make a listview (text+icon) on a
class extends Activity and not on a class extends ListActivity.

So I make a little code with class extends.

on the onCreate:

ListView list=(ListView) findViewById(R.id.list1);

ArrayList mStrings = new ArrayList();

ArrayAdapter mAdapter = new ArrayAdapter
(this,android.R.layout.simple_list_item_1, mStrings);

mAdapter.add("itemAdd ");
Log.v(TAG, mAdapter.getItem(0));
mAdapter.add("itemAdd1 ");
mAdapter.add("itemAdd2 ");
mAdapter.add("itemAdd3");
mAdapter.add("itemAdd4");
mAdapter.add("itemAdd5");
mAdapter.add("itemAdd6");
mAdapter.add("itemAdd7");
mAdapter.add("itemAdd8");
mAdapter.add("itemAdd9");

list.setAdapter(mAdapter);

so I find on the ApiDemos android the List14.java class using
EfficientAdapter class.

http://developer.android.com/intl/fr/guide/samples/ApiDemos/src/com/example/android/apis/view/List14.html

My question is, Can I just use class extends Activity to use the same
things like List14.java, with getView(int position, View convertView,
ViewGroup parent) ????

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

2. Will Animated GIF format be supported in Android Browser?

We understand that currently there is no Media Format support for
Animated GIF from the standard Android platform. Is there any roadmap
for that to be supported in Android Browser in the future?

Thanks

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

3. Federated app directories

4. Reasons for working in the platform instead of SDK

5. Samsung i7500 side lock button - why?

6. Reasons for working in the platform instead of SDK

7. How to send andio file to voice channel during call