Monday, 8 July 2019

How to set size for Media Recorder with notch display

I'm using MediaRecorder to record the surface, So I'm defining the video size to the MediaRecorder before preparing

Size size = getWindowManager().getDefaultDisplay().getSize(size);
... preparing the media recorder
mediaRecorder.setVideoSize(size.x, size.y);

So it is working fine without notch, when comes to the devices with notch the video is recorded as black.

Please help me

Thanks in Advance



from How to set size for Media Recorder with notch display

No comments:

Post a Comment