работает в хроме:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<video id="video" autoplay="autoplay" width="100%"></video>
<script>
(function () {
navigator.webkitGetUserMedia({video : true}, getStream, noStream);
function getStream (stream) {
var url = webkitURL.createObjectURL(stream);
video.src = url;
}
function noStream (faild) {
}
}());
</script>
</body>
</html>