stopRemoteView method

  1. @override
void stopRemoteView(
  1. String userId,
  2. TRTCVideoStreamType streamType
)
override

Stop subscribing to remote user's video stream and release rendering control

Calling this API will cause the SDK to stop receiving the user's video stream and release the decoding and rendering resources for the stream.

Parameters:

Implementation

@override
void stopRemoteView(String userId, TRTCVideoStreamType streamType) {
  TRTCLog(_tag, "stopRemoteView userId: $userId streamType: $streamType");
  TRTCCloudNative.instance.stopRemoteView(userId, streamType.value());
  if (_isNativeTexturePlatform) {
    TRTCMethodChannel().unsetRemoteTextureRender(userId, streamType);
  }
}