public void setScreenOnWhilePlaying(boolean screenOn) {
        if (mScreenOnWhilePlaying != screenOn) {
            if (screenOn && mSurfaceHolder == null) {
                Log.w(TAG, "setScreenOnWhilePlaying(true) is ineffective without a SurfaceHolder");
            }
            mScreenOnWhilePlaying = screenOn;
            updateSurfaceScreenOn();
        }
    }
@see android.media.MediaPlayer#setScreenOnWhilePlaying(boolean)
MediaPlayer/src/main/java/net/protyposis/android/mediaplayer/MediaPlayer.java