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

Is agora_rtc_engine: ^5.3.1 has switch camera feature? #1288

Closed
SittiphanSittisak opened this issue Aug 28, 2023 · 6 comments
Closed

Is agora_rtc_engine: ^5.3.1 has switch camera feature? #1288

SittiphanSittisak opened this issue Aug 28, 2023 · 6 comments
Labels
platform-web waiting for customer response waiting for customer response, or closed by no-reponse bot

Comments

@SittiphanSittisak
Copy link

SittiphanSittisak commented Aug 28, 2023

It is not a bug.
I want to switch the camera from the front to the back camera on the mobile browser.
The UI of this package doesn't show on the mobile browser but the function to share camera view is still working, but I don't want the front camera view.
How to do this?

I tried to use

                  ElevatedButton(
                    onPressed: () async {
                      try {
                        await _engine.switchCamera();
                        if (mounted) ScaffoldMessenger.of(context).showSnackBar(const SnackBar(content: Text('switch camera success'), duration: Duration(seconds: 3)));
                      } catch (e) {
                        ScaffoldMessenger.of(context).showSnackBar(SnackBar(content: Text(e.toString()), duration: const Duration(seconds: 3)));
                      }
                    },
                    child: const Text('switch camera'),
                  )

The snack bar showed 'switch camera success' but the camera still did not change.

@littleGnAl
Copy link
Contributor

I think it's not supported on mobile browser in 5.x

@SittiphanSittisak
Copy link
Author

Rrr, I need to use just one page that shows video calls on the mobile browser.
Can you suggest a framework that has an Agora package with support for mobile web?

@littleGnAl
Copy link
Contributor

littleGnAl commented Sep 4, 2023

We recommend using the web features on the desktop at this time.

@littleGnAl
Copy link
Contributor

On the latest code of the main branch, you can enumerate the devices and set the back camera yourself. Maybe you can try this example https://github.com/AgoraIO-Extensions/Agora-Flutter-SDK/blob/main/example/lib/examples/advanced/device_manager/device_manager.dart

@littleGnAl littleGnAl added waiting for customer response waiting for customer response, or closed by no-reponse bot and removed keep track labels Oct 27, 2023
Copy link
Contributor

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. If you find this problem please file a new issue with the same description, what happens, logs and the output. All system setups can be slightly different so it's always better to open new issues and reference the related ones. Thanks for your contribution.

Copy link
Contributor

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please raise a new issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
platform-web waiting for customer response waiting for customer response, or closed by no-reponse bot
Projects
None yet
Development

No branches or pull requests

2 participants