Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

example prejoin page camera mirror issue #615

Open
AoEiuV020 opened this issue Oct 24, 2024 · 1 comment
Open

example prejoin page camera mirror issue #615

AoEiuV020 opened this issue Oct 24, 2024 · 1 comment

Comments

@AoEiuV020
Copy link
Contributor

Describe the bug
When selecting the camera on the prejoin page, there is no distinction between the front and back cameras. By default, the selected camera is marked as CameraPosition.front, which causes it to display as mirrored.

Is there any way to actively choose between the front and back cameras?

When using Hardware.instance.enumerateDevices to get all devices, how can we determine whether a camera is front-facing or rear-facing?

Thank you!
To Reproduce
Go to the prejoin page.
Select a camera (either front or back).
Observe the mirror effect on the video preview.
Expected behavior
The front and back cameras should be clearly distinguishable when selecting, and the mirror effect should only apply to the front-facing camera. There should be a way to select which camera to use (front or back).
Platform information

  • Flutter version: 3.24.3
  • Plugin version: 2.2.8
  • Flutter target OS: Android
  • Flutter target OS version: 14
  • Flutter console log:
@AoEiuV020
Copy link
Contributor Author

After investigation, I found that the issue lies with rtc.navigator.mediaDevices.enumerateDevices(). The device information source retrieved from Android contains a "facing" property, but this property is not being passed to MediaDeviceInfo.

I would like to request the addition of this property so that when selecting a camera, users can clearly identify whether they are choosing the front-facing or rear-facing camera.

This may be considered an issue with the flutter_webrtc project. Should I submit an issue there? I noticed that the project lead is the same, so it should be quite similar, right?
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant