yemount / pose-animator

Apache License 2.0
8.73k stars 961 forks source link

Browser-side Error: Browser API navigator.mediaDevices.getUserMedia not available #11

Open UmutAlihan opened 4 years ago

UmutAlihan commented 4 years ago

I run pose-animator on my headless server with command: yarn watch image

Typing the Url below on my macbook (firefox & chrome) and my phone (tried on same browsers): http://ip-address-of-server:33707/camera.html

I get the Error below: this device type is not supported yet, or this browser does not support video capture: Error: Browser API navigator.mediaDevices.getUserMedia not available Setting up camera..

image

jamesthesnake commented 4 years ago

I don't get this error when I run locally but when I throw it up on a server it appears.

UmutAlihan commented 4 years ago

I don't get this error when I run locally but when I throw it up on a server it appears.

Exactly same issue here

jamesthesnake commented 4 years ago

This may help https://stackoverflow.com/questions/46299723/navigator-mediadevices-getusermedia-with-http-server

jamesthesnake commented 4 years ago

I think this is it: Because mediaDevice.getUserMedia requires https vs http you need to do this http://www.howto-expert.com/how-to-get-https-setting-up-ssl-on-your-website/ to get it to work. ( haven't tried yet)

glitchland commented 4 years ago

Yep @jamesthesnake that is the reason.