-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathindex.html
43 lines (42 loc) · 1.94 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<base target="_blank">
<title>Screen Recording With System Sounds Demo - addpipe.com</title>
<link rel="stylesheet" href="css/style.css" />
</head>
<body>
<div>
<h1>Recording Your Screen With System Sounds Demo</h1>
<p><small>Made by the <a href="https://addpipe.com">Pipe Recording Platform</a></small></p>
<p>This demo uses <strong>getDisplayMedia()</strong> and the <strong>MediaStream Recording API</strong> to record the screen, your microphone <em>AND</em> system sounds on Chrome.</p>
<video controls autoplay></video><br>
<div id="controls">
<button id="shareScreen" onclick="onShareScreen()">Share Screen</button>
<button id="rec" onclick="onBtnRecordClicked()" disabled>Record</button>
<button id="stop" onclick="onBtnStopClicked()" disabled>Stop</button>
<button id="stateButton" onclick="onStateClicked()">trace state</button>
</div>
</div>
<a id="downloadLink" download="mediarecorder.webm" name="mediarecorder.webm" href></a>
<p id="data"></p>
<script src="https://webrtchacks.github.io/adapter/adapter-latest.js"></script>
<script src="js/main.js"></script>
<h2>Works on:</h2>
<ul>
<li>Chrome 74 and up</li>
</ul>
<span style="color:red">Limitations:</span>
<ul>
<li>The user needs to opt in to sharing system sounds in the Chrome screen sharing dialog</li>
<li>On Chrome on macOS & Linux it is only possible to share your audio when choosing to capture a Chrome tab</li>
<li>Firefox does not yet support capturing system sounds</li>
</ul>
<h2>Links:</h2>
<ul>
<li>Code for this demo on GitHub: <a target="_blank" href="https://github.com/addpipe/getDisplayMedia-demo">https://github.com/addpipe/getDisplayMedia-demo</a></li>
</ul>
</body>
</html>