startScreenSharing method

  1. @override
Future<void> startScreenSharing({
  1. DesktopCapturerSource? source,
})
override

Implementation

@override
Future<void> startScreenSharing({DesktopCapturerSource? source}) async {
  if (WebRTC.platformIsIOS) {
    ReplayKitHelper().openReplayKit();
    _replayKitChannel.startReplayKit();
    _replayKitChannel.listenEvents(_rtcManager);
  } else {
    await _rtcManager.startScreenSharing(source: source);
  }
}