DeviceStore

abstract class DeviceStore

Device management class, used to handle anchor camera, microphone and other business.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Singleton object

Properties

Link copied to clipboard
abstract val deviceState: DeviceState

State {@link DeviceState}

Functions

Link copied to clipboard
abstract fun closeLocalCamera()

Close local camera

Link copied to clipboard
abstract fun closeLocalMicrophone()

Close local microphone

Link copied to clipboard
abstract fun openLocalCamera(isFront: Boolean, completion: CompletionHandler?)

Open local camera

Link copied to clipboard
abstract fun openLocalMicrophone(completion: CompletionHandler?)

Open local microphone

Link copied to clipboard
abstract fun reset()

Reset to default state

Link copied to clipboard
abstract fun setAudioRoute(audioRoute: AudioRoute)

Set audio route

Link copied to clipboard
abstract fun setCaptureVolume(volume: Int)

Set capture volume

Link copied to clipboard
abstract fun setOutputVolume(volume: Int)

Set maximum output volume

Link copied to clipboard
abstract fun startScreenShare()

Start screen sharing

Link copied to clipboard
abstract fun stopScreenShare()

Stop screen capture

Link copied to clipboard
abstract fun switchCamera(isFront: Boolean)

Switch camera

Link copied to clipboard
abstract fun switchMirror(mirrorType: MirrorType)

Switch mirror status

Link copied to clipboard
abstract fun updateVideoQuality(quality: VideoQuality)

Update video quality