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

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

Đang mở
#2,452 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Dart
Star
795
Fork
448
Merge trung bình
12 giờ 19 phút
Pull request đã merge (30 ngày)
14

Mô tả

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?

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.