Media player
Falls back to the browser's own player without JS. K, J/L, M, C and F work while focus is inside.
defaultProps of default
<MediaPlayer src="/_astro/test-pattern.D7hK_jVZ.mp4" />0:00 / 0:00
titledProps of titled
<MediaPlayer src={[{ src: "/_astro/test-pattern.CFTKH3Pe.webm", type: "video/webm" }, { src: "/_astro/test-pattern.D7hK_jVZ.mp4", type: "video/mp4" }]} poster={image("/_astro/test-pattern.CRwj5U5U.jpg")} title="Test pattern" />0:00 / 0:00
captionsProps of captions
<MediaPlayer src={[{ src: "/_astro/test-pattern.CFTKH3Pe.webm", type: "video/webm" }, { src: "/_astro/test-pattern.D7hK_jVZ.mp4", type: "video/mp4" }]} poster={image("/_astro/test-pattern.CRwj5U5U.jpg")} title="Test pattern" tracks={[{ src: "data:text/vtt;base64,V0VCVlRUCgowMDowMDowMC41MDAgLS0+IDAwOjAwOjA0LjAwMApBIHRlc3…", srclang: "en", label: "English", default: true }]} tone="secondary" />0:00 / 0:00