-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
190 lines (165 loc) · 10.2 KB
/
index.html
File metadata and controls
190 lines (165 loc) · 10.2 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
<meta name="color-scheme" content="dark light">
<meta name="description" content="Test browser codec support using canPlayType, MediaSource, and mediaCapabilities APIs. Check Dolby Vision, HEVC, AV1, DTS compatibility for Jellyfin, Plex, Emby.">
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self'; manifest-src 'self'; worker-src 'self'; connect-src 'self'; base-uri 'self'; form-action 'self'">
<title>CodecProbe - Multi-API Codec Testing for Media Server Enthusiasts</title>
<!-- Favicons -->
<link rel="icon" type="image/svg+xml" href="icons/favicon.svg">
<link rel="alternate icon" type="image/x-icon" sizes="48x48" href="icons/favicon.ico">
<link rel="apple-touch-icon" sizes="192x192" href="icons/icon-192.png">
<!-- PWA -->
<link rel="manifest" href="manifest.json">
<meta name="theme-color" content="#0a0a0a">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-title" content="CodecProbe">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<!-- Open Graph -->
<meta property="og:type" content="website">
<meta property="og:title" content="CodecProbe - Multi-API Codec Testing">
<meta property="og:description" content="Test browser codec support using three different APIs. Check Dolby Vision, HEVC, AV1, and DTS compatibility for your media server.">
<meta property="og:url" content="https://codecprobe.dev">
<meta property="og:site_name" content="CodecProbe">
<meta property="og:image" content="https://codecprobe.dev/screenshots/og-image.png">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<!-- Twitter/X falls back to OG tags for title/description/image -->
<meta name="twitter:card" content="summary_large_image">
<!-- Canonical URL -->
<link rel="canonical" href="https://codecprobe.dev">
<!-- Schema.org markup -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "SoftwareApplication",
"name": "CodecProbe",
"url": "https://codecprobe.dev",
"applicationCategory": "MultimediaApplication",
"operatingSystem": "Windows, macOS, Linux, Android, iOS",
"offers": {
"@type": "Offer",
"price": "0",
"priceCurrency": "USD"
},
"softwareVersion": "4.6.2",
"description": "Browser codec testing tool using canPlayType, MediaSource, and mediaCapabilities APIs",
"screenshot": "https://codecprobe.dev/screenshots/og-image.png",
"license": "https://www.gnu.org/licenses/agpl-3.0.html"
}
</script>
<link rel="stylesheet" href="css/styles.css">
<!-- Modulepreload: flatten the import chain so all modules download in parallel -->
<link rel="modulepreload" href="js/main.js">
<link rel="modulepreload" href="js/ui-renderer.js">
<link rel="modulepreload" href="js/codec-database-v2.js">
<link rel="modulepreload" href="js/codec-tester.js">
<link rel="modulepreload" href="js/device-detection.js">
<link rel="modulepreload" href="js/drm-detection.js">
<link rel="modulepreload" href="js/theme-manager.js">
<link rel="modulepreload" href="js/url-state.js">
<script defer src="js/vendor/ua-parser.min.js"></script>
</head>
<body>
<a href="#main-content" class="skip-link">Skip to results</a>
<!-- iOS install hint (shown via JS for Safari users) -->
<div id="ios-install-hint" class="ios-install-hint" hidden>
<span>To install: tap <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M4 12v8a2 2 0 002 2h12a2 2 0 002-2v-8"/><polyline points="16 6 12 2 8 6"/><line x1="12" y1="2" x2="12" y2="15"/></svg> then <strong>Add to Home Screen</strong></span>
<button class="dismiss-btn" id="dismiss-ios-hint" aria-label="Dismiss">×</button>
</div>
<!-- Canvas Container -->
<div class="canvas-container">
<!-- Section 1: Device Information Header -->
<header class="device-header" id="device-header">
<div class="device-header-top">
<h1>CodecProbe</h1>
<div class="header-actions">
<button id="install-btn" class="install-btn" hidden aria-label="Install CodecProbe app">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>
Install
</button>
<div class="theme-switcher" id="theme-switcher" role="toolbar" aria-label="Theme selector"></div>
</div>
<div class="subtitle">Multi-API codec testing for media server enthusiasts</div>
</div>
<div class="device-info-groups" id="device-info-groups">
<div class="info-group-label">Device</div>
<div class="info-group-rows" id="device-group-rows">
<div class="info-row"><span class="info-row-label">Browser</span><span class="info-row-value">Detecting...</span></div>
</div>
<div class="info-group-label">Display & Decoding</div>
<div class="info-group-rows" id="display-group-rows"></div>
</div>
</header>
<!-- Section 2: Controls & Filters -->
<div class="controls-section" role="region" aria-label="Codec controls">
<search class="search-container">
<input type="search" id="search-input" class="search-input"
placeholder="Search codecs... (Press / to focus)"
aria-label="Search codecs">
</search>
<div class="filter-group" role="group" aria-label="Codec filters">
<button class="filter-btn active" data-filter="all" aria-pressed="true">All</button>
<button class="filter-btn" data-filter="supported" aria-pressed="false">Supported</button>
<button class="filter-btn" data-filter="unsupported" aria-pressed="false">Unsupported</button>
<button class="filter-btn" data-filter="video" aria-pressed="false">Video</button>
</div>
<div class="action-group" role="group" aria-label="Actions">
<button class="action-btn" id="expand-toggle-btn" aria-label="Expand all codec cards" data-expanded="false">
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><polyline points="6 9 12 15 18 9"/></svg>
<span class="btn-text">Expand All</span>
</button>
<button class="action-btn export-btn" id="export-btn" aria-label="Export results as JSON">
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>
Export JSON
</button>
</div>
</div>
<!-- Section 3: Results Grid (Main Content) -->
<main id="main-content">
<!-- Accessibility: Status announcements -->
<div id="sr-announcements" class="sr-only" role="status" aria-live="polite" aria-atomic="true"></div>
<div id="loading" class="loading">
<div class="spinner"></div>
<p>Detecting device capabilities...</p>
</div>
<div id="codec-grid" class="grid" hidden></div>
</main>
<!-- Section 4: Footer -->
<footer class="site-footer">
<div class="footer-content">
<div class="footer-section">
<h2>About</h2>
<p>Three browser APIs, three different answers for the same codec. CodecProbe tests 91 codecs across HEVC, Dolby Vision, AV1, VP9, and AVC/H.264 against all three and shows where they disagree.</p>
<p>Every codec string validated against <a href="https://github.com/nofear0411/codec-resolve" target="_blank" rel="noopener">codec-resolve</a>. Zero dependencies. Runs entirely in your browser.</p>
</div>
<div class="footer-section">
<h2>APIs</h2>
<ul class="footer-links">
<li><code>canPlayType()</code> — basic format detection</li>
<li><code>isTypeSupported()</code> — MSE/streaming support</li>
<li><code>decodingInfo()</code> — hardware capability + performance</li>
<li><code>requestMediaKeySystemAccess()</code> — DRM/EME</li>
</ul>
</div>
<div class="footer-section">
<h2>Links</h2>
<ul class="footer-links">
<li><a href="https://github.com/nofear0411/codecprobe" target="_blank" rel="noopener">Source on GitHub</a></li>
<li><a href="https://github.com/nofear0411/codec-resolve" target="_blank" rel="noopener">codec-resolve</a></li>
<li><a href="https://github.com/nofear0411/codecprobe/issues" target="_blank" rel="noopener">Report a Bug</a></li>
<li><a href="https://github.com/nofear0411/codecprobe/blob/main/CONTRIBUTING.md" target="_blank" rel="noopener">Contribute</a></li>
</ul>
</div>
</div>
<div class="footer-bottom">
<p>CodecProbe <span id="app-version">v4.7.1</span> — AGPL-3.0 License</p>
</div>
</footer>
</div> <!-- End canvas-container -->
<script type="module" src="js/main.js"></script>
</body>
</html>