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.

functionerrorCallback(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"