The stopsound action can play the sound a second time on iOS devices !
Sample :
playsound(soundID,SOUND_URL,1,stopsoundafter(soundID));
<action name="stopsoundafter">
stopsound(%1);
</action>
The stopsound action can play the sound a second time on iOS devices !
Sample :
playsound(soundID,SOUND_URL,1,stopsoundafter(soundID));
<action name="stopsoundafter">
stopsound(%1);
</action>
Why do you need to stop sound oncomplete ?
It will stop alone : playsound(name, audiofile)
It's a sample to show the issue. Can be used into a generic code.
Issue is on Safari browser : iOS + MacOSX
ok but I still don't understand where you want to go, you stop a sound which is already stopped
This is a generic template which manage sound with loop between infinite and 1, 2, 3 ... times play.
So to avoid many lines of code it will be easier to stop a sound which is already stopped. So the action to stop a stopped sound should be an enter and quick exit into the function. But seems not.
Don’t have an account yet? Register yourself now and be a part of our community!