AudioSwitchHandler

class AudioSwitchHandler(context: Context, preferredDeviceList: List<Class<out AudioDevice>>, audioDeviceChangeListener: AudioDeviceChangeListener) : AudioHandler

Deprecated

Replaced by AudioSwitchDecorator + AudioSwitchController which provide coroutine-backed audio handling

Replace with

AudioSwitchDecorator(AudioSwitchController(context, preferredDeviceList, audioDeviceChangeListener))

TODO Remove this class on v2

Constructors

Link copied to clipboard
constructor(context: Context, preferredDeviceList: List<Class<out AudioDevice>>, audioDeviceChangeListener: AudioDeviceChangeListener)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun selectDevice(audioDevice: AudioDevice?)
Link copied to clipboard
open override fun start()

Called when a room is started.

Link copied to clipboard
open override fun stop()

Called when a room is disconnected.