Output when dioPlaybackMode is set toĪudioPlaybackMode.VOICE.
By default, smartphones use the phone earpiece for audio Toggles the speakerphone when the device is in voice mode. Implementation public static function get bufferTime(): int public static function set bufferTime(value: int): void That is passed to the Sound.load() method. Or set the default of the buffer time specified in the SoundLoaderContext object The value of SoundMixer.bufferTime cannot override Sound objects (that is, Sound objects created in ActionScript). The SoundMixer.bufferTime property only affects the buffer timeįor embedded streaming sounds in a SWF and is independent of dynamically created
In an AIR application, code can access data in sound files from any source. Unless you implement a cross-domain policy file. The data in a loaded sound, including its buffer time,Ĭannot be accessed by code in a file that is in a different domain Unless you implement a cross-domain policy file.įor more information about security and sound, see the Sound class description. The data in a loaded sound, including its buffer time,Ĭannot be accessed by a SWF file that is in a different domain The number of seconds to preload an embedded streaming sound into a buffer before it starts Implementation public static function get audioPlaybackMode(): String public static function set audioPlaybackMode(value: String): void Throws The default value is AudioPlaybackMode.MEDIA. When you change audio play mode on iOS, mative apps playing music pause briefly. To allow other applications to play in media mode.
Make the minimum usage of AudioPlaybackMode.VOICE mode, and try to switch toĪudioPlaybackMode.MEDIA mode as soon as you can after the voice call ends Other applications cannot change it to AudioPlaybackMode.MEDIA. Note On iOS, if one application sets audioPlaybackMode=AudioPlaybackMode.VOICE,
Valid values for this property are defined in the AudioPlaybackMode class.
Inĭesktop and TV environments, no functional difference exists between audio playback modes. This property sets sound priorities and defaults according to platform idioms. Specifies the audio playback mode of all Sound objects.