setOutputSize method

Future<void> setOutputSize({
  1. int? width,
  2. int? height,
})

Implementation

Future<void> setOutputSize({int? width, int? height}) async {
  if (!_videoOutput) return;
  final textureId = await _channel.invokeMethod(
    'VOSetSize',
    {
      'handle': handle,
      'width': (width ?? videoParams.value.dw),
      'height': (height ?? videoParams.value.dh),
    },
  );

  id.value = textureId;
}