stopReceiving method
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:
- VICallError.ERROR_INTERNAL - If an internal error occurred.
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);
}
}