We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a9540a commit 9f00bf8Copy full SHA for 9f00bf8
lib/src/widgets/video_track_renderer.dart
@@ -212,6 +212,11 @@ class _VideoTrackRendererState extends State<VideoTrackRenderer> {
212
if (widget.mirrorMode == VideoViewMirrorMode.auto) {
213
final track = widget.track;
214
if (track is LocalVideoTrack) {
215
+ final settings = track.mediaStreamTrack.getSettings();
216
+ final facingMode = settings['facingMode'];
217
+ if (facingMode != null) {
218
+ return facingMode == 'user';
219
+ }
220
final options = track.currentOptions;
221
if (options is CameraCaptureOptions) {
222
// mirror if front camera
0 commit comments