Native <video> playback with posters, captions, PiP and file-based quality switching.
Native engine
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.
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.
Adaptive bitrate through hls.js, with automatic native fallback on iOS and Safari.
AdaptiveOfficial IFrame API. Quality levels, playback speed, captions and the custom glass UI.
IFrame APIVimeo Player SDK with quality selection, text tracks, volume and playback rate.
Player SDKDM.player SDK for custom controls, quality levels and subtitle tracks.
DM.playerOfficial video plugin with a one-click start. Facebook keeps its own controls once playback begins.
Native UIFacebook'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.
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 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.
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.
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.
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.
<!-- 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>
const playlist = [
{
src: 'assets/media/sintel-trailer.mp4',
type: 'video',
title: 'Sintel — Blender Open Movie',
poster: 'assets/posters/sintel.png',
thumbnails: 'assets/media/sintel-thumbnails.vtt',
subtitles: [
{ src: 'assets/media/sintel-en.vtt',
label: 'English', srclang: 'en' }
],
chapters: [
{ start: 0, title: 'The hunt' },
{ start: 10, title: 'The old storyteller' },
{ start: 20, title: 'Firelight' }
]
},
{
src: 'https://vimeo.com/1084537',
title: 'Big Buck Bunny'
}
];
// Script playback
player.play();
player.seek(42);
player.setQuality('auto');
player.setRate(1.25);
player.setCaption('en');
player.next();
player.previous();
player.setTheme('neon');
player.setPlaylist(items, 0);
// Listen to what happens
player.on('ready', (state) => {
console.log(state.provider, state.duration);
});
player.on('error', (error) => {
console.warn(error.code, error.message);
});
player.on('itemchange', ({ item }) => {
document.title = item.title;
});
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.