The web player that plays everything.
MKV, Dolby sound, any subtitle, from any storage. Free, 20 KB, no server.
Why Waldy
Quick start
Copy the dist folder from GitHub next to your page. Then:
<waldy-player src="https://your-storage.example/film.mkv"></waldy-player> <script type="module" src="dist/waldy-player.js"></script>
<!-- a normal video tag inside: the browser starts loading before the script arrives --> <waldy-player> <video src="film.mp4" playsinline></video> </waldy-player> <script type="module" src="dist/waldy-player.js"></script>
import { WaldyPlayer } from './dist/waldy-player.js'; new WaldyPlayer('#player', { playlist: [ { src: 'show/episode-1.mkv', title: 'Episode 1' }, { src: 'show/episode-2.mkv', title: 'Episode 2' }, ], nextAt: 30, // Next card in the last 30 seconds; volume, speed and subtitles carry over });
import { WaldyPlayer } from './dist/waldy-player.js'; const player = new WaldyPlayer('#player', { src: 'film.mkv', // a link, or a File from an <input> subtitles: [{ src: 'film.en.srt', label: 'English' }], accent: '#f5d04e', }); player.on('error', (e) => console.log(e.message)); player.seek(120); player.setVolume(2.5); // 250%
What it plays
| Video | MP4MOVWebMMKVMPEG-TSHLS |
| Sound | AACMP3OpusFLACVorbisPCMDolby DigitalDolby Digital+DTSTrueHD |
| Subtitles | SRTVTTASS / SSATTMLSBVLRCBlu-ray PGSDVD VobSub |
| Audio files | MP3M4AFLACWAVOggMKA |
| Links | any direct linkDropbox share linksGoogle Drive share linksfiles from your device |
All of these play. The ones most other web players cannot handle: MKV, MPEG-TS, Dolby, DTS, TrueHD, Blu-ray and DVD subtitles, and share links.
What it does not play
AVI, WMV and FLV files. Old picture formats the device cannot decode (MPEG-2, Xvid, VC-1); HEVC only where the device supports it. Fancy ASS styling (fonts, colours, karaoke). Surround output for converted sound: Dolby and DTS come out as stereo. YouTube and Netflix links: those are web pages, not files. DRM-protected streams.
Speed, measured
Same files, same connection, same stopwatch, each player set up as its docs say.
All the numbers, every player
What each player can play
Download size
Script bytes transferred (compressed) before the first picture of a plain MP4.
How it works
The file never changes, only its wrapping. Pick a file:
Look inside
Which tracks, which formats.
Read the pieces
Only the part you watch.
Re-wrap picture
Copied, never re-encoded.
Convert sound
Only if the browser can't play it.
Browser plays
Subtitles drawn on top.
The longer explanation
Easy way first. If the browser can play a file by itself, Waldy lets it and only adds the controls. That is why a plain MP4 starts as fast as a bare video tag.
Silent sound is caught early. Chrome and Firefox play an MP4 with Dolby sound silently. Waldy reads a few kilobytes of the file as it starts, sees the Dolby track, and takes over before playback begins.
Re-wrapping, not re-encoding. For MKV, the frames are lifted out and placed, unchanged, into small MP4 pieces the browser accepts (Media Source Extensions). That is a copy job, many times faster than the film plays.
Sound is decoded in the page when needed. Dolby, DTS and TrueHD are decoded with WebAssembly and packed as Opus or AAC next to the picture, so they stay in step after every jump.
Only what you watch is downloaded. The player asks the storage for byte ranges, a little ahead of where you are, and drops them when you jump. An MKV chunk starts playing from its first part while the rest arrives.
Docs
Will my storage work? (link checker)
MP4, WebM and MP3 play from any link a video tag accepts. For MKV, Dolby sound and subtitles inside the file, the storage must answer range requests and allow cross-site reads (CORS). Test a link:
Google Drive and Dropbox links
Dropbox: paste the normal share link. It just works, long MKV films included.
Google Drive: share the file as "Anyone with the link" and give the player a free Google API key (Google Cloud Console → switch on the Google Drive API → Credentials → API key). Pass it as googleKey: 'AIza…' or <waldy-player google-key="AIza…">. Google limits how much of one file can be downloaded per day.
To try a Drive link on this page, save your key here (it stays in this browser):
Options
src | A link, or a File from the viewer's device |
playlist | List of { src, title, subtitles } played one after another |
title poster | Shown on the player |
subtitles | Extra subtitle files: { src, label, lang, default } |
autoplay muted loop | As on a video tag |
resume | Continue where the viewer stopped (on by default) |
startAt | Start at this many seconds |
nextAt autoNext | When the Next card appears (30 s); move on at the end (on) |
audioLanguage subtitleLanguage | Preferred languages, e.g. 'Hindi' |
accent accent2 | Colours |
googleKey | Google API key, for Drive share links |
type | Force 'native', 'engine' or 'hls' |
fetch | Sent with every request, e.g. { credentials: 'include' } |
Actions and events
load(src, options) | Play another file |
play() pause() seek(s) seekBy(s) | Transport |
setVolume(0…4) | 1 is the file's own level; up to 400% |
setAudio(i) setSubtitle(i) | Choose a track; -1 turns subtitles off |
addSubtitle(linkOrFile) setSubtitleDelay(s) | Add a subtitle file; shift timing |
next() prev() playItem(i) setPlaylist(items) | Playlist |
toggleFullscreen() toggleTheatre() togglePip() | Display |
stats() destroy() | Playback details; remove the player |
Events, with player.on(name, fn): loadstart tracks error audiochange subtitlechange itemchange theatre ended, plus the usual video events.
Keyboard shortcuts
Is it really free? Which browsers?
Yes: MIT licence, no account, no key. It builds on Mediabunny (MPL-2.0), its Dolby/DTS/TrueHD decoders (libavcodec, LGPL) and hls.js (Apache-2.0).
Built for current Chrome, Edge, Firefox and Safari, phones included. So far it has been tested end to end in Chrome on a Mac only.