-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·132 lines (119 loc) · 5.52 KB
/
Copy pathindex.html
File metadata and controls
executable file
·132 lines (119 loc) · 5.52 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>网页录制器</title>
<link rel="stylesheet" href="./styles.css">
</head>
<body>
<div class="container">
<header>
<h1>网页录制器</h1>
<p>录制网页内容,支持视频和音频</p>
</header>
<main>
<!-- 录制控制区域 -->
<div class="controls">
<div class="control-group">
<label for="recordSource">录制源:</label>
<select id="recordSource">
<option value="screen">屏幕录制</option>
<option value="camera">摄像头</option>
<option value="tab">当前标签页</option>
</select>
</div>
<div class="control-group">
<label for="audioSource">音频源:</label>
<select id="audioSource">
<option value="none">无音频</option>
<option value="mic">麦克风</option>
<option value="system">系统音频</option>
<option value="both">麦克风+系统</option>
</select>
</div>
<div class="control-group">
<label for="videoQuality">视频质量:</label>
<select id="videoQuality">
<option value="360">360p</option>
<option value="720" selected>720p</option>
<option value="1080">1080p</option>
<option value="1440">1440p</option>
</select>
</div>
<div class="control-group">
<button id="startBtn" class="btn btn-primary">开始录制</button>
<button id="stopBtn" class="btn btn-danger" disabled>停止录制</button>
<button id="pauseBtn" class="btn btn-warning" disabled>暂停录制</button>
</div>
</div>
<!-- 预览区域 -->
<div class="preview-section">
<div class="preview-container">
<h3>预览</h3>
<div class="preview-box">
<video id="previewVideo" autoplay muted></video>
<canvas id="previewCanvas" style="display: none;"></canvas>
<div id="noPreview" class="no-preview">
<p>点击"开始录制"开始预览</p>
</div>
</div>
<div class="preview-controls">
<button id="switchSourceBtn" class="btn btn-secondary" disabled>切换源</button>
<button id="fullscreenBtn" class="btn btn-secondary" disabled>全屏预览</button>
</div>
</div>
<!-- 录制状态 -->
<div class="recording-status">
<div id="recordingIndicator" class="recording-indicator" style="display: none;">
<div class="pulse"></div>
<span>录制中</span>
<span id="timer">00:00:00</span>
</div>
</div>
</div>
<!-- 录制列表 -->
<div class="recordings-section">
<h3>录制文件</h3>
<div id="recordingsList" class="recordings-list">
<!-- 录制文件将在这里显示 -->
</div>
</div>
<!-- 设置面板 -->
<div class="settings-section">
<details id="settingsPanel">
<summary>高级设置</summary>
<div class="settings-content">
<div class="setting-group">
<label for="frameRate">帧率:</label>
<input type="range" id="frameRate" min="1" max="60" value="30">
<span id="frameRateValue">30 fps</span>
</div>
<div class="setting-group">
<label for="bitrate">比特率 (Mbps):</label>
<input type="range" id="bitrate" min="1" max="20" value="5">
<span id="bitrateValue">5 Mbps</span>
</div>
<div class="setting-group">
<label>
<input type="checkbox" id="enableAudio">
启用音频录制
</label>
</div>
<div class="setting-group">
<label>
<input type="checkbox" id="enableVideo">
启用视频录制
</label>
</div>
</div>
</details>
</div>
</main>
<footer>
<p>© 2025 网页录制器 - 支持现代浏览器</p>
</footer>
</div>
<script src="./script.js"></script>
</body>
</html>