Type alias AudioConfiguration

AudioConfiguration: { android?: { audioTypeOptions: AndroidAudioTypeOptions; preferredOutputList?: ("speaker" | "earpiece" | "headset" | "bluetooth")[] }; ios?: { 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:

    1. `"bluetooth"
    2. `"headset"``
    3. "speaker"
    4. "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"

Type declaration

  • Optional android?: { audioTypeOptions: AndroidAudioTypeOptions; preferredOutputList?: ("speaker" | "earpiece" | "headset" | "bluetooth")[] }
    • audioTypeOptions: AndroidAudioTypeOptions
    • Optional preferredOutputList?: ("speaker" | "earpiece" | "headset" | "bluetooth")[]
  • Optional ios?: { defaultOutput?: "speaker" | "earpiece" }
    • Optional defaultOutput?: "speaker" | "earpiece"

Generated using TypeDoc