Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 318b4b0a authored by Arne Coucheron's avatar Arne Coucheron Committed by Michael Bestas
Browse files

SystemUI: Use AVCProfileMain for screen recorder

Some devices don't support the High profile very well.
Use Main profile, which is more compatible, so they
can use screen recorder too.

Change-Id: Iac23480e080edf4300e6f411c3394c0b41030daa
parent 38f899a4
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -149,7 +149,7 @@ public class ScreenMediaRecorder extends MediaProjection.Callback {
                * VIDEO_FRAME_RATE_TO_RESOLUTION_RATIO;
                * VIDEO_FRAME_RATE_TO_RESOLUTION_RATIO;
        mMediaRecorder.setVideoEncoder(MediaRecorder.VideoEncoder.H264);
        mMediaRecorder.setVideoEncoder(MediaRecorder.VideoEncoder.H264);
        mMediaRecorder.setVideoEncodingProfileLevel(
        mMediaRecorder.setVideoEncodingProfileLevel(
                MediaCodecInfo.CodecProfileLevel.AVCProfileHigh,
                MediaCodecInfo.CodecProfileLevel.AVCProfileMain,
                MediaCodecInfo.CodecProfileLevel.AVCLevel3);
                MediaCodecInfo.CodecProfileLevel.AVCLevel3);
        mMediaRecorder.setVideoSize(width, height);
        mMediaRecorder.setVideoSize(width, height);
        mMediaRecorder.setVideoFrameRate(refreshRate);
        mMediaRecorder.setVideoFrameRate(refreshRate);