-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
191 lines (186 loc) · 5.69 KB
/
Copy pathindex.html
File metadata and controls
191 lines (186 loc) · 5.69 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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0" />
<title>Webcam Resolution Tester</title>
<meta
name="title"
content="Webcam Resolution Tester" />
<meta
name="description"
content="Test and compare supported webcam resolutions directly in your browser. Free, fast, and accurate webcam resolution tester." />
<meta
name="keywords"
content="webcam resolution tester, webcam resolution check, test webcam resolution, webcam capabilities, browser webcam test, media constraints, getUserMedia, camera resolution test" />
<meta
name="robots"
content="index, follow" />
<meta
name="author"
content="Addpipe" />
<meta
property="og:type"
content="website" />
<meta
property="og:url"
content="https://addpipe.com/webcam-resolution-tester/" />
<meta
property="og:title"
content="Webcam Resolution Tester" />
<meta
property="og:description"
content="Test and compare supported webcam resolutions directly in your browser. Free, fast, and accurate webcam resolution tester." />
<meta
name="twitter:card"
content="Webcam Resolution Tester" />
<meta
name="twitter:url"
content="https://addpipe.com/webcam-resolution-tester/" />
<meta
name="twitter:title"
content="Webcam Resolution Tester" />
<meta
name="twitter:description"
content="Test and compare supported webcam resolutions directly in your browser. Free, fast, and accurate webcam resolution tester." />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0" />
<meta charset="UTF-8" />
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body>
<h1>Webcam Resolution Tester</h1>
<p>
<small>Made by the
<a
href="https://addpipe.com/"
target="_blank"
rel="noopener noreferrer"
>Pipe Video Recording Platform
</a>
</small>
</p>
<p>Test and compare supported webcam resolutions in your browser. Free, fast, and accurate webcam resolution tester.</p>
<button id="shareCamera">Request Camera Permissions</button>
<div id="videoFeedSection">
<div id="videoWithButtons" class="video-with-buttons">
<div class="video-section-wrapper">
<video
id="video"
autoplay
playsinline></video>
<p
style="padding: 0; margin: 0; display: none"
id="defaultCameraSettings"></p>
<p
style="padding: 0; margin: 0"
id="currentCameraSettings"></p>
</div>
<div
id="actionButtons"
class="actionButtons">
<select
style="width: 100%"
id="videoSource"></select>
<button id="scanBtn">Scan Resolutions (Ideal)</button>
<button id="scanExactBtn">Scan Resolutions (Exact)</button>
<button id="toggleCustomTable">Custom Scan</button>
<button
id="closeWebcam"
style="display: none">
Close Webcam
</button>
</div>
</div>
<div
id="customTableSection"
class="hide">
<h2 style="margin: 0">Configure your custom resolution test</h2>
<table
id="resTable"
style="margin: 0">
<thead>
<tr>
<th>Name</th>
<th>Width</th>
<th>Height</th>
<th>Exact</th>
<th>Actions</th>
</tr>
</thead>
<tbody></tbody>
</table>
<div
class="actionButtons"
style="margin-top: 15px">
<button id="addRow">Add Row</button>
<button id="resetTable">Reset</button>
<button id="submitTable">Start Scan</button>
</div>
</div>
</div>
<br />
<div id="resultsSection">
<p id="progress"></p>
<table id="results">
<thead>
<tr>
<th>Browser</th>
<th>Camera Name</th>
<th>Resolution Name</th>
<th>Asked</th>
<th>Actual</th>
<th>Status</th>
</tr>
</thead>
<tbody></tbody>
</table>
<div
class="export-btns"
style="align-items: center">
<select
name="exportTypes"
id="exportTypes">
<option value="csv">CSV</option>
<option
value="md"
selected>
Markdown
</option>
<option value="xml">XML</option>
<option value="json">JSON</option>
</select>
<button id="exportResult">Export</button>
<button id="copyResult">Copy</button>
</div>
</div>
<div id="capabilitiesSection">
<div
class="actionButtons"
style="display: flex; align-items: center">
<h3>Camera Capabilities</h3>
<button
style="flex-grow: 0; min-width: 0; min-height: 0; height: min-content"
id="copyCapabilities">
Copy
</button>
</div>
<details>
<summary>Obtained using the <code>MediaStreamTrack: getCapabilities()</code> method</summary>
<pre id="capabilities"></pre>
</details>
<h3>Logs</h3>
<details>
<summary>View</summary>
<div id="logsWrapper"></div>
</details>
</div>
<p><a href="https://github.com/addpipe/webcam-resolution-tester" target="_blank" rel="noopener noreferrer">GitHub repository</a></p>
</body>
<footer>
<script type="text/javascript" src="script.js"></script>
</footer>
</html>