Package live.hms.video.audio
Class HMSAudioManagerLegacy
-
- All Implemented Interfaces:
-
live.hms.video.audio.HMSAudioManager
public class HMSAudioManagerLegacy implements HMSAudioManager
HMSAudioManager manages all audio related parts of the HMS demo.
-
-
Field Summary
Fields Modifier and Type Field Description public booleanisStartedpublic HMSAudioManager.AudioDeviceselectedAudioDevicepublic Set<HMSAudioManager.AudioDevice>audioDevices
-
Constructor Summary
Constructors Constructor Description HMSAudioManagerLegacy(Context context, AnalyticsEventsService analytics, HMSAudioTrackSettings hmsAudioTrackSettings, IErrorListener errorListener, HMSAudioManager.AudioManagerDeviceChangeListener audioManagerDeviceChangeListener)
-
Method Summary
Modifier and Type Method Description booleanisStarted()AudioManager state. HMSAudioManager.AudioDevicegetSelectedAudioDevice()Returns the currently selected audio device. Set<HMSAudioManager.AudioDevice>getAudioDevices()Returns current set of available/selectable audio devices. voidaddAudioFocusChangeCallback(AudioManagerFocusChangeCallbacks callback)voidremoveAudioFocusChangeCallback(AudioManagerFocusChangeCallbacks callback)voidstart()voidstop()voidselectAudioDevice(HMSAudioManager.AudioDevice device)Changes selection of the currently active audio device. List<HMSAudioDeviceInfo>getAudioDevicesInfoList()voidsetAudioMode(int audioMode)Manual [enable = true] media volume/ [disable = false] in-call volume voidupdateAudioDeviceState()Updates list of possible audio devices and make new device selection. -
-
Constructor Detail
-
HMSAudioManagerLegacy
HMSAudioManagerLegacy(Context context, AnalyticsEventsService analytics, HMSAudioTrackSettings hmsAudioTrackSettings, IErrorListener errorListener, HMSAudioManager.AudioManagerDeviceChangeListener audioManagerDeviceChangeListener)
-
-
Method Detail
-
isStarted
boolean isStarted()
AudioManager state.
-
getSelectedAudioDevice
@MainThread() HMSAudioManager.AudioDevice getSelectedAudioDevice()
Returns the currently selected audio device.
-
getAudioDevices
@MainThread() Set<HMSAudioManager.AudioDevice> getAudioDevices()
Returns current set of available/selectable audio devices.
-
addAudioFocusChangeCallback
void addAudioFocusChangeCallback(AudioManagerFocusChangeCallbacks callback)
-
removeAudioFocusChangeCallback
void removeAudioFocusChangeCallback(AudioManagerFocusChangeCallbacks callback)
-
start
@MainThread() void start()
-
stop
@MainThread() void stop()
-
selectAudioDevice
@MainThread() void selectAudioDevice(HMSAudioManager.AudioDevice device)
Changes selection of the currently active audio device.
-
getAudioDevicesInfoList
@NonNull() List<HMSAudioDeviceInfo> getAudioDevicesInfoList()
-
setAudioMode
@MainThread() void setAudioMode(int audioMode)
Manual [enable = true] media volume/ [disable = false] in-call volume
-
updateAudioDeviceState
@MainThread() void updateAudioDeviceState()
Updates list of possible audio devices and make new device selection. TODO: add unit test to verify all state transitions.
-
-
-
-