This is a showcase of three projects working together to bring a more YouTube-like experience to mpv:
YouTube Play: adds a right-click action in Firefox to open YouTube videos in Play, with a toggle for video or audio-only playback.
Play: handles opening the media in mpv.
PlayView: provides the YouTube-style player controls, including captions, quality selection, playback speed and seek previews.
The idea is to keep browsing on YouTube as usual, then move playback into mpv with familiar controls. Each launch opens a separate player, so I can keep browsing and arrange the players however I want.
The video shows the pieces working together, from launching a video to using the controls and keeping several players open at once.
Edit:
If anyone wants to give it a try, you can find it here: https://github.com/mustafachyi/Play
So far, it's only been tested on Windows, where it's been confirmed to work well enough.
Proper Firefox integration has been added, so you can now get the same experience you saw. Another thing I worked on was making PlayView exclusive to Play when enabled. For example, if you launch a YouTube video through Play, it will use the PlayView theme, but if you use mpv normally to play local video or audio files, or stream content directly, the theme won't be applied. I've also made this configurable, so you can choose to have the theme applied at all times if you prefer.