video-captions
Fungsinya
Skill ini memeriksa bahwa video yang direkam sebelumnya dan video langsung memiliki keterangan, dan bahwa file keterangan tertaut dengan benar. Skill ini ditujukan untuk tim web yang menerbitkan video.
Kapan dipakai
- โSaat elemen video memiliki audio tetapi tidak ada track keterangan.
- โSaat video YouTube atau Vimeo yang disematkan memiliki keterangan yang dimatikan.
- โSaat sebuah situs perlu memenuhi persyaratan keterangan di WCAG sebelum diluncurkan.
Link skill
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/video-captions/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
โSaya menambahkan video pelatihan ke situs saya. Bagaimana cara menambahkan keterangan agar pemirsa tuli dapat mengikutinya?โ
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent memeriksa track keterangan pada setiap video dan memastikan filenya valid. Lalu agent menambahkan track tersebut, dan membuat keterangan aktif secara default jika diperlukan.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Provide captions for video content
Approximately 15% of adults have some degree of hearing loss. Captions are essential for deaf and hard-of-hearing users who cannot access audio content. They also benefit users in sound-sensitive environments (libraries, open offices), users watching without headphones in public, non-native speakers, and users with auditory processing disorders. WCAG SC 1.2.2 is a Level AA requirement โ its absence is a legal compliance failure under the ADA, EN 301 549, and similar regulations worldwide.
Quick Reference
- Prerecorded video with audio: synchronized captions required โ WCAG 2.1 SC 1.2.2 (Level AA)
- Live video with audio: real-time captions required โ WCAG 2.1 SC 1.2.4 (Level AA)
- Use
<track kind='captions'>with a.vtt(WebVTT) file for HTML5<video>elements - Captions must include all spoken dialogue, speaker identification, and relevant non-speech audio (music, sound effects)
- Subtitles and captions are different: captions include non-speech audio; subtitles translate dialogue only
Check
Find all <video> elements and video embeds (<iframe> from YouTube, Vimeo, etc.). For each <video> with audio: check for a <track> child element with kind='captions' and a valid src pointing to a .vtt file. Verify the default attribute is present on at least one track so captions are on by default (or document the UX reason they are off by default). For YouTube/Vimeo embeds: check that the platform's caption toggle is accessible. Also check that the .vtt file exists and is valid (not empty, not just music notes).
Fix
For <video> elements without captions: (1) Create a WebVTT (.vtt) file containing synchronized caption text โ include all spoken words, speaker IDs for multi-speaker content, and descriptions of relevant sounds (e.g., '[applause]', '[upbeat music]'). (2) Add <track kind='captions' srclang='en' label='English' src='captions-en.vtt' default> inside the <video> element. (3) For auto-generated captions (YouTube, AI tools): review and correct errors โ auto-captions average 80% accuracy and often fail on proper nouns, technical terms, and accented speech. (4) For live streams: implement real-time captioning via a third-party captioning service or CART (Communication Access Realtime Translation).
Explain
WCAG 2.1 SC 1.2.2 (Captions โ Prerecorded, Level AA) requires synchronized text alternatives for all audio in prerecorded video content. Captions differ from subtitles: captions are intended for deaf/hard-of-hearing viewers and must include non-speech information (sound effects, music), while subtitles translate dialogue for viewers who can hear but do not understand the language. The HTML <track> element with kind='captions' delivers WebVTT files that browsers render as synchronized on-screen text. The kind='subtitles' value is for translation only and does not satisfy SC 1.2.2 because browsers may omit non-speech annotations.
Code Review
Review the rendered markup and interactive states that affect Provide captions for video content. Flag exact elements, roles, labels, focus behavior, or keyboard interactions that violate the rule, and note how to verify the fix with browser accessibility tooling or assistive tech.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/accessibility/video-captions
Pertanyaan umum
Apa itu file WebVTT?
Itu adalah file keterangan teks biasa, dengan ekstensi .vtt, yang dimuat elemen video sebagai track.
Apa saja yang seharusnya ada dalam keterangan?
Semua dialog yang diucapkan, nama pembicara, dan suara penting non-ucapan seperti musik atau efek suara.
Apa perbedaan keterangan dengan subtitle?
Keterangan mencakup suara non-ucapan, sedangkan subtitle hanya menerjemahkan dialog.
Detail
Deskripsi asli dari pembuat
Use when applies to all `<video>` elements and third-party video embeds (YouTube, Vimeo) where the page owner controls the content. Prerecorded videos require `.vtt` caption files via `<track>`. For videos embedded via `<iframe>`, check that the video platform captions are enabled. Audio-only content requires transcripts instead (SC 1.2.1). Video-only content (no audio) requires a text alternative or audio description instead (SC 1.2.3).
Popularitas
- Bintang GitHub
- 75k
- Peringkat
- #3073
- Lisensi
- MIT
- Diperbarui
- 31/10/2026
Komentar
- โฆ
Skill lain dari repositori ini
frontendchecklist
75kMemeriksa kode frontend dan halaman langsung terhadap lebih dari 380 aturan untuk aksesibilitas, kecepatan, SEO, dan keamanan, dengan alat baris perintah.
frontend-checklist-global
75kMengaudit proyek frontend terhadap seluruh 386 aturan Front-End Checklist, dan memberikan perbaikan spesifik untuk setiap masalah yang ditemukan.
404-page
75kMemeriksa bahwa halaman tidak ditemukan Anda menawarkan tautan yang membantu dan mengembalikan status 404 yang sebenarnya, untuk membantu pengunjung yang tersesat.
about-page
75kMeninjau apakah situs Anda memiliki halaman Tentang yang jelas yang menjelaskan siapa yang mengelolanya, untuk membangun kepercayaan pengunjung dan mesin pencari.
Skill serupa
angular-developer
280kMembantu agent Anda membuat kode Angular dan memberi saran struktur proyek. Berguna saat memulai proyek baru, membuat komponen, atau meningkatkan performa.
frontend-a11y
280kMembantu agent Anda membuat antarmuka web dapat diakses semua orang. Memastikan website dan aplikasi berfungsi baik dengan screen reader dan navigasi keyboard.
frontend-patterns
280kMembuat agent Anda menerapkan pola modern dalam frontend. Mengoptimalkan performa, mengelola state, dan mengikuti praktik terbaik React dan Next.js.