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

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

Abierto
#2,452 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Dart
Estrellas
795
Forks
448
Merge medio
12 h 19 min
PR fusionados (30 d)
14

Descripción

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?

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.