Play YouTube videos and playlists with mpv on Windows x64.
Install with Scoop:
scoop bucket add play https://github.com/mustafachyi/Play
scoop install play/playScoop also installs mpv. To update Play:
scoop update
scoop update playFor a manual installation, download play.exe from the latest release, install mpv, and add both executable folders to PATH.
play "https://www.youtube.com/watch?v=dQw4w9WgXcQ"Pass a video URL, playlist URL, or video ID. Run play without arguments for an input prompt.
Play returns to the prompt after playback starts. Close the mpv window to stop playback.
The player opens centered and fits your screen. Resize the window or switch to full screen.
| Option | Description |
|---|---|
-a |
Play audio only |
-wait |
Wait for playback to end before returning to the prompt |
-h, -help |
Show help |
-version |
Show the version |
-browser |
Manage Firefox integration |
YouTube Mix playlists and live streams are not supported.
Use the YouTube Play extension to open videos and playlists in Play from the latest Firefox release.
- Download the signed YouTube Play
.xpifrom the latest release, open it in Firefox, and confirm installation. - Run
play -browser, enable integration, and select yourmpv.exe. - Open the extension's Preferences, select Check connection, and refresh YouTube.
The setup menu also includes Status, Repair, and Disable. Run play -browser help for direct commands.
After moving a portable copy, run .\play.exe -browser enable --switch from its new folder. Disable integration before deleting the copy.
For custom controls and hover previews, extract PlayView.zip into your mpv configuration folder:
| Installation | Folder |
|---|---|
| Scoop (default) | %USERPROFILE%\scoop\apps\mpv\current\portable_config |
| mpv (default configuration) | %APPDATA%\mpv |
For a custom Scoop location, run scoop prefix mpv and use its portable_config folder. For other portable installations, use mpv's active configuration folder.
PlayView activates in mpv windows opened by Play. Other mpv sessions keep their existing controls and settings.
Set mode=on in script-opts/playview.conf to use PlayView in every mpv session, or mode=off to disable it. The default is mode=auto. Changes apply to new mpv windows.
Use Go 1.27.4 or later. From the project root:
go build -o play.exe .
gofmt -l .
go vet ./...
go test -count=1 ./...Playback integration tests require mpv.exe on PATH. They are skipped if it is unavailable.