Platforms to show: All Mac Windows Linux Cross-Platform
Back to AVCaptureConnectionMBS class.
AVCaptureConnectionMBS.audioChannels as AVCaptureAudioChannelMBS()
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
This property is only applicable to connections involving audio.
AVCaptureConnectionMBS.Constructor(port as AVCaptureInputPortMBS, layer as AVCaptureVideoPreviewLayerMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
port: An AVCaptureInputPort object associated with an AVCaptureInput object.
layer: An AVCaptureVideoPreviewLayer object.
Returns a capture connection describing a connection between the port and layer.
You can add the connection returned by this method to an AVCaptureSession instance using addConnection.
When using addInput or addOutput, connections are automatically formed between all compatible inputs and outputs. You do not need to manually create and add connections to the session unless you use the primitive addInputWithNoConnections or addOutputWithNoConnections methods.
See also:
AVCaptureConnectionMBS.Constructor(ports() as AVCaptureInputPortMBS, output as AVCaptureOutputMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
ports: An array of AVCaptureInputPort objects associated with AVCaptureInput objects.
output: An AVCaptureOutput object.
Returns acapture connection initialized to describe a connection between inputPorts and the output.
You can add the connection returned by this method to an AVCaptureSession instance using addConnection.
When using addInput or addOutput, connections are automatically formed between all compatible inputs and outputs. You do not need to manually create and add connections to the session unless you use the primitive addInputWithNoConnections or addOutputWithNoConnections methods.
See also:
AVCaptureConnectionMBS.inputPorts as AVCaptureInputPortMBS()
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Input ports are instances of AVCaptureInputPort.
Some examples using this method:
The items on this page are in the following plugins: MBS AVFoundation Plugin.