View Full Version : Additional Audio Actions
azmanar
12-05-2007, 03:00 AM
Hi,
There are lots of possibilities in the AMS Audio channels feature.
Therefore, I would like to suggest 3 additional audio actions:
Audio.OnStart()
Audio.OnFinish()
Audio.OnStop()
Thank you.
Can you elaborate these a bit?
Darryl
12-05-2007, 09:21 AM
Yes, I'm having a little trouble understanding what you mean. I say this because what you are suggesting is essentially what the page's "On Audio" event handles. The "e_State" event variable provides the finish, pause, play and stop states, for a particular audio channel.
Dixter
12-06-2007, 01:38 PM
How comes they are not listed in the action wizard? I managed to link the buttons in my project to each items in the listbox by the way, and get it to play them..
But my problem now is to get my player to play the rest of the tracks in a row.., in the mediaplayer plugin, there is a option/action script that will a apply when it`s finished playing a file, named "On Finish". But where and how can we use that without using that plugin ?
It had been cool if u could post a short example on each of those actions ;)
Thanks
Dixter
12-06-2007, 04:02 PM
Ahh i finally made it. Phew this is brain trimming. And it feel so god **** nice when the pieces fit together :D
But a little different method (it does almost exactly the same), if u want ur player/channel, to do something else than silence when a file is done playing, u can use an action like the example under, in the "On Audio" event in ur pagescript, and add the next command script u want to be performed. For example, i used it to select the next track in my listbox and load/play it
if ((e_Channel == CHANNEL_NARRATION) and (e_State == "Finish")) then
--ur next actions here
:yes
vBulletin® v3.7.3, Copyright ©2000-2009, Jelsoft Enterprises Ltd.