DeviceStore class abstract

Device related interfaces, operating microphone, camera, etc.

DeviceStore Device management class for handling host camera, microphone and other business. DeviceStore provides a comprehensive set of APIs to manage audio and video devices, including microphone, camera and screen sharing features.

Key Features

  • Microphone Management:Open/close microphone, set capture volume and output volume
  • Camera Management:Open/close camera, switch front/rear camera, set mirror and video quality
  • Audio Route:Switch between speaker and earpiece
  • Screen Sharing:Start and stop screen sharing feature
  • Network Status:Real-time monitoring of network quality information

Note: Device state updates are delivered through the state publisher. Subscribe to it to receive real-time updates about microphone, camera, network and other states.

Topics

Getting Instance

Observing State

  • state : Reactive state containing microphone, camera, network and other device states

Microphone Operations

Audio Route

Camera Operations

Screen Sharing

Reset

See Also

Constructors

DeviceStore()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state DeviceState
State
no setter

Methods

closeLocalCamera() → void
Close local camera
closeLocalMicrophone() → void
Close local microphone
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openLocalCamera(bool isFront) Future<CompletionHandler>
Open local camera
openLocalMicrophone() Future<CompletionHandler>
Open local microphone
reset() → void
Reset to default state
setAudioRoute(AudioRoute route) → void
Set audio route
setCaptureVolume(int volume) → void
Set capture volume
setFocus(DeviceFocusOwner owner) → void
setOutputVolume(int volume) → void
Set maximum output volume
startScreenShare() → void
Start screen sharing
stopScreenShare() → void
Stop screen capture
switchCamera(bool isFront) → void
Switch camera
switchMirror(MirrorType mirrorType) → void
Switch mirror state
toString() String
A string representation of this object.
inherited
updateVideoQuality(VideoQuality quality) → void
Update video quality

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

shared DeviceStore
no setter