blob: 9be81cf0b6f28abcd068a26eb21afed654065fda [file] [log] [blame]
<!--
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-->
<html>
<head>
<script type="text/javascript">
function CaptureVideo() {
video = document.createElement('video');
video.style.width="640px";
video.autoplay = true;
document.body.appendChild(video);
navigator.webkitGetUserMedia(
{ video: true, audio: true },
function(stream) {
video.src = window.URL.createObjectURL(stream);
}, function(err) { window.console.log(err); }
);
}
window.onload = function() {
CaptureVideo();
}
</script>
</head>
<body>
</body>
<html>