1
function kamera(){
var video = document.querySelector("#videoelement");

navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia || navigator.oGetUserMedia;

if (navigator.getUserMedia) {       
    navigator.getUserMedia({video: true}, handleVideo, videoError);
}

function handleVideo(stream) {
    video.src = window.URL.createObjectURL(stream);
}

function videoError(e) {
    // do something
}}

This script enables your webcam and stream it on the site. It works fine but stream on Chrome is "zoomed". Any suggestion how to fix this?(IE does not support this)

user3706129
  • 229
  • 4
  • 15

1 Answers1

1

The getUserMedia/Stream API isn't supported on Internet Explorer yet http://caniuse.com/stream

See here for possible workarounds How to use webcam using Internet Explorer

Community
  • 1
  • 1
Matthew Lock
  • 13,144
  • 12
  • 92
  • 130