Zero runtime dependencies
Pure JavaScript at runtime. Your users download a small player instead of a dependency tree.
Fast, accessible, and easy to customize. Sopplayer gives your HTML5 video a polished experience without a giant framework attached.
Use the CDN, npm, React, or plain HTML. Pick the path that fits your project.
<link rel="stylesheet"
href="https://cdn.jsdelivr.net/gh/sh20raj-backup/Sopplayer@v2.0.0/dist/sopplayer.min.css">
<video id="player" poster="poster.jpg" playsinline>
<source src="video.mp4" type="video/mp4">
</video>
<script src="https://cdn.jsdelivr.net/gh/sh20raj-backup/Sopplayer@v2.0.0/dist/sopplayer.min.js"></script>
<script>
new Sopplayer('#player', { theme: 'default' });
</script>
Useful features without turning a simple video player into a framework of its own.
Pure JavaScript at runtime. Your users download a small player instead of a dependency tree.
Keyboard navigation, focus states, slider semantics, live announcements, captions and reduced motion support.
Play, pause, seek, volume, fullscreen, PiP, captions and playback speed without leaving the keyboard.
Switch visual identity instantly or use CSS custom properties to make your own skin.
Media URLs and user-controlled values are handled defensively to reduce common DOM injection risks.
Legacy integration paths and the Video.js-style compatibility layer make migration less painful.
A small library should stay small. Here is where Sopplayer sits next to common alternatives.
| Feature | Sopplayer | Video.js | Plyr |
|---|---|---|---|
| Minified bundle | < 40 KB | > 450 KB | ~ 120 KB |
| Runtime dependencies | 0 | 14+ | 2 |
| Built-in themes | 7 | Plugins | 1 |
| WCAG-focused controls | Yes | Yes | Partial |
| PiP & fullscreen | Yes | Yes | Yes |
| Legacy Video.js adapter | Included | — | — |
Jump straight into the area you want to explore.
Inspect playback, try configurations, and experiment with the player live.
DESIGNSee all eight built-in themes and choose the visual direction you like.
A11YExplore keyboard behavior, focus states, announcements, and contrast details.
MEDIATry multi-track WebVTT captions and dynamic language switching.
CONTROLSee fullscreen and Picture-in-Picture behavior in a focused demo.
FRAMEWORKSGrab integration patterns for modern component-based applications.
Drop Sopplayer into your next project and spend your time on the product around the video—not the plumbing.
Start with the quickstart →