Exemple #1
0
 private void release(boolean cleartargetstate) {
   if (mMediaPlayer != null) {
     mMediaPlayer.reset();
     mMediaPlayer.release();
     mMediaPlayer = null;
     mCurrentState = STATE_IDLE;
     if (cleartargetstate) mTargetState = STATE_IDLE;
   }
 }
Exemple #2
0
 public void stopPlayback() {
   if (mMediaPlayer != null) {
     mMediaPlayer.stop();
     mMediaPlayer.release();
     mMediaPlayer = null;
     mCurrentState = STATE_IDLE;
     mTargetState = STATE_IDLE;
   }
 }
 private void releaseMediaPlayer() {
   if (mMediaPlayer != null) {
     mMediaPlayer.release();
     mMediaPlayer = null;
   }
 }
 private void releaseMediaPlayer() {
   if (player != null) {
     player.release();
     player = null;
   }
 }
Exemple #5
0
 public void releaseContext() {
   if (mPlayer != null) mPlayer.release();
   mPlayer = null;
 }