2 // Copyright 2014 The Chromium Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
8 <script type=
"text/javascript">
9 function CaptureVideo() {
10 video
= document
.createElement('video');
11 video
.style
.width
="640px";
12 video
.autoplay
= true;
13 document
.body
.appendChild(video
);
14 navigator
.webkitGetUserMedia(
15 { video
: true, audio
: true },
17 video
.src
= window
.URL
.createObjectURL(stream
);
18 }, function(err
) { window
.console
.log(err
); }
22 window
.onload = function() {