Skip to content
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

[Feature Request]: Add support for uosc script #3

Closed
NaiveInvestigator opened this issue Oct 10, 2022 · 1 comment
Closed

[Feature Request]: Add support for uosc script #3

NaiveInvestigator opened this issue Oct 10, 2022 · 1 comment

Comments

@NaiveInvestigator
Copy link

As I have realized once i started using this script is that now uosc has its own playlist, shuffling method and it breaks autoload.lua. Which is why I just use the autoload function that comes with uosc and that just directly plays the next file without using a playlist. This results in when i click to play a song and press the next button, it doesn't work since there is no next file according to mpv, but if we use script-binding uosc/next it works.

So if we could just change the thumb button command to use uosc's navigation functions if uosc is installed would be awesome!

Which is why I asked for this feature #2 lol since uosc doesn't use a playlist to load files and that in turn disables both the buttons since mpv thinks there is no next file.

I hope I am making sense. Sorry for the long rambling ;-;

@qwerty12
Copy link
Owner

Hi again,

You should be able to add the following (+ play_pause_command) to script-opts\mpv-taskbar-buttons.conf

prev_command=script-binding uosc/prev
next_command=script-binding uosc/next

While I use uosc myself, I don't want to add detection for it in the script. For more advanced options than just running a command (or multiple ones separated by ; ), I'd probably just edit the functions directly in local callbacks = { in hook.lua

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants