AR-js-org / AR.js

Image tracking, Location Based AR, Marker tracking. All on the Web.
MIT License
5.37k stars 919 forks source link

WebRTC issue-! navigator.mediaDevices not present in your browse #236

Open lazicoder opened 3 years ago

lazicoder commented 3 years ago

I tried to do a simple AR.js marker project like example. It worked when I just opened html file on laptop's browser. The problem appeared when I tried deployed it on an API and mapped to KONG to try it on my smart phone. My project can not use the device's camera and it gave the following error:

Webcam Error Name: Message: WebRTC issue-! navigator.mediaDevices not present in your browser

If any one got this error, please help me to solve it. Thanks so much!

gontz commented 3 years ago

you need to run the examples from a https address (SSL enabled)

javascripet commented 3 years ago

use safari instead of chrome