I have tested the code for Android 11 on Realme device. Recorded file is not stored in the default location and when I share the file to what's app or some other source. It was not sharing and showing File format not supported. But, if we change the default path and try to record the screen again. It's getting recording, but complete black screen is coming in the recorded video. Please help us out.
@indritbashkimi