jeancarl / node-red-contrib-virtual-tjbot

Virtual TJBot Node-RED nodes
Apache License 2.0
2 stars 5 forks source link

bugfix camera that was not working #3

Closed Lotti closed 5 years ago

Lotti commented 5 years ago

https://stackoverflow.com/questions/11642926/stop-close-webcam-which-is-opened-by-navigator-getusermedia

stefanopog commented 5 years ago

I manually made the changes you proposed on my running code. They work perfectly. THANKS SO MUCH @Lotti

Lotti commented 5 years ago

I observed that the camera stays on (led is full green on my mac) and that the first photo taken is always full-white or full-color.. then the next one is fine. Maybe timing issues during videoplayer/canvas setup while the camera is being switched on?

Unfortunately I didn't find any solution about switching off camera :\

stefanopog commented 5 years ago

Valerio, for me this solved the issue completely. GRAZIE !

jeancarl commented 5 years ago

Thank you so much @Lotti for this update! It has been published to npm.