code: private void pause() {
          if (mHasAlreadyPlayed && !mIsPaused) {
              mIsPaused = true;
              if (!mIsPreparing) {
                  mMediaPlayer.pause();
              }
  
              // broadcast event
              Intent intent = new Intent(PlaybackListener.ACTION_ON_PLAYER_PAUSED);
              mLocalBroadcastManager.sendBroadcast(intent);
  
              updateNotification();
  
              mMediaSession.setPlaybackState(MediaSessionWrapper.PLAYBACK_STATE_PAUSED);
              pauseTimer();
          }
      }
docs: Pause the playback.