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

Commit 62089724 authored by Arne Coucheron's avatar Arne Coucheron Committed by Jan Altensen
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 518321cc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -135,7 +135,7 @@ public class ScreenMediaRecorder {
                * VIDEO_FRAME_RATE_TO_RESOLUTION_RATIO;
        mMediaRecorder.setVideoEncoder(MediaRecorder.VideoEncoder.H264);
        mMediaRecorder.setVideoEncodingProfileLevel(
                MediaCodecInfo.CodecProfileLevel.AVCProfileHigh,
                MediaCodecInfo.CodecProfileLevel.AVCProfileMain,
                MediaCodecInfo.CodecProfileLevel.AVCLevel3);
        mMediaRecorder.setVideoSize(width, height);
        mMediaRecorder.setVideoFrameRate(refreshRate);