Type alias AudioConfiguration
Audio
Configuration
: { android
?: { audioTypeOptions
: AndroidAudioTypeOptions; preferredOutputList
?: ("speaker" | "earpiece" | "headset" | "bluetooth")[] }; ios
?: { defaultOutput
?: "speaker" | "earpiece" } }
Type declaration
-
Optional
android?: { audioTypeOptions: AndroidAudioTypeOptions; preferredOutputList?: ("speaker" | "earpiece" | "headset" | "bluetooth")[] }
-
-
Optional
preferredOutputList?: ("speaker" | "earpiece" | "headset" | "bluetooth")[]
-
Optional
ios?: { defaultOutput?: "speaker" | "earpiece" }
-
Optional
defaultOutput?: "speaker" | "earpiece"
Configuration for the underlying AudioSession.
Android specific options:
preferredOutputList - The preferred order in which to automatically select an audio output. This is ignored when an output is manually selected with selectAudioOutput.
By default, the order is set to:
"speaker"
"earpiece"
audioTypeOptions - An AndroidAudioTypeOptions object which provides the audio options to use on Android.
See AndroidAudioTypePresets for pre-configured values.
NOTE: If
audioTypeOptions
is set, this must also be reflected in your android MainApplication setup.iOS
defaultOutput - The default preferred output to use when a wired headset or bluetooth output is unavailable.
By default, this is set to
"speaker"