Hi everyone,
I've written a scripts which generates media, adds them to a playlist and launches mpv to play them. I'm trying to setup some of buffering system where mpv starts playing after a 5 or 10 items are created and the rest get created in the background while mpv's playlist is running and are enqueued to it gradually as they're created. Is there a way of enqueuing new media items when the playlist has already started? I've tried having the script manually edit the playlist during playback but the new tracks are ignored. I'm assuming this is probably because once loaded a copy of the list is sent to the ram?
I also want the scripts to be able to control an already existing mpv thread: seeking, changing track, quitting etc. Is there anyway of doing outside of having to have the user use a keyboard and mouse? Some kind of terminal command or maybe an input file of some sort?
Thanks so much, I'll have a read through it.
Alternatively, you could do something similar to https://github.com/mpv-player/mpv/blob/master/TOOLS/lua/autoload.lua