sopplayer v2.0.0
v2.0.0 Launched · Complete rewrite with zero dependencies

The Modern, Accessible
HTML5 Video Player

Engineered for speed, accessibility (WCAG 2.1 AA), and effortless customization. Under 40 KB minified with zero runtime dependencies.

< 40 KB
Bundle Size
0
Dependencies
WCAG AA
Accessibility
7 Themes
Out of the Box
100%
v1 Compatible
sample.mp4 — 1080p
Theme:

Quickstart

Integrate Sopplayer in seconds via versioned CDN, NPM, or declarative HTML.

<!-- 1. Include Sopplayer v2.0.0 Stylesheet -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/SH20RAJ/Sopplayer@v2.0.0/dist/sopplayer.min.css">

<!-- 2. Standard HTML5 Video Element -->
<video id="player" poster="poster.jpg" preload="metadata" width="720">
  <source src="video.mp4" type="video/mp4">
  <track kind="subtitles" label="English" srclang="en" src="subtitles.vtt" default>
</video>

<!-- 3. Include Sopplayer v2.0.0 Script -->
<script src="https://cdn.jsdelivr.net/gh/SH20RAJ/Sopplayer@v2.0.0/dist/sopplayer.min.js"></script>
<script>
  const player = new Sopplayer('#player', {
    theme: 'default', // 'flamingo' | 'forest' | 'city' | 'sea' | 'fantasy' | 'minimal'
    autoplay: false
  });
</script>

Comparison Matrix

How Sopplayer v2 compares with popular open-source video player alternatives.

Feature Sopplayer v2.0 Video.js 8.x Plyr 3.7
Minified Bundle Size < 40 KB > 450 KB ~ 120 KB
Runtime Dependencies 0 (Pure JS) 14+ 2
Built-in Themes 7 CSS Themes Requires plugins 1 Theme
WCAG 2.1 AA Audited ✓ First-Class (Live region) ✓ Yes Partial
Picture-in-Picture & Fullscreen ✓ Vendor Prefix Free ✓ Yes ✓ Yes
Legacy Video.js API Proxy ✓ Built-in Adapter N/A No

Engineered for Excellence

Built for modern web applications where performance, user experience, and accessibility matter.

🪶

Zero Dependencies

Handcrafted without heavy frameworks or bloated abstractions. Under 40 KB minified, loading in single-digit milliseconds.

♿

WCAG 2.1 AA Accessible

Full keyboard focus trapping, visible focus rings, ARIA slider semantics, and live region screen reader announcements.

⌨️

Rich Keyboard Shortcuts

Space/K to toggle, Left/Right/J/L to seek, Up/Down/M for volume, F for fullscreen, and P for Picture-in-Picture.

🎨

CSS Custom Properties

Change your player's entire visual identity with 5 CSS variables. Switch between 7 included themes or write your own.

🔒

Security Hardened

Audited against DOM XSS vectors, sanitizing URLs to block javascript: protocol injection and untrusted HTML.

🔄

Backwards Compatible

Old CDN URLs, legacy skins, and Video.js v1 APIs continue working unchanged with zero migration friction.

Interactive Showcases & Demos

Explore specialized playgrounds, theme galleries, and integration guides.