Legality is to do with punishment. There are many things which I may not agree with ‘morally’ for whatever reason but by the same token I do not by any means believe people should be punished for those things, provided they do not hurt another person. E.g I’ve been vegetarian for 20+ years, and I strongly disagree with excessive consumption of meat on moral grounds, but I don’t think anyone should be punished for eating meat.
Jellyfin has a remote control feature that lets you do something like this, I use it quite a lot for music.