Lines Matching refs:mMediaPlayer
77 private MediaPlayer mMediaPlayer = null;
203 if (mMediaPlayer != null) {
204 mMediaPlayer.stop();
205 mMediaPlayer.release();
206 mMediaPlayer = null;
227 mMediaPlayer = new MediaPlayer();
228 mMediaPlayer.setOnPreparedListener(mPreparedListener);
229 mMediaPlayer.setOnVideoSizeChangedListener(mSizeChangedListener);
231 mMediaPlayer.setOnCompletionListener(mCompletionListener);
232 mMediaPlayer.setOnErrorListener(mErrorListener);
233 mMediaPlayer.setOnBufferingUpdateListener(mBufferingUpdateListener);
235 mMediaPlayer.setDataSource(mContext, mUri, mHeaders);
236 mMediaPlayer.setDisplay(mSurfaceHolder);
237 mMediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
238 mMediaPlayer.setScreenOnWhilePlaying(true);
239 mMediaPlayer.prepareAsync();
248 mErrorListener.onError(mMediaPlayer, MediaPlayer.MEDIA_ERROR_UNKNOWN, 0);
254 mErrorListener.onError(mMediaPlayer, MediaPlayer.MEDIA_ERROR_UNKNOWN, 0);
268 if (mMediaPlayer != null && mMediaController != null) {
308 mOnPreparedListener.onPrepared(mMediaPlayer);
359 mOnCompletionListener.onCompletion(mMediaPlayer);
376 if (mOnErrorListener.onError(mMediaPlayer, framework_err, impl_err)) {
405 mOnCompletionListener.onCompletion(mMediaPlayer);
467 if (mMediaPlayer != null && isValidState && hasValidSize) {
494 if (mMediaPlayer != null) {
495 mMediaPlayer.reset();
496 mMediaPlayer.release();
497 mMediaPlayer = null;
534 if (mMediaPlayer.isPlaying()) {
543 if (!mMediaPlayer.isPlaying()) {
550 if (mMediaPlayer.isPlaying()) {
573 mMediaPlayer.start();
581 if (mMediaPlayer.isPlaying()) {
582 mMediaPlayer.pause();
603 mDuration = mMediaPlayer.getDuration();
612 return mMediaPlayer.getCurrentPosition();
619 mMediaPlayer.seekTo(msec);
627 return isInPlaybackState() && mMediaPlayer.isPlaying();
631 if (mMediaPlayer != null) {
638 return (mMediaPlayer != null &&