In BBj 22.0 and higher, this method plays the sound from a sound file.
|playSoundFile(string filename, boolean loop)
|playSoundFile(string filename, boolean loop, string mime)
|The filename of the audio to play, or "" to stop playing previously specified audio.
|If this boolean value is true, the audio will play in a loop until stopped.
|The BUI client requires an audio MIME type, which can usually be determined automatically from the sound file. If it's unable to automatically determine the MIME type (e.g. "audio/wav"), you can explicitly specify it here.
Mobile browsers only allow sounds to play as a direct result of user action, so this is treated as a no-op in iOS and Android when running in BUI.
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.