-
Notifications
You must be signed in to change notification settings - Fork 3
AudioDeviceManager
Lejla Solak edited this page Jun 12, 2023
·
1 revision
audioDeviceEventListener: AudioDeviceEventListener
activeDevice: AudioDevice
availableAudioDevices: [AudioDevice]
selectAudioDevice(_ audioDevice: AudioDevice)
Writable AudioDeviceEventListener property representing the current listener which will receive new audio device events.
let infobipRTC: InfobipRTC = getInfobipRTCInstance()
if let call = infobipRTC.getActiveCall() {
call.audioDeviceManager.audioDeviceEventListener = createAudioDeviceEventListener()
}
Read-only AudioDevice property representing the currently used audio device. Can be nil
during call
initialization.
let infobipRTC: InfobipRTC = getInfobipRTCInstance()
if let call = infobipRTC.getActiveCall() {
let activeDevice = call.audioDeviceManager.activeDevice
}
Read-only [AudioDevice] property representing the list of currently available audio devices.
let infobipRTC: InfobipRTC = getInfobipRTCInstance()
if let call = infobipRTC.getActiveCall() {
let availableDevices = call.audioDeviceManager.availableAudioDevices
}
Changes the currently active audio device to the specified audio device.
-
audioDevice
:AudioDevice
- The audio device to be set as active.
N/A
let infobipRTC: InfobipRTC = getInfobipRTCInstance()
if let call = infobipRTC.getActiveCall() {
let availableDevices = call.audioDeviceManager.availableAudioDevices
try call.audioDeviceManager.selectAudioDevice(availableDevices.first!)
}