stopReceiving method

Future<void> stopReceiving(
  1. String streamId
)

Stops receiving video on the remote video stream.

Available only for the conference calls.

If the request is processed successfully, VIStopReceivingVideoStream event will be invoked with the reason VIVideoStreamReceiveStopReason.MANUAL.

streamId - Remote video stream id

Throws VIException, if an error occurred.

Errors:

Implementation

Future<void> stopReceiving(String streamId) async {
  try {
    await _channel.invokeMethod<void>(
        'VideoStream.stopReceivingRemoteVideoStream',
        <String, dynamic>{'streamId': streamId});
  } on PlatformException catch (e) {
    throw VIException(e.code, e.message);
  }
}