setCameraZoomRatio method
Set the zoom factor (focal length) of camera (supports only the Android and iOS platforms)
The value range is 1–5. 1 indicates the furthest view (normal lens), and 5 indicates the nearest view (enlarging lens). We recommend you set the maximum value to 5. If the maximum value is greater than 5, the video will become blurry.
Parameters:
value Value range: 1–5. The greater the value, the further the focal length
Return: 0: success; negative number: failure
Implementation
Future<int?> setCameraZoomRatio(double value) async {
var result = await _channel.invokeMethod('setCameraZoomRatio', {
"value": value.toString(),
});
return V2TXLiveFlutterResult.intValue(result);
}