Skip to content

media-has-captions

Require captions/subtitles track on video.

Severity

warning

❌ Incorrect

html
<video src="talk.mp4" controls></video>

✅ Correct

html
<video src="talk.mp4" controls>
  <track kind="captions" src="talk.vtt" srclang="en">
</video>

Reference

Configuration

json
{
  "rules": {
    "media-has-captions": "warning"
  }
}

Released under the MIT License.