iphoneSetAudioCategory

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
iphoneSetAudioCategory <category>
Summary

Sets the category identifier for an audio session.

Introduced5.5.3
OSios
Platformsmobile
Parameters
NameTypeDescription
category

The audio category to use.

"ambient": Audio from other applications can mix into the sound of the running application. Audio is silenced by locking the screen or setting the Ring/Silent switch to silent.
"solo ambient": Audio from other applications is silenced when the application is running. Audio is silenced by locking the screen or setting the Ring/Silent switch to silent. This is the default mode.
"playback": Audio from other applications is silenced when the application is running. Audio is not silenced by locking the screen or setting the Ring/Silent switch to silent.
"record": Silences all playback and allows sound to be recorded, even if the screen is locked.
"play and record": Audio from other applications is silenced when the application is running. Audio is not silenced by locking the screen or setting the Ring/Silent switch to silent. Use this feature for recording and playing sound, such as in VOIP applications.
"audio processing": Audio playback and recording is disabled from all applications.
Example
iphoneSetAudioCategory "ambient"
iphoneSetAudioCategory "play and record"
RelatedCommand: play, play file, mobilePlaySoundOnChannel
Description

Use the iphoneSetAudioCategory command to set the audio category identifier for the audio session.

The iphoneSetAudioCatagory command allows the current audio session category to be set and changed while the application is running. This command should be used if the application sound output is to be muted, played on its own or mixed with the sound from other applications.

Tagsmultimedia