AgoraIO-Extensions / AgoraIO-Extensions/Agora-Flutter-SDK

How to keep the rear camera fixed in Flutter (Android),after app lifecycle changes?

未关闭
#2,452 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Dart
星标
795
派生
448
平均合并
12 小时 19 分钟
30 天内合并 PR
14

描述

I'm using the Agora Flutter SDK for video broadcasting, and I manually switch to the rear camera using the switchCamera() method.

The issue is that whenever the app is minimized, paused, or goes through a lifecycle change (e.g., background → foreground), the camera automatically resets to the front camera when the session resumes.

I want to keep the rear camera fixed across all lifecycle states without switching back to the front camera each time.

Is there any way to:

Set the rear camera as default before joining the channel, or

Persist the camera selection across lifecycle events?

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。