Skip to content Skip to sidebar Skip to footer

HTML5 - Access Camera

I'd like to access camera with HTML and JavaScript. I've seen this example, but it doesn't work in Chrome. I have tried this, too: &

Solution 1:

You are missing errorCallback function.

function errorCallback(e) {
    console.log(e);
}

I added this and got an error: enter image description here

To access userMedia you have to have https. I tried running it here (jsfiddle) and works for me.


Post a Comment for "HTML5 - Access Camera"