Look for related messages on Logcat.
On Jul 17, 2012 8:51 AM, "Zoheb Rahman" <zoh...@gmail.com> wrote:

>
>
> On Monday, July 16, 2012 11:00:07 AM UTC+5:30, Zoheb Rahman wrote:
>>
>> I have tried the code on the emulator using Platform 2.2 API level 8 as
>> well as an Emulator using Platform 4.0.3 using API level 15 .. it works
>> perfectly and starts the stream in about 5 secs. But when i run the code on
>> my HTC one x (Android Version 4.0.3)or tried running it on the HTC Desire
>> S(Android Version 2.3.5) it takes over 50 secs to stream
>>
>> Here is my code
>>
>>  public static MediaPlayer mp;
>>     public String url = "http://vprbbc.streamguys.net:**80/vprbbc24.mp3 
>> <http://vprbbc.streamguys.net:80/vprbbc24.mp3>";
>>
>>      public void onCreate(Bundle savedInstanceState) {
>>      mp = new MediaPlayer();
>>      try {
>>
>>     mp.setDataSource(url);
>>     mp.setOnErrorListener(this);
>>             mp.setOnPreparedListener(this)**;
>>     mp.prepareAsync();
>>          }
>>       catch(IOException e){
>>             e.printStackTrace();
>>         }
>>         }  // close of onCreate
>>
>>          public void onPrepared(MediaPlayer player) {
>>           mp.start();
>>
>>
>> There is no issue with the internet connection. Both the phone and the 
>> emulator are connected to the same internet connection.
>>
>> I have also tried running the code on a samsung tab and the streams starts 
>> up in roughly 6 secs.
>>
>> Tried running this on several android phones yesterday, samsung, HTC and
> sony ericsson take between 50 to 80 secs to start playing. The samsung tab
> is the GT-P1000 that runs android 2.2 only this one device seems to play
> the stream fast enough
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to