On this page
- 1. Why Teams Skip Transcripts—and Separating Writing From Markup
- 2. How WCAG’s Five Prerecorded Video Criteria Fit Together
- 3. Reusable Starter Pattern (HTML5 , Inline SVGs, CSS & JS)
- 4. Real-World Platform Wiring: Shopify Liquid ID-Map & WordPress Page Builders
- 5. What We Verified in This Version—and What to Retest When You Adapt It
- Have Epicpaths inventory and remediate your site’s video players, captions, and documents
While working on web accessibility for Gallaudet University (opens in a new tab)—the world’s premier university for deaf, hard-of-hearing, and DeafBlind students—one practical gap in routine video checks stood out immediately: a video could pass a basic caption check and still leave a DeafBlind student unable to follow the lesson.
Burned-in captions are part of the picture. A refreshable braille display needs text it can present through assistive technology. A descriptive transcript gives the reader dialogue, meaningful sounds, and essential visual details in one place, at their own pace.
The Gallaudet Lesson
5 WCAG Video Rules
Starter Code
Shopify Map
WordPress
Verification
Try the two modes in the live demo above first: compare Burned-in captions only (no transcript) against Captions plus a descriptive HTML transcript, then activate timestamp [0:14] inside the expandable transcript to jump straight to that step, read what the roller is doing on screen, and stay on that instruction as long as you need. We published this fourth Epicpaths Showcase edition openly as a Free playbook so project leads and developers can share a working demonstration alongside the reusable code.
1. Why Teams Skip Transcripts—and Separating Writing From Markup
Even when a video uses closed text captions rather than burned-in pixels, how well timed player overlays route to a braille display varies across media players, iframe embeds, and assistive-technology setups—and timed captions keep moving before a tactile reader can inspect technical terms or code. Providing a static HTML transcript removes that timing barrier altogether. (Alongside an inline expandable disclosure, the W3C also recognises a clearly linked transcript placed immediately adjacent to the media as a valid delivery pattern.)
Separating writing the transcript from building the <details> UI
Designers rightly resist pasting a 600-word block of open text beneath a compact video card—and project leads need honest scoping on content work. Adding a <details> disclosure takes ~15 minutes once an accurate descriptive transcript exists, whereas writing that transcript still requires watching the footage, noting visual steps the speaker didn’t state aloud (like how the roller flattens the three-way corner at 0:14), and checking technical terms.
<details>Compact by default, braille-readable, and searchable
Replacing raw .mp4 file links (which open a bare browser tab that cannot render caption tracks or surrounding page text) with an embedded player plus a native <details> transcript keeps the visual layout clean while giving visitors text they can read, navigate, and search—including via Chromium’s Ctrl+F auto-expansion.
2. How WCAG’s Five Prerecorded Video Criteria Fit Together
A common myth in audit triage is that “transcripts only start at Level AAA.” In fact, WCAG 2.2 already includes descriptive media alternatives at Level A under both 1.2.1 and 1.2.3—before narrowing to audio description at Level AA (1.2.5) and pairing both with a full media alternative at Level AAA (1.2.8):
Prerecorded Video Requirements Across Level A, Level AA & Level AAA
Video-Only (Silent Clips) & Audio-Only
For prerecorded video-only content (such as silent UI loops or time-lapses), permits either an equivalent time-based media alternative (text that conveys the full information shown in the clip) or an equivalent audio track.
Captions (Prerecorded Synchronized Media)
Requires synchronized captions covering speech, speaker identification where needed, and meaningful non-speech sounds (with an exception when the media is itself a clearly labelled alternative for text on the page). Edited WebVTT (<track kind="captions">) is our recommended HTML5 choice.
Audio Description or Media Alternative
At Level A, prerecorded synchronized video can satisfy 1.2.3 either via audio description or via a descriptive text media alternative—meaning descriptive transcripts already play a recognised role at Level A.
Audio Description (Prerecorded)
At Level AA, 1.2.5 specifically calls for audio description whenever important visual information is missing from the main audio track—so a text transcript alone meets 1.2.3 (A), not 1.2.5 (AA).
Media Alternative (Prerecorded Descriptive Transcript)
Calls for a descriptive text media alternative—covering dialogue, meaningful sounds, and essential visual details—for all prerecorded synchronized media, giving refreshable braille readers self-paced access alongside captions and audio description.
Three Structural Details That Keep <details> Transcripts Clean
- Never nest Play/Pause or
<details>inside a clickable hero link: Marketing banners sometimes wrap background videos inside<a href="/shop/">. Placing<button>or<summary>inside an<a>creates nested interactive controls (WCAG 4.1.2) where pressing Space triggers navigation instead of toggling the transcript. Keep controls as sibling elements positioned via CSS Grid. - Preserve page heading order inside the transcript: Use bold speaker labels (
<strong>Technician:</strong>) or ordered cue lists rather than dropping unsequenced<h4>or<h5>tags inside<details>that skip levels in the page outline. - Keep keyboard focus on timestamp buttons when seeking: Clicking or pressing Enter on
[0:14]should setvideo.currentTime = 14and announce the jump politely—without yanking focus away from the transcript step the visitor is reading.
3. Reusable Starter Pattern (HTML5 <video>, Inline SVGs, CSS & JS)
Use Copy code below to wrap any self-hosted instructional or product video in a real HTML5 player with a WebVTT caption track, zero-dependency inline SVG chevron, and timestamped <details> transcript.
Custom disclosure chevrons without icon-font dependencies
content: "\f078")
Hardcoding Font Awesome Unicode points on summary::after breaks into missing-glyph squares whenever an icon stylesheet is deferred or overridden by a reader’s custom dyslexia font.
<svg class="chevron-svg">
A single 160-byte inline polyline rotates smoothly via CSS details[open] .chevron-svg, honours prefers-reduced-motion, and never depends on external font files.
HTML5 Video + WebVTT Track + <details> Transcript
<figure class="media-figure">
<video id="seam-guide-video" class="media-video" controls preload="metadata"
poster="seam-tape-poster.jpg" width="1280" height="720">
<source src="seam-tape-guide.mp4" type="video/mp4" />
<track kind="captions" src="seam-tape-guide.en.vtt" srclang="en" label="English" default />
Your browser does not support HTML5 video. Read the full descriptive transcript below.
</video>
<div id="video-seek-status" class="sr-only" role="status" aria-live="polite"></div>
<details class="media-transcript">
<summary class="media-transcript__summary">
<svg class="chevron-svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4" aria-hidden="true" focusable="false"><polyline points="6 9 12 15 18 9"/></svg>
<span>Read descriptive transcript (0:42 — dialogue & visual steps)</span>
</summary>
<div class="media-transcript__body">
<ol class="media-transcript__list">
<li>
<button type="button" class="ts-jump" data-video="seam-guide-video" data-seek="0">0:00</button>
<span><strong>Technician:</strong> Clean both sides of the shoulder seam with isopropyl alcohol and let dry for 30 seconds. <em>[Visual: Cloth wipes interior ripstop junction.]</em></span>
</li>
<li>
<button type="button" class="ts-jump" data-video="seam-guide-video" data-seek="14">0:14</button>
<span><strong>Technician:</strong> Centre the 18mm heat-activated seam tape over the stitching and press firmly with a silicone roller. <em>[Visual: Roller flattens three-way corner.]</em></span>
</li>
</ol>
</div>
</details>
</figure>
CSS Disclosure, 44px Summary & Reduced-Motion Rules
.sr-only {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
}
.media-video {
display: block;
width: 100%;
height: auto;
border-radius: 0.75rem;
background: #0b1a29;
}
.media-transcript {
margin-top: 0.75rem;
border: 1.5px solid #94a3b8;
border-radius: 0.75rem;
background: #ffffff;
overflow: hidden;
}
.media-transcript__summary {
min-height: 46px;
padding: 0.75rem 1rem;
display: flex;
align-items: center;
gap: 0.6rem;
font-weight: 800;
color: #0b1a29;
background: #f8fafc;
cursor: pointer;
list-style: none;
}
.media-transcript__summary::-webkit-details-marker {
display: none;
}
.chevron-svg {
width: 1.15rem;
height: 1.15rem;
flex-shrink: 0;
transition: transform 0.18s ease;
}
.media-transcript[open] .chevron-svg {
transform: rotate(180deg);
}
@media (prefers-reduced-motion: reduce) {
.chevron-svg {
transition: none;
}
}
.media-transcript__list {
list-style: none;
margin: 0;
padding: 1rem;
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.media-transcript__list li {
display: flex;
align-items: flex-start;
gap: 0.75rem;
}
.ts-jump {
min-height: 36px;
min-width: 52px;
padding: 0.25rem 0.55rem;
border-radius: 0.4rem;
border: 1.5px solid #0f766e;
background: #f0fdfa;
color: #0b1a29;
font-family: monospace;
font-weight: 800;
cursor: pointer;
}
:where(.media-transcript__summary, .ts-jump):focus-visible {
outline: 3px solid #ffffff;
outline-offset: 2px;
box-shadow: 0 0 0 6px #0b1a29;
}
Optional Timestamp Jump Controller (Progressive Enhancement)
document.addEventListener('click', (e) => {
const btn = e.target.closest('.ts-jump[data-video][data-seek]');
if (!btn) return;
const video = document.getElementById(btn.dataset.video);
const status = document.getElementById('video-seek-status');
const sec = Number(btn.dataset.seek) || 0;
if (!video) return;
video.currentTime = sec;
video.play().catch(() => {});
// Keep focus on the clicked timestamp button so reading continues uninterrupted
if (status) {
status.textContent = `Video jumped to ${btn.textContent.trim()}.`;
}
});
4. Real-World Platform Wiring: Shopify Liquid ID-Map & WordPress Page Builders
Once an accurate descriptive transcript has been written, the main operational question on client sites is how editors attach it to YouTube, Vimeo, or self-hosted clips without editing theme templates or JavaScript. Switch tabs below for our patterns across Shopify and WordPress:
The “Marketing-Safe” Shopify Transcript Map: Create one snippet (snippets/video-transcripts-map.liquid) included in theme.liquid. Editors paste verified transcripts keyed by YouTube ID or .mp4 filename stem, and a small mount script injects a native <details> block directly beneath any matching video across product pages, landing pages, and blog posts:
Shopify Liquid Snippet (snippets/video-transcripts-map.liquid)
<script>
window.STORE_VIDEO_TRANSCRIPTS = {
// Key by YouTube embed ID or Shopify .mp4 filename stem
"dQw4w9WgXcQ": "<p><strong>Host:</strong> Welcome to our 3-layer storm shell overview...</p>",
"seam-tape-guide": "<p><strong>Technician:</strong> Clean both sides of the shoulder seam...</p>"
};
document.addEventListener('DOMContentLoaded', () => {
const map = window.STORE_VIDEO_TRANSCRIPTS || {};
document.querySelectorAll('video, iframe[src*="youtube.com"], iframe[src*="youtu.be"]').forEach((media) => {
if (media.dataset.transcriptMounted) return;
const src = media.currentSrc || media.src || media.querySelector('source')?.src || '';
const matchKey = Object.keys(map).find((k) => src.includes(k));
if (!matchKey) return;
media.dataset.transcriptMounted = 'true';
const details = document.createElement('details');
details.className = 'media-transcript';
details.innerHTML = `
<summary class="media-transcript__summary">Read descriptive video transcript</summary>
<div class="media-transcript__body">${map[matchKey]}</div>
`;
media.insertAdjacentElement('afterend', details);
});
});
</script>
WordPress & Visual Builders (Breakdance, Bricks, Elementor, Block Editor): First, audit your pages for direct <a href=".../uploads/webinar.mp4"> links—replace raw file links with a Video element so caption tracks can render. Then register a lightweight [video_transcript] shortcode in a site-specific plugin so editors can drop clean <details> transcripts beneath any builder video widget without touching HTML:
WordPress Shortcode Helper (epicpaths-media-transcript.php)
<?php
add_shortcode('video_transcript', function ($atts, $content = null) {
if ($content === null || trim($content) === '') {
return '';
}
$atts = shortcode_atts(array(
'label' => 'Read descriptive video transcript',
), $atts, 'video_transcript');
return sprintf(
'<details class="media-transcript"><summary class="media-transcript__summary">%s</summary><div class="media-transcript__body">%s</div></details>',
esc_html($atts['label']),
wp_kses_post(wpautop($content))
);
});
WooCommerce Product Videos: Store a custom meta field (_product_video_transcript) on products that carry demo clips and append the <details> block automatically beneath the product summary or video tab—ensuring silent 360° spin clips (WCAG 1.2.1) and spoken sizing guides (1.2.2 + 1.2.8) both carry text alternatives:
WooCommerce Product Meta Hook (functions.php)
<?php
add_action('woocommerce_after_single_product_summary', function () {
global $product;
if (!$product) return;
$transcript = get_post_meta($product->get_id(), '_product_video_transcript', true);
if (empty($transcript)) return;
echo '<details class="media-transcript">';
echo '<summary class="media-transcript__summary">Read product video transcript & visual notes</summary>';
echo '<div class="media-transcript__body">' . wp_kses_post(wpautop($transcript)) . '</div>';
echo '</details>';
}, 8);
5. What We Verified in This Version—and What to Retest When You Adapt It
v1.2.54 • Free Edition)1280px, 200% zoom, Ctrl+F collapsed-details search) & mobile (390px / 320px reflow), single-pointer player controls, non-hijacking timestamp seek, inline SVG resilience, and programmatic ARIA/contrast checksVerified on this Showcase version
- Native disclosure & transcript text access (WCAG 1.2.3, 1.2.8, 2.1.1 & 4.1.2): Native
<details>/<summary>sits immediately after the player in DOM order, operates via Enter and Space without JavaScript, and exposes both dialogue and[On screen]descriptions as standard HTML text. - Non-nested controls & 44px targets (WCAG 2.5.5, 2.5.8 & 4.1.2): Play/Pause, timeline scrubber, CC toggle, and
<summary>sit outside any parent link and meet44pxheight with high-contrast focus rings. - Timestamp seek focus preservation (WCAG 2.4.3 & 4.1.3): Activating
0:00,0:14, or0:28updates playback time and emits a politerole="status"confirmation while keeping keyboard focus on the timestamp button.
Retest when you adapt this pattern
- Caption & descriptive transcript authoring: Edit automated captions by hand for technical terms, speaker changes, and meaningful sounds—then watch the video through to add essential visual details that the narrator does not state aloud.
- Audio description check (WCAG 1.2.5 AA): Watch each video with your eyes closed. Where important visual information is missing from the audio track, plan an audio-described version to meet 1.2.5 Level AA alongside your transcript.
- Assistive-technology pass on your live player: Test your deployed player and transcript with a screen reader (NVDA or VoiceOver) and, where available, a refreshable braille display or braille viewer to confirm no third-party iframe traps Tab focus before reaching
<summary>.
When WCAG Level AAA Helps Customers Complete a Task: 6 Practical Scenarios Beyond Minimum AA
Explore five other everyday scenarios—including 44×44 CSS px targets, unobscured focus, reduced motion, 7:1 contrast, and quote review steps—where selective Level AAA practices support task completion and future readiness.