setCameraExposureCompensation method

Future<void> setCameraExposureCompensation(
  1. double value,
  2. {ZegoPublishChannel? channel}
)

Set the camera exposure compensation value and support spedifying the publish channel.

Available since: 2.10.0 Description: Set the camera exposure compensation value. Use cases: User can call this function to set the camera exposure compensation value. When to call /Trigger: Called this function after calling startPublishingStream or startPreview. Restrictions: None. Caution: The setting will be invalid when the camera is restarted. Platform differences: Only supports iOS and Android. Note: This function is only available in ZegoExpressVideo SDK!

  • value Camera exposure, the value range is -1,1, the default 0, -1 tends to darken, 1 tends to brighten.
  • channel Publishing stream channel

Implementation

Future<void> setCameraExposureCompensation(double value,
    {ZegoPublishChannel? channel}) async {
  return await ZegoExpressImpl.instance
      .setCameraExposureCompensation(value, channel: channel);
}