/lib/live.hms.video.audio/HMSAudioManager

HMSAudioManager

[androidJvm]\ open class HMSAudioManager

HMSAudioManager manages all audio related parts of the HMS demo.

Constructors

HMSAudioManager[androidJvm]
@MainThread()
open fun HMSAudioManager(context: Context)

Types

NameSummary
AudioDevice[androidJvm]
enum AudioDevice
AudioDevice is the names of possible audio devices that we currently support.
AudioManagerEvents[androidJvm]
interface AudioManagerEvents
Selected audio device change event.
AudioManagerState[androidJvm]
enum AudioManagerState
AudioManager state.

Functions

NameSummary
addAudioFocusChangeCallback[androidJvm]
open fun addAudioFocusChangeCallback(callback: AudioManagerFocusChangeCallbacks)
removeAudioFocusChangeCallback[androidJvm]
open fun removeAudioFocusChangeCallback(callback: AudioManagerFocusChangeCallbacks)
selectAudioDevice[androidJvm]
@MainThread()
open fun selectAudioDevice(device: HMSAudioManager.AudioDevice)
Changes selection of the currently active audio device.
start[androidJvm]
@MainThread()
open fun start(audioManagerEvents: HMSAudioManager.AudioManagerEvents)
stop[androidJvm]
@MainThread()
open fun stop()
updateAudioDeviceState[androidJvm]
@MainThread()
open fun updateAudioDeviceState()
Updates list of possible audio devices and make new device selection.

Properties