startReceiving method

Future<void> startReceiving(
  1. String streamId
)

Starts receiving video on the remote video stream.

Available only for the conference calls.

If the video is already receiving, this method call is ignored.

If the request is processed successfully, VIStartReceivingVideoStream event will be invoked.

streamId - Remote video stream id

Throws VIException, if an error occurred.

Errors:

Implementation

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