Author Topic: [Q] API Method documentation  (Read 7407 times)

begi78

  • Newbie
  • *
  • Posts: 4
Hi,
I love MusicBee as it is exactly what I was looking for. I would like also to write some plugin but I admit that it is hard to start without objet/method documentation. Can you tell me if this documentation is existing and where ?
Congratulation again for this nice software.

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 34974
there is only the very basic C# sample included in the API download pack. I dont think you would have any problems understanding what each call does
I suggest you also look at the various open source plugins as well


begi78

  • Newbie
  • *
  • Posts: 4
Thank you.  It is a good start. How can I add a menu item in the context menu of a track (right click on a track)  ?

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 34974
MB_AddMenuItem to add to the main menu but only the View and the Tools menu are supported
see the tag tools plugin for an example
to add to the main panel when right clicking on a track
context.Main/xxxxxxxxx as the path parameter and null as the command parameter if you dont want to it be a hotkey command as well
to get the selected track(s) use
Library_QueryFiles("domain=SelectedFiles")
again see the tag tools plugin for an example
Last Edit: January 05, 2016, 11:57:15 AM by Steven

begi78

  • Newbie
  • *
  • Posts: 4
Thanks, very good I managed to do what I wanted to do: Update the track number with the 2 first filename characters (if they are digits) and adding it in the context menu :)

Now I would like to remove the new item menu if I close the plugin (in the Close method). I can't see any DeleteMenuItem method. Can you tell me how to do it ?

Thanks.


Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 34974
there is no API method. I suggest you just dispose the context menu item(s)

begi78

  • Newbie
  • *
  • Posts: 4
Hi Steven, sorry, can you tell me how to do it ? Thanks :)

Another thing, I would like to control my Sony Home Cinema (STR 1050) Amplifier with MusicBee. Do you think there is a possibility ? Same for Chromecast ?

Thanks again.
Bertrand.

ricardo278

  • Newbie
  • *
  • Posts: 4
Hey Bertrand,

Thanks a lot for your question. I have the same interest to push some development group or one person finally to make and release the OFFICIAL CHROMECAST PLUGIN.
SUCH AS MUSICBEE GREAT SOFTWARE DOESN'T HAVE IT?