player
player copied to clipboard
SvelteKit warning : A11y: <video> elements must have a <track kind="captions">
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>
Thanks @rhscjohn-dev! I'll add a note to the Svelte docs.
Closing this as we'll have Svelte integrations coming soon that can SSR and we don't currently have docs for Svelte until then.