setVideoConfig method

Future<void> setVideoConfig(
  1. dynamic config,
  2. int channel
)

Implementation

Future<void> setVideoConfig(dynamic config, int channel) {
  ZegoWebVideoConfig webVideoConfig = ZegoWebVideoConfig(
      encodeWidth: config["encodeWidth"],
      encodeHeight: config["encodeHeight"],
      fps: config["fps"],
      bitrate: config["bitrate"],
      codecID: config["codecID"]);

  ZegoFlutterEngine.instance
      .setVideoConfig(webVideoConfig, getPublishChannel(channel));
  return Future.value();
}