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 件 担当者 0 名 GitHub で見る
主要言語
Dart
スター
795
フォーク
448
平均マージ
12時間 19分
マージ済み PR(30日)
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 を短くまとめたダイジェスト。