-
Notifications
You must be signed in to change notification settings - Fork 0
/
capture.html
32 lines (31 loc) · 1.22 KB
/
capture.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
<!DOCTYPE html><!--- this is a test -->
<html lang="en">
<head>
<title>Screen Recording</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/umd/comlink.js"></script>
<script src="main.js" async></script>
<!-- import the webpage's stylesheet -->
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>Screen Recording</h1>
<p>DON'T CLOSE THIS TAB.</p>
<p id="warning">
Enable chrome://flags/#enable-experimental-web-platform-features
</p>
<video id="videoElement" autoplay muted></video>
<br />
<button id="captureBtn">Capture</button>
<button id="startBtn" disabled>Start Recording</button>
<button id="stopBtn" disabled>Stop Capture</button>
<br>
<input type="checkbox" id="audioToggle" />
<label for="audioToggle">Capture Audio from Desktop</label>
<input type="checkbox" id="micAudioToggle" />
<label for="micAudioToggle">Capture Audio from Microphone</label>
<a id="download" href="#" style="display: none;">Download</a>
</body>
</html>