stopReceiving method
Stops receiving video on the remote video stream.
Available only for conference calls.
If the request is processed successfully, VIStopReceivingVideoStream event is triggered 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);
}
}