Package Details: mpv-handler 0.3.13-1

Git Clone URL: https://aur.archlinux.org/mpv-handler.git (read-only, click to copy)
Package Base: mpv-handler
Description: Play website videos and songs with mpv & yt-dlp.
Upstream URL: https://github.com/akiirui/mpv-handler/
Licenses: MIT
Submitter: akiirui
Maintainer: akiirui
Last Packager: akiirui
Votes: 2
Popularity: 0.000000
First Submitted: 2021-06-10 06:14 (UTC)
Last Updated: 2024-09-29 10:32 (UTC)

Dependencies (4)

Required by (0)

Sources (1)

Latest Comments

akiirui commented on 2025-03-14 12:34 (UTC) (edited on 2025-03-14 12:46 (UTC) by akiirui)

@LaptopDev

For Arch Linux, mpv-handler works out of the box. I just tested it without editing anything and it works fine.

I don't know how "URL redirection extension" works, It has a companion user script https://greasyfork.org/scripts/416271-play-with-mpv.

Also, please try:

# xdg-open 'mpv-debug://play/aHR0cHM6Ly93d3cueW91dHViZS5jb20vd2F0Y2g_dj1HZ2tuMmY1ZS1JVQ'

If it opens the console and outputs something, then mpv-handler is working fine.

The mpv:// protocol doesn't output anything, even if mpv or mpv-handler exits with an error. The mpv-debug:// protocol will open a console and print the logs.

LaptopDev commented on 2025-03-14 01:37 (UTC)

Can't seem to get this to work 1. Install mpv-handler using yay -S mpv-handler.
2. Open Firefox and go to about:config, then set network.protocol-handler.expose.mpv to false.
3. Install a URL redirection extension and configure it to rewrite video page URLs to mpv:// format.
4. Attempt to open a video in Firefox and select mpv-handler when prompted.
5. Run xdg-mime default mpv-handler.desktop x-scheme-handler/mpv to set mpv-handler as the default for mpv:// links.
6. Verify the registration by running xdg-mime query default x-scheme-handler/mpv and confirming it returns mpv-handler.desktop.