Is it possible to capture Android screen multiple times with different settings on Android 13? I've tried two approaches:
- Create two media projections using the same Activity.RESULT_OK and intent
- Create one media projection and two virtual displays by invoking the createVirtualDisplay method twice with the different parameters.
I need this because I need to cast one screen (virtual display, technically speaking) via the WebRTC with the ScreenCapturerAndroid and record on the device the second using the MediaRecorder API.
On devices with the API Level prior to 33 (Android 11), the approach #1 works fine, but not on devices with API Level 33.
Are there any ways to overcome this?