Main > Audio/Jukebox/MP3 Forum
Plugins: Document API for JukePlugSys
AussieJuke:
--- Quote from: Space Fractal on March 21, 2008, 06:09:21 am ---This idea came from the other thread about Idea:.
WaitTimeInMS=Juke_Command("JUKE_SONG_FINISH","")
A song is played finish and it wait this number of MS, before it start the next song.
This mean a Sound FX, ads or other can been played before the next song from a plugin.
--- End quote ---
This works when there's only one plugin, but what happens when there's more than one?
Each of the plugins could return a different value. Which one does the juke app use? The largest?
Space Fractal:
Typical this should only been needed by one plugin.
But you right.
If two plugins return a value, the software should of course use the largest value. If a plugin return a 0 and there is allready a ongoing timer, it should not reset that value.
Mightbeen this is not a good idea and should been dropped. Other idea doing a addation?
I guess the filename addation (first idea) to these 4 commands is a good idea throuch.
AussieJuke:
The filename addition is a good idea and won't break anything.
I just added it to Aussie Juke. Very easy. Only a few lines of code.
Using the return value of Juke_Command("JUKE_SONG_FINISH","") will require more thought.
Space Fractal:
the major problem is what it would do if a user press a key to try to start a new song, pause ETC? I think the return value should been dropped, since that have some pitfalls and not easy to mainstream. Instead this should up to the jukebox author, if they want to add this feature them self.
I add the filename addation to my software, I hope Uncle'T like that idea. In MultiJuke this was only required 3 code lines for all 3 commands. Theses is:
JUKE_SONGLIST_ADD_SONG
JUKE_SONG_START
JUKE_SONG_NEXT
When I got a green light from UncleT (if it ok with him) I change the first post.
AussieJuke:
I already have an option in Aussie Juke to wait for n seconds between queued songs.
If the ads / FX were all the same length that would work.
The only other way is for the plugin to signal the juke app to stop/pause as soon as
soon as the song finished. It would then have to restart the play queue when it had
finished playing the ad / FX. This would be hard to implement in existing juke apps.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version