Note: We no longer publish the latest version of our code here. We primarily use a kumc-bmi github organization. The heron ETL repository, in particular, is not public. Peers in the informatics community should see MultiSiteDev for details on requesting access.

source: webrtc/webrtc/test/manual/single-video.html @ 0:4bda6873e34c

pub_scrub_3792 tip
Last change on this file since 0:4bda6873e34c was 0:4bda6873e34c, checked in by Michael Prittie <mprittie@…>, 6 years ago

Scrubbed password for publication.

File size: 1.4 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2<!--
3  Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
4
5  Use of this source code is governed by a BSD-style license
6  that can be found in the LICENSE file in the root of the source
7  tree. An additional intellectual property rights grant can be found
8  in the file PATENTS.  All contributing project authors may
9  be found in the AUTHORS file in the root of the source tree.
10-->
11<html>
12<head>
13  <title>Single Local Preview (Video Only)</title>
14  <meta http-equiv="X-UA-Compatible" content="chrome=1"/>
15  <!-- Load the polyfill to switch-hit between Chrome and Firefox -->
16  <script src="adapter.js"> </script>
17  <script type="text/javascript">
18  function requestVideo() {
19    getUserMedia({video: true, audio: false},
20                         getUserMediaOkCallback,
21                         getUserMediaFailedCallback);
22  }
23
24  function getUserMediaFailedCallback(error) {
25    alert("User media request denied with error code " + error.code);
26  }
27
28  function getUserMediaOkCallback(stream) {
29    // Call the polyfill wrapper to attach the media stream to this element.
30    attachMediaStream(document.getElementById("view1"), stream);
31  }
32  </script>
33</head>
34<body onload="requestVideo();">
35  <table border="0">
36    <tr>
37      <td>Local Preview</td>
38    </tr>
39    <tr>
40      <td><video width="320" height="240" id="view1"
41          autoplay="autoplay"></video></td>
42    </tr>
43  </table>
44</body>
45</html>
Note: See TracBrowser for help on using the repository browser.