stopScreenSharing method

  1. @override
Future<void> stopScreenSharing()
override

Implementation

@override
Future<void> stopScreenSharing() async {
  try {
    if (WebRTC.platformIsIOS) {
      ReplayKitHelper().openReplayKit();
    } else {
      await _rtcManager.stopScreenSharing();
    }
  } catch (error) {
    _logger.bug(error.toString());
  }
}