public void setDisplay(SurfaceHolder sh) {
        mSurfaceHolder = sh;
        if (sh != null) {
            mSurface = sh.getSurface();
        } else {
            mSurface = null;
        }

        if(mDecoders != null && mDecoders.getVideoDecoder() != null) {
            //mDecoders.getVideoDecoder().updateSurface(mSurface);
        }

        if(mPlaybackThread == null) {
            // Player not prepared yet, so we can set the timing mode
            setVideoRenderTimingMode(VideoRenderTimingMode.AUTO);
            updateSurfaceScreenOn();
        } else {
            // Player is already prepared, just change the surface
            mPlaybackThread.setSurface(mSurface);
        }
    }
@see android.media.MediaPlayer#setDisplay(android.view.SurfaceHolder)
MediaPlayer/src/main/java/net/protyposis/android/mediaplayer/MediaPlayer.java