@SuppressLint("NewApi")
    @Override
    public void renderFrame(FrameInfo frameInfo, long offsetUs) {
        //Log.d(TAG, "renderFrame: " + frameInfo);
        if(mRenderModeApi21) {
            releaseFrame(frameInfo, offsetUs);
        } else {
            releaseFrame(frameInfo, true);
        }
    }
Returns the rotation of the video in degree.
Only works on API21+, else it always returns 0.
@return the rotation of the video in degrees
MediaPlayer/src/main/java/net/protyposis/android/mediaplayer/MediaCodecVideoDecoder.java