Ana Sayfa / Kod ve Scriptler / Spark Player - HTML5 Video and Playlist Player

Spark Player - HTML5 Video and Playlist Player

Spark Player; HLS, altyazılar, altı tema ve isteğe bağlı React ve WordPress entegrasyonları ile HTML5 video oynatma listeleri ekler.

  • Yayın tarihi16 Kasım 2026
  • Paket içeriği.php, .css, .html, .ts, .tsx, .jsx, .json, .scss, JavaScript .js
  • Son güncelleme16 Kasım 2026
  • Canlı demoVar
Spark Player - HTML5 Video and Playlist Player

Overview

Spark Player is a dependency-free HTML5 video player with a smart, paginated playlist. It plays MP4, WebM, HLS (.m3u8), YouTube, Vimeo, Dailymotion and Facebook video through one unified API, and ships with 6 themes, 11 locales, WebVTT captions, chapter markers, resume playback, a floating mini-player dock and keyboard shortcuts. Built as a pure TypeScript core with no runtime dependencies, it also ships an optional React component and a WordPress plugin ([spark_player] shortcode + Gutenberg block). A single ~26 kB gzipped CSS bundle styles every theme. Per-item codec fallback: give a playlist item a sources array and the player renders native source candidates, so a browser without H.264 support (some Chromium/Linux builds) automatically falls back from MP4 to WebM instead of showing a dead player. When no candidate decodes, the player emits a single no-source-supported error event. Live demo: https://sparkplayer.vercel.app

Features

- Zero runtime dependencies: pure TypeScript core, optional dynamic hls.js peer loading - Multi-source playback: MP4, WebM, HLS .m3u8, YouTube, Vimeo, Dailymotion, Facebook - Per-item codec fallback via PlaylistItem.sources with native source candidates - Smart paginated playlist with search, filter and page-size controls - Floating mini-player dock plus accessible keyboard shortcuts dialog - Resume playback persisted per item in localStorage - Non-blocking toast feedback for every player state change - 6 themes (Glass, Neon, Desert, Glass Light, Neon Light, Midnight) and 11 locales - WebVTT captions and chapter markers - Typed React component and WordPress plugin with Gutenberg block - Fully responsive, keyboard accessible, ARIA labelled controls - Ships ESM + UMD + CommonJS bundles with TypeScript declarations

Requirements

- Any modern browser with HTML5 media support (Chrome, Firefox, Safari, Edge) - No build step required when using the UMD bundle - Node.js 18+ only if you want to rebuild from source - HLS playback uses hls.js, loaded dynamically on demand - WordPress 5.8+ and PHP 7.4+ for the bundled plugin