{"repo":"meigo/svelte-video-player","free":true,"listed":false,"github":"https://github.com/meigo/svelte-video-player","clone":"git clone https://github.com/meigo/svelte-video-player.git","description":"Basic video player component for svelte","language":"Svelte","stars":144,"topics":["javascript","svelte","typescript","video","videoplayer"],"license":"MIT","category":"media-processing","readme_excerpt":"Svelte Video Player A video player component for Svelte 5 with HLS/DASH streaming, subtitles, picture-in-picture, playback rate control, quality selection, and Media Session API support. Controls are fully keyboard-accessible. Starting a player pauses any previously playing instance. Fullscreen is disabled on iPhone but works on other mobile and desktop browsers. Demo https://svelte-video-player.netlify.app/ Installation Requires Svelte 5. Usage Provide width and height props matching the video's real dimensions to calculate the correct aspect ratio and prevent CLS. The player's actual size is determined by its parent element. Multiple sources Pass an array to provide fallback formats: HLS streaming HLS streams are auto-detected from .m3u8 URLs. hls.js is lazy-loaded only when needed. DASH streaming DASH streams are auto-detected from .mpd URLs. dashjs is lazy-loaded only when needed. Subtitles / Captions A CC toggle button appears automatically when tracks are provided. Track selection is available in the settings menu. The crossorigin attribute is set automatically when tracks are present. Chapters Media Session Integrate with the browser's Media Session API for OS-level media controls: Props Prop Type Default Description :----- :----- :-------- :------------ width number \\ string 1920 Real video width for aspect ratio calculation height number \\ string 1080 Real video height for aspect ratio calculation poster string '' Poster image URL source string \\ string[] '' Video so","default_branch":null,"files":null,"tree":[],"storefront":"/r/meigo","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/meigo/svelte-video-player/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}