/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
Name | Summary |
---|---|
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
Name | Summary |
---|---|
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
Name | Summary |
---|---|
audioDevices | [androidJvm] private open val audioDevices: Set<HMSAudioManager.AudioDevice> |
defaultAudioDevice | [androidJvm] private open var defaultAudioDevice: HMSAudioManager.AudioDevice |
isStarted | [androidJvm] private open val isStarted: Boolean |
selectedAudioDevice | [androidJvm] private open val selectedAudioDevice: HMSAudioManager.AudioDevice |