Skip to main content

CameraManagerStore

@microblink/camera-manager


@microblink/camera-manager / CameraManagerStore

Type Alias: CameraManagerStore

CameraManagerStore = object

The camera manager store.

Properties

cameras

cameras: Camera[]

The list of cameras that are available to the user.


errorState?

optional errorState: Error | CameraError

If the Camera manager has encountered an error, this will be set to the error.


facingFilter?

optional facingFilter: FacingMode[]

The facing mode filter that will be used to filter the available cameras. Can be a single facing mode or an array of facing modes.


isQueryingCameras

isQueryingCameras: boolean

Indicates if camera list is currently being queried.


isSwappingCamera

isSwappingCamera: boolean

Indicates if the camera is currently being swapped.


mirrorX

mirrorX: boolean

Indicates if the captured frames will be mirrored horizontally


playbackState

playbackState: PlaybackState

Capturing / playing / idle.


selectedCamera?

optional selectedCamera: Camera

The currently selected camera.


videoElement?

optional videoElement: HTMLVideoElement

The video element that will display the camera stream.