j-holub/Node-MPV

Unable to run multiple instance?

Opened this issue · 2 comments

Is it possible to have a new instance of MPV open each time instead of overrides my current video/instance? As a test I even tried to trick the wrapper by using two instances of mpvAPI using two separate versions of mpv.exe (using the binary property).

Is this just a limitation of this wrapper since it 'keeps an instance of MPV running in the background'?

Hey Chris,

in theory it should be possible, but if you're using the default parameters, you will use only one IPC socket for the communication with the 2 instances, which will probably cause issues, if it even works at all.

Have you already tried to use the socket option to set a different IPC socket for each instance?

Definitely possible. Just use different socket names for each instance. It's working for my project.