Mpv: Controller MPV and it's playlist from another process?

Created on 9 Apr 2018  路  3Comments  路  Source: mpv-player/mpv

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?

question

All 3 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

olivergondza picture olivergondza  路  3Comments

szg0000 picture szg0000  路  3Comments

WoLpH picture WoLpH  路  3Comments

beew picture beew  路  3Comments

xanadupark picture xanadupark  路  3Comments