-
Notifications
You must be signed in to change notification settings - Fork 19
/
index.html
93 lines (86 loc) · 2.75 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
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
<!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;
}
.d-block {
display: block;
}
.border {
border: 1px solid grey;
border-radius: 1rem;
padding: 0.5rem;
margin-bottom: 1rem;
}
</style>
</head>
<body>
<h1>Hello from OBS Studio Node!</h1>
<div class="d-block border">
<b>Recording:</b><br>
<button id="rec-button" onclick="switchRecording()">
⏳ Initializing, please wait...
</button>
<span id="rec-timer">0:00:00.0</span>
<button title="Open folder with videos" onclick="openFolder()">📂</button>
</div>
<div class="d-block border">
<b>Virtual Camera:</b><br>
<button id="install-virtual-cam-plugin-button" onclick="installVirtualCamPlugin()">Install Plugin</button>
<button id="uninstall-virtual-cam-plugin-button" onclick="uninstallVirtualCamPlugin()">Uninstall Plugin</button>
<button id="start-virtual-cam-button" onclick="startVirtualCam()">Start Virtual Camera</button>
<button id="stop-virtual-cam-button" onclick="stopVirtualCam()">Stop Virtual Camera</button>
<span id="virtual-cam-plugin-status">...</span>
</div>
<div id="preview">
Initializing...
</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">Loading...</span>
</td>
</tr>
<tr>
<td>Dropped frames</td>
<td id="numberDroppedFrames">Loading...</td>
</tr>
<tr>
<td>Dropped frames</td>
<td id="percentageDroppedFrames">Loading...</td>
</tr>
<tr>
<td>Bandwidth</td>
<td id="bandwidth">Loading...</td>
</tr>
<tr>
<td>Framerate</td>
<td id="frameRate">Loading...</td>
</tr>
</table>
<pre>
We are using node <script>document.write(process.versions.node)</script>,
Chrome <script>document.write(process.versions.chrome)</script>,
and Electron <script>document.write(process.versions.electron)</script>.
</pre>
<script src="./renderer.js"></script>
</body>
</html>