In addition here's some code that I use:
mPlayer = new MediaPlayer();
mPlayer.setOnPreparedListener(mOnPlayerPreparedListener);
mPlayer.setOnErrorListener(mOnPlayerErrorListener);
mPlayer.setWakeMode(this, PowerManager.PARTIAL_WAKE_LOCK);

//...

mPlayer.setDataSource(getResources().getString(mLowQualityStreamId));
mPlayer.prepareAsync();

// ... in onPreparedListener

mPlayer.start();

On Thursday, September 27, 2012 11:34:42 AM UTC+4, Dmitriy F wrote:
>
> Hi, I've run into an issue where my application prepares live-stream 
> roughly from 5 to 10 seconds. For instance, take this live-stream and try 
> to prepare it on 2.3.3 - it will take about 7 seconds, while it's a live 
> stream and there's not much to buffer. Another app called pcRadio uses the 
> same live-stream but it starts playing instantly. 
>
> What can be done to faster or disable redundant buffering ?
>
> Thanks.
>

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

Reply via email to