node-red / node-red-ui-nodes

Additional nodes for Node-RED Dashboard
Apache License 2.0
122 stars 83 forks source link

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

Open regystro opened 2 years ago

regystro commented 2 years ago

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?

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: