webapprt/test/chrome/getUserMedia.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/webapprt/test/chrome/getUserMedia.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,21 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<html>
     1.6 +  <head>
     1.7 +    <title>getUserMedia Test App</title>
     1.8 +    <meta charset="utf-8">
     1.9 +  </head>
    1.10 +  <body>
    1.11 +    <span id="msg"></span>
    1.12 +    <script>
    1.13 +      navigator.mozGetUserMedia({ video: true, audio: true, fake: true },
    1.14 +        function(localMediaStream) {
    1.15 +          document.getElementById("msg").textContent = window.URL.createObjectURL(localMediaStream);
    1.16 +        },
    1.17 +
    1.18 +        function(err) {
    1.19 +          document.getElementById("msg").textContent = err;
    1.20 +        });
    1.21 +    </script>
    1.22 +    <h1>getUserMedia Test App</h1>
    1.23 +  </body>
    1.24 +</html>

mercurial