setCameraExposurePointInPreview method
- double x,
- double y,
- {ZegoPublishChannel? channel}
Set the exposure point in the preview view.
Available since: 2.14.0
Description: Set the exposure point in the preview view. (x, y) are the normalized coordinates in the preview view, that is, the ratio of the position of the exposure point relative to the preview view and the width and height of the preview view. The upper left corner is (0, 0).
Trigger: Called after turn on preview startPreivew
.
Restrictions: Currently only supports iOS and Android platforms.
Caution: Every time the camera restarts the acquisition, the settings will become invalid and need to be reset.
Note: This function is only available in ZegoExpressVideo SDK!
x
Normalized X axis coordinate value, effective value0,1
.y
Normalized Y axis coordinate value, effective value0,1
.channel
Publishing stream channel
Implementation
Future<void> setCameraExposurePointInPreview(double x, double y,
{ZegoPublishChannel? channel}) async {
return await ZegoExpressImpl.instance
.setCameraExposurePointInPreview(x, y, channel: channel);
}