rejas / MMM-MotionDetector

This is a motion detector module for MagicMirror
MIT License
51 stars 10 forks source link

Error: getUserMedia is not implemented in this browser #56

Open webbaets opened 2 years ago

webbaets commented 2 years ago

I reinstalled raspbian and now keep getting following message: Error: getUserMedia is not implemented in this browser

Tested older and new versions of raspbian on Pi4, also Stretch version on Pi3. Config > address: “0.0.0.0”, When changing to “localhost” or “127.0.0.1” you get the “NotFoundError: Requested device not found”

https://forum.magicmirror.builders/topic/16315/mmm-motiondetector-error-getusermedia

rejas commented 2 years ago

Could you try enabling the legy camera support in the raspi-config tool?

3 Interface Options -> I1 Legacy Camera

webbaets commented 2 years ago

The Legacy Camera is on. Run as server and start chromium > authorize the camera. And it works

jacobpearson commented 2 years ago

I'm having the same issue too, runs fine in Chromium once authorised.

rejas commented 2 years ago

FYI: I switched back to the legacy raspios (https://www.raspberrypi.com/news/new-old-functionality-with-raspberry-pi-os-legacy/) and there the bug doesnt seem to appear.

webbaets commented 2 years ago

Correct. On the legacy raspios it works. Thx

rejas commented 2 years ago

So we can close thi sissue for now?

misk0 commented 2 years ago

The Legacy Camera is on. Run as server and start chromium > authorize the camera. And it works

I have the same issue. I'm using MM more than 4 years and now I just updated MM to version 2.0.19. After the update MotionDetector stop to work with message "Requested device not found".

I tried workaround (start MM with 'npm run server' and open chromium thru remote XDisplay (MobTerm). First time it asked me to allow camera and next time it didn't. But when I close all and run MM from pm2 it shows me the same error message.

Is it possible to make this chromium setting permanent for all browser session, or something similar?

My mirror is in my living room and I don't /can't have mouse and keyboard always connected to start it manually every time.

webbaets commented 1 year ago

It looks like this won't work again with the latest version of MagicMirror. When I look at Chromium, you can activate the camera on localhost & 127.0.0.1 (permission for this site) but on 0.0.0.0 it is grayed out. Think this will also be the case for Electronjs. Only possibility I see is;

kevinoue commented 1 year ago

Has anyone had any luck with this?