Wishlist: pre-queueing hook & karaoke detect

The forum for designers and developers.
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
SilverEagle
Posts: 713
Joined: 30. Sep 08, 14:00
Location: Netherlands
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Wishlist: pre-queueing hook & karaoke detect

Postby SilverEagle » 2. Mar 09, 13:39

Hi Team,

Two for the scripting wishlist:

1) A player.preQueueAdded or something like that, which sets a user scriptfunction called before any track is queued. If the userfunc returns false, the track will not be queued.

This gives support both fancy queueing messages and and for additional tests before queueing like for creditcounts used depending on song characteristics.

2) An API to detect if a given URL is a karaoke track.

SilverEagle

User avatar
Service-Team
Posts: 2448
Joined: 7. Dec 04, 04:48
Location: Germany
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Wishlist: pre-queueing hook & karaoke detect

Postby Service-Team » 2. Mar 09, 14:35

Hello SilverEagle,

sth. like preQueueAdded sounds useful, we will value your idea.

Regarding point 2) - well, for now, it should be possible if a *.cdg or *.lrc file exists beside the *.mp3 file.

Best regards,
Your Silverjuke-Team

SilverEagle
Posts: 713
Joined: 30. Sep 08, 14:00
Location: Netherlands
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Wishlist: pre-queueing hook & karaoke detect

Postby SilverEagle » 2. Mar 09, 14:43

Service-Team wrote:
> Regarding point 2) - well, for now, it should be
> possible if a *.cdg or *.lrc file exists beside
> the *.mp3 file.

I already went that route once. What I forgot to mention in my opening post, is that I'd like to have it implemented in such a way that it is also possible to incorporate it in a musicsearch.

I seems to me karaoke can be a _very_ important criteria for a party-music selection. I know you can put all karaoke tracks together in a seperate part of a directorytree and base the music selection on partial filename, but seeing there is already an unused karaoke field in the database, why not make it a bit more formal.

SilverEagle

munsing
Posts: 42
Joined: 24. Mar 11, 22:38
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Wishlist: pre-queueing hook & karaoke detect

Postby munsing » 28. Mar 11, 18:35

This would be wonderful!


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “Developer Network”