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

webcam: unable to switch camera via msg.camera #82

Open
5 tasks
regystro opened this issue Mar 24, 2022 · 0 comments
Open
5 tasks

webcam: unable to switch camera via msg.camera #82

regystro opened this issue Mar 24, 2022 · 0 comments

Comments

@regystro
Copy link

Hi. I've got a phone with front and back cameras. I'm tryng to switch between them using msg.camera with no success.

Which node are you reporting an issue on?

node-red-node-ui-webcam

What are the steps to reproduce?

Use an inject node + change node to send msg.camera=[any number from 0 to n] to webcam node

What happens?

  • The camera is disabled, and stays disabled until I activate it clicking the canvas. No matter what I send, it always reverts to the front camera. So there's no way to switch to the back camera unless using the dropdown selector.
  • Even after using the dropdown selector to choose the back camera, anytime I reload the page it switches back to the front camera. It seems LocalStorage is working inconsistently. There's no way to save the back camera as the default.
  • Also tested with and without "Start webcam automatically" option checked.

What do you expect to happen?

Switch between front and back camera normally, as it happens when I use the dropdown selector inside the canvas.

Please tell us about your environment:

  • Node-RED version: 2.2.2
  • node.js version: v16.13.2
  • npm version: 8.1.2
  • Platform/OS: Oracle Linux Server 7.9 (Fedora)
  • Browser: Chrome for Android 98.0.4758.101
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