Player.onTrackChange() does not behave as specified

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

Player.onTrackChange() does not behave as specified

Postby SilverEagle » 11. Feb 10, 14:13

Hi Team,

The doc for Player.onTrackChange() says "If you want to be informed on changes affecting the player's queue, please set this property to a callback function.", but if you add/delete something the callback does not fire.

I know the doc says 'affecting the queue' while the functionname suggest 'affecting the current track', so I can image the doc being wrong here. But in that case could we then get an additional Player.onQueueChange() callback? ;-)

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: Player.onTrackChange() does not behave as specified

Postby Service-Team » 11. Feb 10, 20:15

You are right, the documentation seems to be wrong here. We will check this. Thank you very much.

Best regards,
Your Silverjuke-Team


[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”