3 ms·
The mpv example was my main thought. If you want to add something to a playlist using mpv's playlist feature you have to stop and restart mpv.
by Zhyl 6y ago
The mpv example was my main thought. If you want to add something to a playlist using mpv's playlist feature you have to stop and restart mpv.
- jolmg 6y agoDoesn't help if you like to loop the playlist, though.
- JNRowe 6y agoIt probably isn't as user friendly as you'd want, but you can reload the playlist by firing commands at a socket. See the "JSON IPC" section in the mpv man page, and specifically the load* commands. jo¹ and socat² are probably the simplest way to use it if you're not looking for heavy scripting. The scriptability of mpv is really nice if you're the sort of person who likes building your perfect environment, and also a huge pit of addictive time sinks. </warning> ¹ https://github.com/jpmens/jo https://github.com/jpmens/jo ² http://www.dest-unreach.org/socat/ http://www.dest-unreach.org/socat/