player icon indicating copy to clipboard operation
player copied to clipboard

SvelteKit warning : A11y: <video> elements must have a <track kind="captions">

Open rhscjohn-dev opened this issue 3 years ago • 1 comments

With your March 2022 release now using the HTML5 <video> element, SveleteKit throws A11y warning: A11y: <video> elements must have a <track kind="captions">svelte(a11y-media-has-caption).

For documentation purposes, the <video> element should be as follows.

    <video
      controls
      src="https://media-files.vidstack.io/720p.mp4"
      poster="https://media-files.vidstack.io/poster-seo.png"
      preload="none"
    >
      <track kind="captions" />
    </video>

rhscjohn-dev avatar Apr 03 '22 19:04 rhscjohn-dev

Thanks @rhscjohn-dev! I'll add a note to the Svelte docs.

mihar-22 avatar Apr 04 '22 03:04 mihar-22

Closing this as we'll have Svelte integrations coming soon that can SSR and we don't currently have docs for Svelte until then.

mihar-22 avatar Jan 20 '23 01:01 mihar-22