-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
69 lines (64 loc) · 3.45 KB
/
index.html
File metadata and controls
69 lines (64 loc) · 3.45 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Video Demo Builder</title>
<link rel="stylesheet" href="./style.css">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
</head>
<body>
<div class="app-container">
<header>
<h1>Video Demo Builder</h1>
<p>Record your screen and camera simultaneously</p>
</header>
<main>
<div class="preview-container">
<!-- This video element will show the live preview of the composited stream -->
<video id="preview-video" autoplay muted playsinline></video>
<div id="status-indicator" class="status-indicator hidden">
<span class="status-dot"></span> Recording
</div>
<div id="setup-prompt" class="setup-prompt">
<p>Click "Start Recording" to select your screen and camera.</p>
</div>
</div>
<div class="recording-options">
<div class="option-group">
<label class="option-label">Recording Mode</label>
<div class="toggle-group">
<button id="mode-screen-camera" class="toggle-btn active">Screen + Camera</button>
<button id="mode-camera-only" class="toggle-btn">Camera Only</button>
</div>
</div>
<div class="option-group" id="mirror-option">
<label class="option-label">Mirror Camera</label>
<label class="switch">
<input type="checkbox" id="mirror-toggle">
<span class="slider"></span>
</label>
</div>
</div>
<div class="controls">
<button id="start-btn" class="btn primary-btn">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="3"></circle></svg>
Start Recording
</button>
<button id="stop-btn" class="btn danger-btn" disabled>
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="6" y="6" width="12" height="12" rx="2" ry="2"></rect></svg>
Stop Recording
</button>
<a id="download-btn" class="btn success-btn hidden" download="recording.webm">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="7 10 12 15 17 10"></polyline><line x1="12" y1="15" x2="12" y2="3"></line></svg>
Download Video
</a>
</div>
<div id="error-message" class="error-message hidden"></div>
</main>
</div>
<!-- Hidden canvas used for processing the video frames -->
<canvas id="compositing-canvas" style="display: none;"></canvas>
<script type="module" src="./main.js"></script>
</body>
</html>