setVideoConfig method
ZH
视频参数配置 @param config @param tiny 是否小流 @return 0: 成功, 非0: 失败
EN
Configure video parameters @param config @param tiny Enable low-bitrate stream @return 0: Success, Non-zero: Failure
Implementation
Future<int> setVideoConfig(
RCRTCVideoConfig config, [
bool tiny = false,
]) async {
Map<String, dynamic> arguments = {'config': config.toJson(), 'tiny': tiny};
int code = await _channel.invokeMethod('setVideoConfig', arguments) ?? -1;
return code;
}