CaptureConnection class

A connection between a specific pair of capture input and capture output objects in a capture session.

Capture inputs have one or more input ports (instances of CaptureInputPort). Capture outputs can accept data from one or more sources (for example, an CaptureMovieFileOutput object accepts both video and audio data).

You can add an CaptureConnection instance to a session using the CaptureSession.addConnection method only if the CaptureSession.canAddConnections includes the connection. When using the CaptureSession.addInput or CaptureSession.addOutput method, the session forms connections automatically between all compatible inputs and outputs. You only need to add connections manually when adding an input or output with no connections. You can also use connections to enable or disable the flow of data from a given input or to a given output.

Annotations
  • @Reference('av_foundation/av_foundation/CaptureConnection')

Constructors

CaptureConnection(List<CaptureInputPort> inputPorts, CaptureOutput output)
Initializes a capture connection to describe a connection between the specified input ports and the specified output.
CaptureConnection.withoutCreate(List<CaptureInputPort> inputPorts, CaptureOutput output)
Constructs a Dart CaptureConnection without creating the Objective-C object.

Properties

hashCode int
The hash code for this object.
no setterinherited
inputPorts List<CaptureInputPort>
The connection’s input ports.
final
output CaptureOutput
The connection’s output port.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

isVideoMirroringSupported() Future<bool>
A Boolean value that indicates whether the connection supports video mirroring.
isVideoOrientationSupported() Future<bool>
A Boolean value that indicates whether the connection supports changing the orientation of the video.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setAutomaticallyAdjustsVideoMirroring({required bool adjust}) Future<void>
A Boolean value that indicates whether the value of videoMirrored can change based on configuration of the session.
setVideoMirrored({required bool mirrored}) Future<void>
A Boolean value that indicates whether the video flowing through the connection should be mirrored about its vertical axis.
setVideoOrientation(int orientation) Future<void>
Indicates whether to rotate the video flowing through the connection to a given orientation.
toString() String
A string representation of this object.
inherited

Operators

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