Vanilla JS · Three themes · Zero dependencies

Video, dressed
in glass.

A premium, framework-free player for MP4, HLS, YouTube, Vimeo, Dailymotion and Facebook. Glass, Neon and Desert themes, paged playlists, chapters, sprite hover previews — all in one JavaScript file.

6 sources Zero dependencies Single JS file Keyboard & screen-reader ready
Space play / pause F fullscreen C captions M mute 11 videos, so the playlist pages. Enable the top bar in Settings to switch Glass / Neon / Desert. Hover the timeline for sprite previews.
Sources

Six ways to press play.

One player, one API, six very different delivery formats. Native files and HLS get the full custom layer directly; embedded providers are driven through their official SDKs.

01
MP4 / WebM

Native <video> playback with posters, captions, PiP and file-based quality switching.

Native engine
02
HLS / M3U8

Adaptive bitrate through hls.js, with automatic native fallback on iOS and Safari.

Adaptive
03
YouTube

Official IFrame API. Quality levels, playback speed, captions and the custom glass UI.

IFrame API
04
Vimeo

Vimeo Player SDK with quality selection, text tracks, volume and playback rate.

Player SDK
05
Dailymotion

DM.player SDK for custom controls, quality levels and subtitle tracks.

DM.player
06
Facebook

Official video plugin with a one-click start. Facebook keeps its own controls once playback begins.

Native UI

Facebook's plugin is a cross-origin frame, but its Embedded Video Player API lets Spark start playback with one click, read the real runtime and follow play/pause events before handing the frame to Facebook's own controls — the honest way to support it. Read the provider notes.

Inside the glass

Small controls.
Large attention to detail.

Every surface is tuned — the scrub lane, the 50px console, the sheet that opens only when asked, the focus ring nobody sees until they need it.

The control layer

The interface disappears at the right moment.

A 50px frosted console, a 10px scrub lane, buffered track, chapter ticks and a 158px preview that follows your cursor. It fades out while you watch, and returns the instant you move.

Navigation

Chapters with a heartbeat.

Timeline ticks, a readable list and an active row that keeps pace with the video. Hover previews read from a WebVTT sprite sheet.

Six adapters, one API

Swap an MP4 for a Vimeo link and nothing else in your code changes. Capabilities, errors and quality are normalised for you.

Keyboard first, touch ready

Space, arrows, J/K/L, M, F, C, P and N. Visible focus rings, ARIA labels and a layout that stays usable at 360px.

Themes

Three moods, one switch.

The frosted segmented control in the top bar swaps Glass, Neon and Desert live — palette, glass recipe, typeface and glow. The choice is remembered per visitor.

Playlists Auto posters & runtimes Paged playlists Three themes Hover previews Picture-in-picture Captions Playback speed Resume & preferences Error recovery Multi-instance
Install

Two files.
A few lines.

No framework and no runtime dependencies. Drop the stylesheet and generated script into any page, point it at an element and pass your playlist.

  • Portable by default. hls.js and the Vimeo Player SDK ship in assets/vendor/. Dailymotion's SDK is always loaded from its CDN, because Dailymotion does not allow it to be self-hosted.
  • Readable options. One flat config object, sensible defaults and documented provider quirks.
  • Events and methods. Play, seek, quality, captions and fullscreen are all scriptable.
Open the full documentation
<!-- 1. Styles -->
<link rel="stylesheet" href="assets/css/spark-player.css">

<!-- 2. Mount point -->
<div id="player"></div>

<!-- 3. Player -->
<script src="assets/js/spark-player.js"></script>
<script>
  const player = SparkPlayer.create('#player', {
    playlist,
    accent: '#22d3ee',
    accent2: '#8b5cf6',
    theme: 'glass', // glass | neon | desert
    autoplay: false,
    playlistTitle: 'The glass reel'
  });
</script>
Documentation

Everything you need to ship.

Options, playlist schema, chapters, sprite previews, provider caveats, API methods, events, keyboard shortcuts and troubleshooting — written for buyers, not just developers.