-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Context action to add video to mpv playlist/queue #132
Comments
Hi @Kladki, thanks for the feature request. I've thought a bit about this, and I think it would be architecturally challenging to do: adding to an MPV playlist requires an active (meaning not stateless) connection with an MPV instance, which would complicate the native client side of this extension significantly. The good news is that you can probably do this without changing the extension, by patching your own native client to add the received URL to a playlist rather than spawning a new MPV. However the upstream native client will probably never do this, since it'd be a significant behavioral change. TL;DR: this is possible but requires native client changes that I don't plan on making. A third-party native client or locally patched one could do it. |
I just set this up for myself, the trick is to use umpv, a script that comes with mpv that emulates this exact behaviour. umpv will either launch a new player if there is none yet, or add it to the queue of the existing player. |
Nice! @pgrosslicht would you consider adding a section to the Customization tricks about that? I think this would be great to have some stable docs on for others to follow. |
I have made a pull request to fix this. |
Is your feature request related to a problem? Please describe.
When I am watching a video, sometimes I see another video that I would like to watch afterwards. I cannot do this easily at the moment, as I would either have to use ff2mpv to open a new mpv instance, then pause the video, and then unpause it once the video i am currently watching is over, or I would have to shift-drag the URL from Firefox to MPV, which is not only unreliable on wayland, but also isn't possible if you're already on the page for the video.
Describe the solution you'd like
Either add a context action to add a video to the mpv queue, or make "play in mpv" context action add the video to the queue if there is already an mpv instance started by the extension running.
Describe alternatives you've considered
See the first section
The text was updated successfully, but these errors were encountered: