Tom Weilenmann
2003-11-12, 10:30
Hi
Can somebody explain me a detail on the callback function of the SliMP3::Command::execute.
I'm calling the above function with the following line of code:
SliMP3::Command::execute($client, ['playlist','play',$filename],\&afterMsgPlay, [$client]);
My problem is now that the callback function is executed immediately after the MP3-file starts playing. Is this normal?
I need a callback function which is only executed when the player reaches the end of the MP3-file. Is there a nice way to achieve this goal?
Thanks
Tom
Can somebody explain me a detail on the callback function of the SliMP3::Command::execute.
I'm calling the above function with the following line of code:
SliMP3::Command::execute($client, ['playlist','play',$filename],\&afterMsgPlay, [$client]);
My problem is now that the callback function is executed immediately after the MP3-file starts playing. Is this normal?
I need a callback function which is only executed when the player reaches the end of the MP3-file. Is there a nice way to achieve this goal?
Thanks
Tom