Contents

outputSettings(for:)

Returns the settings the output uses to encode media from the specified connection.

Declaration

func outputSettings(for connection: AVCaptureConnection) -> [String : Any]

Parameters

  • connection:

    The connection delivering the media to encode.

Return Value

A dictionary of output settings.

Discussion

If the returned value is an empty dictionary, the format of the media from the connection isn’t changed before writing to the file.

If you call setOutputSettings(_:for:) with a nil dictionary, this method returns a non-nil dictionary that reflects the settings used by the capture session’s sessionPreset value.

See Also

Managing output settings