| <!-- |
| // 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> |