StaticconfigureStaticgetGets the available audio outputs for use with selectAudioOutput.
startAudioSession must be called prior to using this method.
For Android, will return if available:
For iOS, due to OS limitations, the only available types are:
See also showAudioRoutePicker to display a route picker that
can choose between other audio devices (i.e. headset/bluetooth/airplay),
or use a library like react-native-avroutepicker for a native platform
control.
the available audio output types
StaticselectSelect the provided audio output if available.
startAudioSession must be called prior to using this method.
A deviceId retrieved from getAudioOutputs
StaticsetDirectly change the AVAudioSession category/mode.
The configuration to use. Null values will be omitted and the existing values will be unchanged.
StaticsetSet default audio track volume when new tracks are subscribed. Does not affect any existing tracks.
A number between 0.0 and 1.0, where 0.0 represents 0% volume and 1.0 represents full volume.
StaticshowiOS only, requires iOS 11+.
Displays an AVRoutePickerView for the user to choose their audio output.
StaticstartStarts an AudioSession.
StaticstopStops the existing AudioSession.
Applies the provided audio configuration to the underlying AudioSession.
Must be called prior to connecting to a Room for the configuration to apply correctly.
See also
setupIOSAudioManagementfor automatic configuration of iOS audio options.