public int getCurrentPosition() {
        if(mCurrentState.ordinal() >= State.RELEASING.ordinal()) {
            mCurrentState = State.ERROR;
            throw new IllegalStateException();
        }
        /* During a seek, return the temporary seek target time; otherwise a seek bar doesn't
         * update to the selected seek position until the seek is finished (which can take a
         * while in exact mode). */
        return (int)((mSeeking ? mSeekTargetTime : mCurrentPosition)/1000);
    }
@see android.media.MediaPlayer#setScreenOnWhilePlaying(boolean)
MediaPlayer/src/main/java/net/protyposis/android/mediaplayer/MediaPlayer.java