public boolean isRenderModeApi21() {
            switch (this) {
                case AUTO:
                    return Build.VERSION.SDK_INT >= 21;
                case SLEEP:
                    return false;
                case SURFACEVIEW_TIMESTAMP_API21:
                    return true;
            }

            return false;
        }
Defers rendering through {@link MediaCodec#releaseOutputBuffer(int, long)} which blocks
until the PTS is reached. Supported on API 21+.
MediaPlayer/src/main/java/net/protyposis/android/mediaplayer/MediaPlayer.java