Hi,
I'm developping an application on Android 2.2. This application have
to read some h264 videos using HTTP protocol.
To read a video, I'm using following methods :
// INIT PART
mMediaPlayer = new MediaPlayer();
mMediaPlayer.reset();
mMediaPlayer.setOnErrorListener(this);
mMediaPlayer.setOnBufferingUpdateListener(this);
mMediaPlayer.setOnCompletionListener(this);
mMediaPlayer.setOnPreparedListener(this);
mMediaPlayer.setOnSeekCompleteListener(this);
mMediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
// SET DATASOURCE
mMediaPlayer.reset();
mMediaPlayer.setDataSource(url);
mMediaPlayer.prepareAsync();
In prepareAsync callback :
public void onPrepared(MediaPlayer mediaplayer) {
mMediaPlayer.start();
}
But, i'm logging current buffering percent in
OnBufferingUpdateListener callback ... it's always 0. Sometimes, a
same video can work, or not. I don't understand the problem ...
Can I have some help ?
Thanks,
Corentin Guy
--
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