Instance Method

addInput:

Adds a given input to the session.

Declaration

- (void)addInput:(AVCaptureInput *)input;

Parameters

input

An input to add to the session.

Discussion

You can only add an input to a session using this method if canAddInput: returns true. This method throws an exception when invoked and canAddInput(_:) returns false.

You can invoke this method while the session is running.

See Also

Managing Inputs and Outputs

inputs

The capture session’s inputs.

- canAddInput:

Returns a Boolean value that indicates whether a given input can be added to the session.

- removeInput:

Removes a given input.

outputs

The capture session’s outputs.

- canAddOutput:

Returns a Boolean value that indicates whether a given output can be added to the session.

- addOutput:

Adds a given output to the session.

- removeOutput:

Removes a given output.