CameraSessionConnection

interface CameraSessionConnection

Specifies a single Camera input stream connection streaming into zero or more outputs.

Properties

constraints

constraints: Constraint[]

Constraints specifically for this connection.


initialExposureBias?

optional initialExposureBias: number

Sets the initial exposureBias value for the CameraController.

This value can later be adjusted via CameraController.setExposureBias(...).


initialZoom?

optional initialZoom: number

Sets the initial zoom value for the CameraController.

This value can later be adjusted via CameraController.setZoom(...).


input

The input device of this CameraSessionConnection. This CameraDevice will stream into all given outputs.


onSessionConfigSelected()?

optional onSessionConfigSelected: (config: CameraSessionConfig) => void

A callback that will be called after the given constraints have been fully resolved, and a valid CameraSessionConfig has been constructed.

This is equivalent to calling CameraFactory.resolveConstraints(...) with the input, outputs and constraints listed here.

Discussion

The given config can be used to provide visual feedback in Camera apps where buttons have to be greyed out when they are not supported, e.g. when passing a HDR Constraint but the session didn't end up selecting a CameraSessionConfig.selectedVideoDynamicRange.


outputs

All output configurations that the given input device will stream into.

On this page