AgoraIO-Extensions / Agora-Flutter-SDK

Flutter plugin of Agora RTC SDK for Android/iOS/macOS/Windows

Home Page:https://pub.dev/packages/agora_rtc_engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Flutter][Android] [iOS] Wide camera is not supported in Zoom feature

khanhandpad opened this issue · comments

Is your feature request related to a problem? Please describe.

I'm using Agora Video SDK for Flutter to implement video call

I want to use the function setCameraZoomFactor from the SDK but the docs have mentioned like this:

[factor] The camera zoom ratio. The value ranges between 1.0 and the maximum zoom supported by the device. You can get the maximum zoom ratio supported by the device by calling the getCameraMaxZoomFactor method.

on my devices (iPhone 15 and Samsung s23), the user can use the default camera with a zoom factor < 1 (0.5 -> 0.9)

I have tried when passing the param 0.5 to that function (setCameraZoomFactor) but it doesn't work

so my question is: is there any way to help users zoom in on the camera with a factor < 1.0 (to use the wide camera)?

Describe the solution you'd like
The minimum factor should depend on the camera's device, in my case, it should be 0.5 (currently it's 1.0)

Describe alternatives you've considered
N/A

Additional context
flutter version: 3.16.0
agora_flutter version: 6.3.0

As I know, it's not supported on the native sdk side at this time.

After consulting with the native sdk team, there's a new feature of the wide-angle camera that will be landed in the next release.