stopScreenCapture method

  1. @override
void stopScreenCapture()
override

Stop screen sharing

Implementation

@override
void stopScreenCapture() {
  TRTCLog(_tag, "stopScreenCapture");
  TRTCCloudNative.instance.stopScreenCapture();
  if (_isNativeTexturePlatform && _screenCaptureStreamType != null) {
    final streamType = _screenCaptureStreamType!;
    _screenCaptureStreamType = null;
    TRTCMethodChannel().unsetLocalTextureRender(streamType);
  }
}