When I switch from the phone's camera to screen capture, if I select "Single App" in the permissions pop-up and then select the app itself, a "Failed to create internal virtual display" exception occurs.
Below is the modified code I used to reproduce the problem in the demo:
I tried using stopPreview before switching, but it didn't work.
When I switch from the phone's camera to screen capture, if I select "Single App" in the permissions pop-up and then select the app itself, a "Failed to create internal virtual display" exception occurs.
Below is the modified code I used to reproduce the problem in the demo:
I tried using
stopPreviewbefore switching, but it didn't work.