Code example for MediaController

Methods: hide, isShowing, show

0
        return super.onKeyDown(keyCode, event);
    } 
 
    private void toggleMediaControlsVisiblity() { 
		Log.i(TAG, "toggleMediaControlsVisibility");
        if (mMediaController.isShowing()) {
            mMediaController.hide();
        } else { 
            mMediaController.show();
        } 
    } 
 
    public void start() { 
        if (isInPlaybackState()) { 
            mMediaPlayer.start();
            mCurrentState = STATE_PLAYING;
        } 
        mTargetState = STATE_PLAYING;
    } 
 
    public void stop() {