CameraProps
interface CameraPropsExtended by
Properties
cameraExtension?
optional cameraExtension: CameraExtensioncolorSpace?
optional colorSpace: ColorSpace | "auto"depthFormat?
optional depthFormat: CameraFormat | nulldevice
device:
| CameraPosition
| CameraDeviceenableDistortionCorrection?
optional enableDistortionCorrection: booleanenableLowLightBoost?
optional enableLowLightBoost: booleanenableMultiCamSupport?
optional enableMultiCamSupport: booleanenableSmoothAutoFocus?
optional enableSmoothAutoFocus: booleanenableVideoHDR?
optional enableVideoHDR: booleanformat?
optional format: CameraFormatfps?
optional fps: RangegetInitialExposureBias()?
optional getInitialExposureBias: () => number | undefinedgetInitialZoom()?
optional getInitialZoom: () => number | undefinedisActive
isActive: booleanmirrorMode?
optional mirrorMode: MirrorModeonConfigured()?
optional onConfigured: () => voidCalled whenever the CameraSession
has been configured with new connections via
configure(...)
and connections to the individual outputs are formed.
This is a good place to check output
capabilities, such as CameraVideoOutput.getSupportedVideoCodecs()
onError()?
optional onError: (error: Error) => voidCalled whenever the CameraSession
has encountered an error.
onInterruptionEnded()?
optional onInterruptionEnded: () => voidCalled when a previous interruption
has ended and the CameraSession
is running uninterrupted again.
onInterruptionStarted()?
optional onInterruptionStarted: (interruption: InterruptionReason) => voidCalled whenever the CameraSession
has encountered an interruption of the given
InterruptionReason.
Interruptions are temporarily.
onStarted()?
optional onStarted: () => voidCalled when the CameraSession
has been started.
onStopped()?
optional onStopped: () => voidCalled when the CameraSession
has been stopped.
orientationSource?
optional orientationSource: OrientationSource | "custom"Set a desired OrientationSource
for automatically applying Orientation
to all outputs, or 'custom' if you
prefer to manually specify Orientation
yourself.
outputs?
optional outputs: CameraOutput[]videoStabilizationMode?
optional videoStabilizationMode: VideoStabilizationMode