'change' callback not registering when repeating song |
'change' callback not registering when repeating song |
stoff3 |
Mar 10 2009, 03:00 AM
Post
#1
|
Newbie Group: Members Posts: 5 Joined: 21-February 09 Member No.: 684 |
Hi,
It appears that AMIP doesn't run the 'change' callback when you play the same song twice or more in a row. Eg: Play song 1, it gets run. Play song 2, it gets run. Play song 2 again, it doesn't run. 2-1-2 works of course, but it doesn't recognize repeats. Any workarounds for this if it's the intended behaviour, if not, is it possible to get a fix out? Thanks in advance. |
Serge |
Mar 10 2009, 06:54 AM
Post
#2
|
AMIP Developer Group: Root Admin Posts: 935 Joined: 12-March 06 Member No.: 1 |
Change means the new song is playing, so it's by design. AMIP cannot detect the songs with the same title being played one after another, it will think that it's the same song.
In theory it's possible to add another callback called Replay which will trigger when the song timer goes from the end of the song to the beginning of the same song. I can add such callback in the future AMIP versions but I doubt that many users will use it. |
stoff3 |
Mar 10 2009, 10:22 AM
Post
#3
|
Newbie Group: Members Posts: 5 Joined: 21-February 09 Member No.: 684 |
Change means the new song is playing, so it's by design. AMIP cannot detect the songs with the same title being played one after another, it will think that it's the same song. In theory it's possible to add another callback called Replay which will trigger when the song timer goes from the end of the song to the beginning of the same song. I can add such callback in the future AMIP versions but I doubt that many users will use it. I see. The reason I ask is that I have AMIP set up to invoke a script which logs plays to a database, but it obviously doesn't log repeated plays as it is now. If such a callback could be added it would be great, but I understand if you prioritize other matters. Thanks for clearing this all up. |