MMM-MotionDetector icon indicating copy to clipboard operation
MMM-MotionDetector copied to clipboard

Error: getUserMedia is not implemented in this browser

Open webbaets opened this issue 2 years ago • 9 comments

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

webbaets avatar Feb 03 '22 13:02 webbaets

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

3 Interface Options -> I1 Legacy Camera

rejas avatar Feb 05 '22 13:02 rejas

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

webbaets avatar Feb 06 '22 12:02 webbaets

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

jacobpearson avatar Apr 18 '22 22:04 jacobpearson

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.

rejas avatar Apr 23 '22 13:04 rejas

Correct. On the legacy raspios it works. Thx

webbaets avatar Apr 25 '22 09:04 webbaets

So we can close thi sissue for now?

rejas avatar Apr 27 '22 18:04 rejas

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.

misk0 avatar May 20 '22 15:05 misk0

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;

  • make Electronjs authenticate the camera when starting module
  • make Electronjs authenticate the camera when starting MagicMirror

    set camera permission for 0.0.0.0

webbaets avatar Oct 31 '22 13:10 webbaets

Has anyone had any luck with this?

kevinoue avatar Jan 18 '23 23:01 kevinoue