-
Notifications
You must be signed in to change notification settings - Fork 4
/
gdm_audio_only.html
50 lines (35 loc) · 1.58 KB
/
gdm_audio_only.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<!DOCTYPE html>
<!--
* Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree.
-->
<html>
<head>
<meta charset="utf-8">
<meta name="description" content="WebRTC code samples">
<meta name="viewport" content="width=device-width, user-scalable=yes, initial-scale=1, maximum-scale=1">
<meta itemprop="description" content="Client-side WebRTC code samples">
<meta itemprop="image" content="../../../images/webrtc-icon-192x192.png">
<meta itemprop="name" content="WebRTC code samples">
<meta name="mobile-web-app-capable" content="yes">
<meta id="theme-color" name="theme-color" content="#ffffff">
<base target="_blank">
<title>getDisplayMedia</title>
<link rel="stylesheet" href="gdm_main.css">
</head>
<body>
<div id="container">
<video id="gum-local" autoplay playsinline></video>
<p> To enable this feature in Chrome, toggle the Experimental Web Platform feature (See chrome://flags/#enable-experimental-web-platform-features).</p>
<button id="btn1" onclick="gdm()">Call getDisplayMedia()</button>
<div id="errorMsg"></div>
<p>Display the video stream from <code>getDisplayMedia()</code> in a video element.</p>
<p>The <code>MediaStream</code> object <code>stream</code> passed to the <code>getDisplayMedia()</code> callback is in global scope, so you can inspect it from the console.</p>
</div>
<script src="gdm_common.js"></script>
<script src="gdm_audio_only.js"></script>
</body>
</html>