question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RtcEngine.setCameraZoomFactor

See original GitHub issue

I think there is an issue with the RtcEngine.setCameraZoomFactor.

I looked at the doc and some samples and they all expect this to work.

RtcEngine.setCameraZoomFactor(1.0) When I look at the RtcEngine it says that the setCameraZoomFactor is a promise. Is his only for IOS or? I am using react native

Screenshot 2019-04-14 at 03 50 56

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
tmjordancommented, Apr 30, 2019

@CyrusZei thank you man, it’s working for me too. But i noticed something, it was zoomed because i had set the orientation_mode with “FixedLandscape” value in the videoEncoderConfig. Remove that makes it work. Here’s what i had:

         videoEncoderConfig: {
                width: 360,
                height: 480,
                bitrate: 1,
                frameRate: FPS30,
                orientationMode: FixedLandscape,
            },
3reactions
CyrusZeicommented, Apr 30, 2019

yes, the Agora team told me to remove the FixedLandscape and then it worked.

Read more comments on GitHub >

github_iconTop Results From Across the Web

RtcEngine.setCameraZoomFactor · Issue #62 - GitHub
I think there is an issue with the RtcEngine.setCameraZoomFactor. I looked at the doc and some samples and they all expect this to...
Read more >
RtcEngine - Agora.io
RtcEngine provides the main methods that your app can call. ... Future<void> setCameraZoomFactor(double factor);. Attention:.
Read more >
RtcEngine class - agora_rtc_engine library - Dart API - Pub.dev
API docs for the RtcEngine class from the agora_rtc_engine library, ... setCameraZoomFactor(double factor) → Future<void>: Sets the camera zoom ratio.
Read more >
语音通话- RtcEngine - 文档中心
一套SDK适配全终端,为开发者提供低延时高质量的音视频服务.
Read more >
react-native-agora - npm
Method Name Parameters Description on String: EventType, Handler: Function addEventListener for native modu... off String: EventType removeEventListeners for native... removeAllListeners void remove all event listeners
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found