Lines Matching refs:mMediaPlayer
50 private MediaPlayer mMediaPlayer;
125 if (mState != ERROR && mMediaPlayer.isPlaying()) {
126 int position = mMediaPlayer.getCurrentPosition();
198 if (mMediaPlayer == null) {
199 mMediaPlayer = new MediaPlayer();
201 mMediaPlayer.reset();
203 mMediaPlayer.setOnBufferingUpdateListener(this);
204 mMediaPlayer.setOnCompletionListener(this);
205 mMediaPlayer.setOnErrorListener(this);
206 mMediaPlayer.setOnPreparedListener(this);
207 mMediaPlayer.setOnSeekCompleteListener(this);
233 mMediaPlayer.setDataSource(url, headers);
235 mMediaPlayer.prepareAsync();
248 if (mMediaPlayer == null) {
250 } else if (mState != ERROR && !mMediaPlayer.isPlaying()) {
251 mMediaPlayer.start();
258 if (mState != ERROR && mMediaPlayer.isPlaying()) {
259 mMediaPlayer.stop();
268 if (mState != ERROR && mMediaPlayer.isPlaying()) pause();
277 mMediaPlayer.start();
294 mMediaPlayer.start();
305 mMediaPlayer.pause();
315 mMediaPlayer.seekTo(msec);
324 mMediaPlayer.release();
325 mMediaPlayer = null;
332 return mMediaPlayer.getDuration() / 1000.0f;