setLowlightEnhancement method

Future<void> setLowlightEnhancement(
  1. ZegoLowlightEnhancementMode mode,
  2. {ZegoPublishChannel? channel}
)

Set low light enhancement.

Available since: 2.21.0 Description: According to the set low-light enhancement mode, the brightness of the image captured by the camera is enhanced, which is compatible with the beauty function. Users can watch the effect while previewing and toggle the low-light enhancement mode in real time. Use cases: The environment on the streaming end is dark, or the frame rate set by the camera is high, which causes the picture to be dark, and the subject cannot be displayed or recognized normally. Default value: Off. When to call: After creating the engine createEngine. Note: This function is only available in ZegoExpressVideo SDK!

  • mode Low light enhancement mode.
  • channel Publish stream channel.

Implementation

Future<void> setLowlightEnhancement(ZegoLowlightEnhancementMode mode,
    {ZegoPublishChannel? channel}) async {
  return await ZegoExpressImpl.instance
      .setLowlightEnhancement(mode, channel: channel);
}