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

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

Offen
#2,452 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Dart
Sterne
795
Forks
448
Ø Merge
12 Std. 19 Min.
Gemergte PRs (30 T.)
14

Beschreibung

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?

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.