Closed wendelb closed 7 years ago
Heyho,
thanks for the Issue. I haven't run into that Problem yet, that's why it isn't handled yet.
So I guess if I find neither UNKNOWN nor a version number I could just use the old command.
I like you're idea about being able to override the ipcCommand
.
I'll look into it as soon as possible but within this week.
I fixed the issue. When the module finds the version number as "NaN" it uses the old deprecated command "--input-unix-socket".
I also added the possibility to set the ipcCommand by hand using the options object.
This should fix your Problem.
Hi there,
I wanted to use your npm package in my new project. Apparently the code that detects the mpv version doesn't work with my build.
I aquired this build using the debian buildscripts (used to create deb-packages) created by the mpv team. As you can see, there is no
UNKNOWN
in the version string. Therefore your lib is trying to find a major and a minor version for comparison.The
output.substring(start,end)
will be'0a81fe1 (C) 2000'
in this case.parseInt
on that will fail on that.I haven't actually installed your lib yet, but tried the detection script via node REPL. Starting mpv using the old parameter only issues a warning, so I think this will work fine. It would be nice for the library to handle this case (or having an option to override
ipcCommand
).Thanks Bernhard