-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
54 lines (40 loc) · 1.82 KB
/
index.html
File metadata and controls
54 lines (40 loc) · 1.82 KB
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
51
52
53
54
<!DOCTYPE html>
<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="icon" sizes="192x192" href="../../../images/webrtc-icon-192x192.png">
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="../../../css/main.css">
</head>
<body>
<div id="container">
<h1><span>getDisplayMedia</span></h1>
<video id="video" autoplay playsinline muted></video>
<button id="startButton" disabled>Start</button>
<button id="stopButton" disabled>Stop</button>
<fieldset id="options" style="display:none">
<legend>Advanced options</legend>
<select id="displaySurface">
<option value="default" selected>Show default sharing options</option>
<option value="browser">Prefer to share a browser tab</option>
<option value="window">Prefer to share a window</option>
<option value="monitor">Prefer to share an entire screen</option>
</select>
</fieldset>
<div id="errorMsg"></div>
<p>Display the screensharing stream from <code>getDisplayMedia()</code> in a video element.</p>
</div>
<script src="https://webrtc.github.io/adapter/adapter-latest.js"></script>
<script src="js/main.js"></script>
<script src="../../../js/lib/ga.js"></script>
</body>
</html>