I want to set up a StreamController for a disabled person so they have power themselves to control their media viewing and listening. I already have VLC set up, but it’s unfortunately rather limiting, so I’m hoping Haruna is more flexible.
However, I’m having trouble getting custom commands to work:
Maybe because I (don’t ban me please) use Gnome, I saw a pop up asking me to give explicit permission to Haruna to use shortcuts, something that never has happened in VLC…
I’m sorry but I think you misunderstood me in that thread, and are still misunderstanding me now.
Are custom commands not used to run mpv commands via user configured shortcuts?
I wanted to link to the corresponding documentation pages where unless there’s a language barrier (English is not my native language) it sure seems like it, but I’m not allowed include links in my posts for some reason.
You can’t run multiple custom commands at once, but you can change multiple mpv properties and run multiple mpv commands through a single custom command.
For example, if you want to set multiple properties at once you can load an mpv config file with set include "/path/to/file.conf"
volume=43
mute=yes
pause=yes
If you want to run other mpv commands you must create a script and load it with load-script "/path/to/script.lua"
function do_things()
mp.commandv("set", "volume", 43)
mp.commandv("set", "mute", "yes")
mp.commandv("set", "pause", "yes")
mp.commandv("seek", "5", "relative")
end
do_things()
But keep in mind, not everything will work as it does in mpv, the playlist is one example.
Playlist is one of those things that won’t work in haruna. Maybe in a near future, not now. Been discussed here before.
And if VLC is too limited, you need a mediaplayer with many many more options for shortcuts/commands ( options overall).
I think this is the critical information I was missing, and that’s too bad. Now I have to search for a different player yet again.
And are you showing such a playlist in your screenshot? I’m sorry but I don’t read Dutch(?) and don’t recognize the icons so I don’t know what that app is.
The limit I bumped up against in VLC is the inability to start playing a playlist at a random track (maybe it can be scripted, but that’s beyond my current level of knowledge), and that StreamController which I used to issue multiple commands, can’t delay/queue commands when you press buttons too rapidly.
I’m not quite sure what exactly you’re aiming for but in terms of a gui player, smplayer ( screenshot) has a set of possible settings of all sorts, you’ll have a hard time finding in any other. The section shortcuts alone ( the left window in that screenshot, is quite big). But starting a playlist at a random track shouldn’t be a prob, provided you configure it as such. It supports mpv scripts btw but I’d be surprised you’d need it at all.
Dunno, maybe you’ll find what you need with that player.
On a sidenote:Since you’re on gtk, it’s possible you’ll need qt5ct, not sure. That’s what you need to make it adapt to the gtk theme. Again, not sure.