requestVideoSize method
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:
- VICallError.ERROR_INVALID_ARGUMENTS - If failed to find remote video stream by provided video stream id
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);
}
}