Page 1 of 1

API available?

Posted: Tue Jan 05, 2021 9:42 pm
by crap_inhuman
I can't find the SongsDB5 name-space.

Is the api implemented ? https://www.mediamonkey.com/wiki/Contro ... plications

Re: API available?

Posted: Wed Jan 06, 2021 8:53 am
by PetrCBR
Hi. Don't you have installed as portable install ? Also JS scripting is preferred instead of using old COM.

You can check this how to use devtools api.

Re: API available?

Posted: Wed Jan 06, 2021 9:21 am
by Ludek
The COM model in MM5 should work, but isn't cross-platform and is limited (e.g. you cannot build/control UI using the COM).
So as Petr wrote the JS scripting is preffered.

If you don't need to access MM5 externally try standard scripts/addons, viz following links:
https://www.mediamonkey.com/wiki/Gettin ... d_(Addons)
https://www.mediamonkey.com/wiki/Import ... s_(Addons)
viewtopic.php?f=27&t=81285
+ watch the Scripts folder inside MM install folder for inspiration

If you need to access MM5 from external apps then the Chrome DevTools protocol should work:
viewtopic.php?p=447737#p447737

Re: API available?

Posted: Wed Jan 06, 2021 11:06 am
by crap_inhuman
PetrCBR wrote: Wed Jan 06, 2021 8:53 am Hi. Don't you have installed as portable install ? Also JS scripting is preferred instead of using old COM.

You can check this how to use devtools api.
I first had a portable install, but after searching for the name-space i reinstall mm5 normal.

I know that JS is preferred, but i found the wiki page "Controlling MM5 from External Applications", and i tried to use it.
If there is no COM name-space for MM5, the wiki page should be updated :wink:

Re: API available?

Posted: Wed Jan 06, 2021 11:25 am
by PetrCBR
Browse to MM install fodler and run MediaMonkey.exe /RegComServer

EDIT: I've found the issue why COM server wasn't registered even in normal install .. will be fixed in next build.

Re: API available?

Posted: Wed Jan 06, 2021 11:34 am
by crap_inhuman
PetrCBR wrote: Wed Jan 06, 2021 11:25 am Browse to MM install fodler and run MediaMonkey.exe /RegComServer

EDIT: I've found the issue why COM server wasn't registered even in normal install .. will be fixed in next build.
Thank you !