Platforms to show: All Mac Windows Linux Cross-Platform
AVCaptureConnectionMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Capture inputs (instances of AVCaptureInput) have one or more input ports (instances of AVCaptureInputPort). Capture outputs (instances of AVCaptureOutput) can accept data from one or more sources (for example, an AVCaptureMovieFileOutput object accepts both video and audio data).
You can only add an AVCaptureConnection instance to a session using addConnection: if canAddConnection: returns true. When using addInput or addOutput, connections are formed 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.
- 16 properties
- property Active as boolean
- property automaticallyAdjustsVideoMirroring as boolean
- property Enabled as boolean
- property Handle as Integer
- property output as AVCaptureOutputMBS
- property videoFieldMode as Integer
- property VideoFieldModeSupported as boolean
- property videoMaxFrameDuration as CMTimeMBS
- property VideoMaxFrameDurationSupported as Boolean
- property videoMinFrameDuration as CMTimeMBS
- property VideoMinFrameDurationSupported as boolean
- property VideoMirrored as boolean
- property VideoMirroringSupported as boolean
- property videoOrientation as Integer
- property VideoOrientationSupported as boolean
- property videoPreviewLayer as AVCaptureVideoPreviewLayerMBS
- 4 methods
- method audioChannels as AVCaptureAudioChannelMBS()
- method Constructor(port as AVCaptureInputPortMBS, layer as AVCaptureVideoPreviewLayerMBS)
- method Constructor(ports() as AVCaptureInputPortMBS, output as AVCaptureOutputMBS)
- method inputPorts as AVCaptureInputPortMBS()
- 3 shared methods
- shared method available as boolean
- shared method connectionWithInputPort(port as AVCaptureInputPortMBS, layer as AVCaptureVideoPreviewLayerMBS) as AVCaptureConnectionMBS
- shared method connectionWithInputPorts(ports() as AVCaptureInputPortMBS, output as AVCaptureOutputMBS) as AVCaptureConnectionMBS
- 8 constants
Video Orientation Constants
Constant | Value | Description |
---|---|---|
AVCaptureVideoOrientationLandscapeLeft | 4 |
Indicates that video should be oriented horizontally, top on the right. |
AVCaptureVideoOrientationLandscapeRight | 3 |
Indicates that video should be oriented horizontally, top on the left. |
AVCaptureVideoOrientationPortrait | 1 |
Indicates that video should be oriented vertically, top at the top. |
AVCaptureVideoOrientationPortraitUpsideDown | 2 |
Indicates that video should be oriented vertically, top at the bottom. |
Video Field Modes
Constant | Value | Description |
---|---|---|
AVVideoFieldModeBoth | 0 |
Indicates that both top and bottom video fields in interlaced content should be passed through. |
AVVideoFieldModeBottomOnly | 2 |
Indicates that the bottom video field only in interlaced content should be passed through. |
AVVideoFieldModeDeinterlace | 3 |
Indicates that top and bottom video fields in interlaced content should be deinterlaced. |
AVVideoFieldModeTopOnly | 1 |
Indicates that only the top video field in interlaced content should be passed through. |
This class has no sub classes.
Some methods using this class:
- AVCaptureOutputMBS.connections as AVCaptureConnectionMBS()
- AVCaptureOutputMBS.connectionWithMediaType(mediaType as string) as AVCaptureConnectionMBS
- AVCaptureSessionMBS.addConnection(connection as AVCaptureConnectionMBS)
- AVCaptureSessionMBS.canAddConnection(connection as AVCaptureConnectionMBS) as boolean
- AVCaptureSessionMBS.removeConnection(connection as AVCaptureConnectionMBS)
- AVCaptureStillImageOutputMBS.captureStillImageAsynchronously(connection as AVCaptureConnectionMBS, prepareJpegStillImage as boolean, tag as Variant = nil)
- AVCaptureVideoPreviewLayerMBS.connection as AVCaptureConnectionMBS
Some properties using for this class:
- AVCaptureMovieFileOutputMBS.outputSettingsForConnection(connection as AVCaptureConnectionMBS) as Dictionary
Some events using this class:
- AVFoundationMBS.captureOutputDidDropSampleBuffer(captureOutput as AVCaptureOutputMBS, OutputSampleBuffer as CMSampleBufferMBS, connection as AVCaptureConnectionMBS)
- AVFoundationMBS.captureOutputDidFinishRecordingToOutputFileAtURL(captureOutput as AVCaptureFileOutputMBS, outputFileURL as string, connections() as AVCaptureConnectionMBS, error as NSErrorMBS)
- AVFoundationMBS.captureOutputDidOutputMetadataObjects(captureOutput as AVCaptureOutputMBS, metadataObjects() as AVMetadataObjectMBS, connection as AVCaptureConnectionMBS)
- AVFoundationMBS.captureOutputDidOutputSampleBuffer(captureOutput as AVCaptureOutputMBS, OutputSampleBuffer as CMSampleBufferMBS, connection as AVCaptureConnectionMBS, features as variant)
- AVFoundationMBS.captureOutputDidPauseRecordingToOutputFileAtURL(captureOutput as AVCaptureFileOutputMBS, fileURL as string, connections() as AVCaptureConnectionMBS)
- AVFoundationMBS.captureOutputDidResumeRecordingToOutputFileAtURL(captureOutput as AVCaptureFileOutputMBS, fileURL as string, connections() as AVCaptureConnectionMBS)
- AVFoundationMBS.captureOutputDidStartRecordingToOutputFileAtURL(captureOutput as AVCaptureFileOutputMBS, fileURL as string, connections() as AVCaptureConnectionMBS)
- AVFoundationMBS.captureOutputWillFinishRecordingToOutputFileAtURL(captureOutput as AVCaptureFileOutputMBS, fileURL as string, connections() as AVCaptureConnectionMBS, error as NSErrorMBS)
Some examples using this class:
- /AVFoundation/AVVideoWall
- /AVFoundation/iOS Live QRCode Detect/iOS Live QRCode Detect
- /AVFoundation/Live Barcode Detection
- /AVFoundation/Live Barcode Detection iOS/Live Barcode Detection iOS
- /AVFoundation/Live Barcode Detection with Vision/Live Barcode Detection with Vision
- /AVFoundation/Live picture processing
- /AVFoundation/Recorder
- /AVFoundation/Screen Input
- /AVFoundation/Screen Recorder
- /AVFoundation/Still Photos
The items on this page are in the following plugins: MBS AVFoundation Plugin.
AVCaptureAudioPreviewOutputMBS - AVCaptureDeviceFormatMBS