requestVideoSize method

Future<void> requestVideoSize(
  1. String streamId,
  2. int width,
  3. int height
)

Requests the specified video size for the video stream.

The stream resolution may be changed to the closest to the specified width and height.

Valid only for conferences.

streamId - Remote video stream id

width - Requested width of the video stream

height - Requested height of the video stream

Throws VIException, if an error occurred.

Errors:

Implementation

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