public virtual void stop() { if (mPlayer != null) { mPlayer.stop(); mPosition = 0; } else { // Player is not yet connected, store that we should hide // playback when it connects. mStateToGo = PlayerState.STOPPED; } }