CameraSessionConnection
interface CameraSessionConnectionSpecifies a single Camera input stream connection streaming into zero or more outputs.
Properties
constraints
constraints: Constraint[]Constraints specifically for this connection.
initialExposureBias?
optional initialExposureBias: numberSets the initial exposureBias
value for the CameraController.
This value can later be adjusted
via CameraController.setExposureBias(...).
initialZoom?
optional initialZoom: numberSets the initial zoom
value for the CameraController.
This value can later be adjusted
via CameraController.setZoom(...).
input
input: CameraDeviceThe input device of this CameraSessionConnection.
This CameraDevice will stream into all given
outputs.
onSessionConfigSelected()?
optional onSessionConfigSelected: (config: CameraSessionConfig) => voidA 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
outputs: CameraOutputConfiguration[]All output configurations that the given input
device will stream into.