chromium/extensions/test/data/app_view/apitest/media_request/guest.html

<!--
Copyright 2014 The Chromium Authors
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.srcObject = stream;
        }, function(err) { window.console.log(err); }
      );
    }

    window.onload = function() {
      CaptureVideo();
    }
  </script>
</head>
<body>
</body>
<html>