DeviceController

DeviceController keeps track of the devices being used for audio device (e.g. built-in speaker), video input (e.g. camera)). The list functions return MediaDevice objects. Changes in device availability are broadcast to any registered DeviceChangeObserver.

Inheritors

Functions

Link copied to clipboard

Adds an observer to receive callbacks about device changes.

Link copied to clipboard
abstract fun chooseAudioDevice(mediaDevice: MediaDevice)

Selects an audio device to use.

Link copied to clipboard

Get the active input/output audio device in the meeting, return null if there isn't any.

Link copied to clipboard
abstract fun getActiveCamera(): MediaDevice?

Get the currently active camera, if any. This will return null if using a custom source, e.g. one passed in via AudioVideoControllerFacade.startLocalVideo

Link copied to clipboard

Lists currently available audio devices.

Link copied to clipboard

Removes an observer to stop receiving callbacks about device changes.

Link copied to clipboard
abstract fun switchCamera()

Switches the currently active camera. This will no-op if using a custom source, e.g. one passed in via AudioVideoControllerFacade.startLocalVideo