| java.lang.Object | |
| ↳ | com.nexmo.sdk.conversation.client.audio.AppRTCAudioManager |
AppRTCAudioManager manages all audio related parts of the AppRTC demo.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| enum | AppRTCAudioManager.AudioDevice | AudioDevice is the names of possible audio devices that we currently support. | |||||||||
| interface | AppRTCAudioManager.AudioManagerEvents | Selected audio device change event. | |||||||||
| enum | AppRTCAudioManager.AudioManagerState | AudioManager state. | |||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Set<AppRTCAudioManager.AudioDevice> |
getAudioDevices()
Returns current set of available/selectable audio devices.
| ||||||||||
| AppRTCAudioManager.AudioDevice |
getSelectedAudioDevice()
Returns the currently selected audio device.
| ||||||||||
| void |
selectAudioDevice(AppRTCAudioManager.AudioDevice device)
Changes selection of the currently active audio device.
| ||||||||||
| void |
setDefaultAudioDevice(AppRTCAudioManager.AudioDevice defaultDevice)
Changes default audio device.
| ||||||||||
| void | start(AppRTCAudioManager.AudioManagerEvents audioManagerEvents) | ||||||||||
| void | stop() | ||||||||||
| void |
updateAudioDeviceState()
Updates list of possible audio devices and make new device selection.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Returns current set of available/selectable audio devices.
Returns the currently selected audio device.
Changes selection of the currently active audio device.
Changes default audio device. TODO(henrika): add usage of this method in the AppRTCMobile client.
Updates list of possible audio devices and make new device selection. TODO(henrika): add unit test to verify all state transitions.