Main > Audio/Jukebox/MP3 Forum
Plugins: Document API for JukePlugSys
Space Fractal:
The current list is now locked, but I can still add new commands.
I diddent add a Juke_Config(), because it might lock the whole software, if some software use OpenGL or DirectX as graphics or such that. But I recommered lugin writes to use the same exe file names as dll itself, so they can been invoked from the software it self that way.
EDIT: Updated the SDK how the plugin writers should place exe file, so they can been found by jukebox software. Hope this method is ok, Barcrest?
unclet:
--- Quote ---in plugindir/Commands.txt you should set these for above example:
--- End quote ---
I am just not that crazy about using a commands.txt file at all ......
Space Fractal:
It just to make sure the plugin known the command when the user want to configuere it when config is invoked. I'm pretty sure many plugin writers would take advance of the commands.txt in thier config screens...
Otherwice it would up to the plugin writer to control which default command sets that would been used, and hope it exists in JB software.....
Barry Barcrest:
If there is no config that can be called from the DLL it seems a bit pointless to me. When you call the config why would it lock the software? It will just display it's config screen on a windows forum wouldn't it. The jukesofware needs to nothing other than pass the call to display the config.
I also don't like the command.txt idea it's all too messy, just like the config being a seperate exe. To be honest i think all i will add support for is song start and end, attract mode start and end and config. I don't see ANY need for anything else as that will allow most things to be handled for plugin authors unless they specifically ask for anything. I think the song start i will just pass the filename across. The plugin authors can then calculate track legnth and read the tag info should they want to.
If that isn't the way you guys are going thats fine you don't have to go with my method. Asi have sadi before i watch what happens here but that is all i see myself implimenting.
Space Fractal:
about commands.txt:
EDITED THIS TEXT AWAY, wich can been more confuction, I really sorry.
Here is the list that would constain in my commands.txt (which is not even pretty big) which can been remotly tracked by a plugin (status numbers like MOVE_UP, 0 is not really needed):
--- Code: ---MOVE_UP
MOVE_DOWN
MOVE_LEFT
MOVE_RIGHT
PAGE_UP
PAGE_DOWN
LETTER_UP
LETTER_DOWN
ACTION_BUTTON_1
ACTION_BUTTON_2
ACTION_BUTTON_3
ACTION_BUTTON_4
LOOP
HOME
PAUSE_PLAY
STOP
SKIP
QUIT
LIBRARY_1
LIBRARY_2
LIBRARY_3
LIBRARY_4
COIN_INSERT
COIN_PAID
SCREEN_SAVER_BLANK
SCREEN_SAVER_NORMAL
OK
PARENT
CLEAR
DELETE
0
1
2
3
4
5
6
7
8
9
--- End code ---
which commands do other use?
I have planning to create a Network Virtual Remote Controller as plugin to been working with all software and with full command list. Hence I need the full commmand list. You known I might write a plugin or two. Hmm? status ain the command lines is not needed, hence I remove them. Now just a command list would suit my plugin I have in a planning.
Otherwice only ACTION_BUTTON commands need some value feedback to the plugin suit a ledwiz plugin.
attract mode start can been used as a command (ATRRACT_MODE).
I dont think the plugin writers would want to read tags from 10 defficent of file formats, since that is is just a double work, if it just for use with LCD output. A Jukebox Software normally allready have tagged them, and sending song info is also MUCH faster than reading the tags again (and not all software actuelly use tagging).
I only added the tag reponse command to suit your idea, if you want to move all tagging to a plugin (can also been good for UncleT as well, if a tag plugin was wrote, so he can add tag support). The tag plugin is only for database init, not in normal use.
If you need to resumbit a large queue due to PlayNow and PlayNext, it would take quite a while for the plugin reading tags again.....
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version