I have a Flutter web application. I open it in the mobile browser Chrome or Safari on an Android or IOS device.
I start a video call, try to show the screen of the mobile phone, instead there is a demonstration of video from the device's front camera. What could be the problem? What should I check?
try {
await _livekitRoom.localParticipant?.setScreenShareEnabled(
true,
screenShareCaptureOptions: const ScreenShareCaptureOptions(
params: VideoParametersPresets.screenShareH1080FPS30,
maxFrameRate: MAX_FRAME_RATE,
),
);
} catch (_) {}