soundFinishedOnChannel

Typemessage
DictionaryLCS
LibraryLiveCode Script
Syntax
soundFinishedOnChannel <pChannel>, <pSound>
Summary

Sent to the object which played a sound when a sound finishes playing.

Introduced4.6
OSios, android
Platformsmobile
Parameters
NameTypeDescription
pChannel

The name of the channel the sound was played on.

pSound

The sound file that was played.

Example
soundFinishedOnChannel theChannel, theSound
soundFinishedOnChannel "queued", "sounds/warning.mp4"
on soundFinishedOnChannel pChannel, pSound
   put pChannel into field "channel"
   put pSound into field "finished sound"
end soundFinishedOnChannel
RelatedCommand: mobileDeleteSoundChannel, mobilePlaySoundOnChannel, mobileSetSoundChannelVolume, mobilePausePlayingOnChannel, mobileStopPlayingOnChannel, mobileResumePlayingOnChannel
Function: mobileSoundChannelVolume, mobileSoundOnChannel, mobileNextSoundOnChannel, mobileSoundChannels, mobileSoundChannelStatus
Description

Handle the soundFinishedOnChannel message if you want to perform a task or take an action when a sound finishes playing.

When a sound has finished playing naturally (not stopped or replaced) on a given channel the soundFinishedOnChannel message is sent to the object which played the sound.