mobilePlaySoundOnChannel | |||||||||||||
Type | command | ||||||||||||
Dictionary | LCS | ||||||||||||
Library | LiveCode Script | ||||||||||||
Syntax |
| ||||||||||||
Synonyms | iphoneplaysoundonchannel | ||||||||||||
Summary | Plays a sound on a given channel. | ||||||||||||
Introduced | 4.6 | ||||||||||||
OS | ios, android | ||||||||||||
Platforms | mobile | ||||||||||||
Parameters |
| ||||||||||||
Example |
| ||||||||||||
Related | Command: mobileDeleteSoundChannel, mobilePlaySoundOnChannel, mobileSetSoundChannelVolume, mobilePausePlayingOnChannel, mobileStopPlayingOnChannel, mobileResumePlayingOnChannel, iphoneSetAudioCategory Function: mobileSoundChannelVolume, mobileSoundOnChannel, mobileNextSoundOnChannel, mobileSoundChannels, mobileSoundChannelStatus Message: soundFinishedOnChannel | ||||||||||||
Description | Use the mobilePlaySoundOnChannel command to play a sound on a given channel. If a sound channel with the given name doesn't exist a new one is created. When queuing a sound using next, the engine will 'pre-prepare' the sound long before the current sound is played, this ensures minimal latency between the current sound ending and the next one beginning. If an empty string is passed as the sound parameter, the current and scheduled sound on the given channel will be stopped and cleared. When the sound has finished playing naturally (not stopped/replaced) on a given channel, a soundFinishedOnChannel message is sent to the object which played the sound. |