This repository was archived by the owner on Jul 17, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathindex.html
More file actions
129 lines (114 loc) · 3.39 KB
/
index.html
File metadata and controls
129 lines (114 loc) · 3.39 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
<!-- https://electronjs.org/docs/tutorial/security#csp-meta-tag -->
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline';" />
<style>
#preview {
margin-top: 2rem;
}
.performanceStatistics {
margin-top: 2rem;
margin-bottom: 3rem;
border-collapse: collapse;
}
.performanceStatistics tr,td {
border-bottom: 1px solid rgb(165, 165, 165);
border-top: 1px solid rgb(165, 165, 165);
padding: .5rem;
}
</style>
</head>
<body>
选择显示器:
<select id="displaySelect" onchange="displaySelectChange()">
</select>
<br/>
选择色相头:
<select id="cameraSelect" onchange="cameraSelectChange()">
<option value="">无</option>
</select>
<br/>
--------------------------------------------------------------
<br/>
rtmp_server:
<input id="rtmp_server" value="rtmp://js.live-send.acg.tv/live-js/" />
rtmp_key:
<input id="rtmp_key">
<button id="savertmp" onclick="">
保存配置
</button>
<br/>
-------------------------------------------------------------
<br/>
setting分类:
<select id="OBSSettingsCategories">
<option value="General">General</option>
<option value="Stream">Stream</option>
<option value="Output">Output</option>
<option value="Audio">Audio</option>
<option value="Video">Video</option>
<option value="Hotkeys">Hotkeys</option>
<option value="Advanced">Advanced</option>
</select>
<button id="showSetting-button" onclick="getSetting()">
控制台显示
</button>
<br/>
-------------------------------------------------------------
<br/>
<label>场景(scene):
<select id="sceneSelect" multiple size="5">
</select>
</label>
<label>源(source):
<select onchange="showSourceInfo()" id="sourceSelect" multiple size="5">
</select>
</label>
<pre id="response"></pre>
<br/>
-------------------------------------------------------------
<br/>
<button id="rec-button" onclick="switchRecording()">
⏳ 初始化中,请稍后...
</button>
<span id="rec-timer">0:00:00.0</span>
<button title="录制文件目录" onclick="openFolder()">📂</button>
<div id="preview">
初始化中...
</div>
<table class="performanceStatistics">
<tr>
<td>CPU</td>
<td>
<meter id="cpuMeter" value="0" min="0" optimum="50" low="65" high="80" max="100"></meter>
<span id="cpu">加载中...</span>
</td>
</tr>
<tr>
<td>丢帧</td>
<td id="numberDroppedFrames">加载中...</td>
</tr>
<tr>
<td>丢帧</td>
<td id="percentageDroppedFrames">加载中...</td>
</tr>
<tr>
<td>带宽</td>
<td id="bandwidth">加载中...</td>
</tr>
<tr>
<td>帧率</td>
<td id="frameRate">加载中...</td>
</tr>
</table>
<pre>
node版本 <script>document.write(process.versions.node)</script>,
Chrome版本 <script>document.write(process.versions.chrome)</script>,
Electron版本 <script>document.write(process.versions.electron)</script>.
</pre>
<script src="./renderer.js"></script>
</body>
</html>