setLowlightEnhancementParams method

Future<void> setLowlightEnhancementParams(
  1. ZegoExpLowlightEnhancementParams params,
  2. {ZegoPublishChannel? channel}
)

设置低照度增强参数。

支持版本:3.19.0 及以上。 详情描述:根据设置的低照度增强模式,对摄像头采集的画面亮度进行增强,兼容美颜功能。用户可以在预览时观看效果,并实时切换低照度增强模式。 业务场景:推流端环境较暗,或者摄像头设置的帧率较高导致画面偏暗,无法正常显示或识别主体。 调用时机:创建引擎 createEngine 后。 注意:此函数仅在 ZegoExpressVideo SDK 中有效!

  • params 低照度增强参数。
  • channel 推流通道。

Implementation

Future<void> setLowlightEnhancementParams(
    ZegoExpLowlightEnhancementParams params,
    {ZegoPublishChannel? channel}) async {
  return await ZegoExpressImpl.instance
      .setLowlightEnhancementParams(params, channel: channel);
}