Platforms to show: All Mac Windows Linux Cross-Platform
AVCaptureVideoPreviewLayerMBS class
Super class: CALayerMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
You use the videoGravity property to influence how content is viewed relative to the layer bounds. On some hardware configurations, you can manipulate the orientation of the layer using orientation and mirrored.
Subclass of the CALayerMBS class.
- 2 properties
- property session as AVCaptureSessionMBS
- property videoGravity as string
- 7 methods
- method captureDevicePointOfInterestForPoint(pointInLayer as CGPointMBS) as CGPointMBS
- method connection as AVCaptureConnectionMBS
- method Constructor(session as AVCaptureSessionMBS, WithConnection as boolean = true)
- method metadataOutputRectOfInterestForRect(rectInLayerCoordinates as CGRectMBS) as CGRectMBS
- method pointForCaptureDevicePointOfInterest(captureDevicePointOfInterest as CGPointMBS) as CGPointMBS
- method rectForMetadataOutputRectOfInterest(rectInMetadataOutputCoordinates as CGRectMBS) as CGRectMBS
- method setSessionWithNoConnection(session as AVCaptureSessionMBS)
- 2 shared methods
- shared method layerWithSession(session as AVCaptureSessionMBS) as AVCaptureVideoPreviewLayerMBS
- shared method layerWithSessionWithNoConnection(session as AVCaptureSessionMBS) as AVCaptureVideoPreviewLayerMBS
Super class CALayerMBS
- 41 properties
- property affineTransform as CGAffineTransformMBS
- property anchorPoint as CGRectMBS
- property anchorPointZ as Double
- property AutoresizingMask as Integer
- property backgroundColor as Variant
- property borderColor as Variant
- property borderWidth as Double
- property bounds as CGRectMBS
- property className as string
- property classPath as string
- property contents as Variant
- property contentsCenter as CGRectMBS
- property contentsRect as CGRectMBS
- property contentsScale as Double
- property cornerRadius as Double
- property DoubleSided as boolean
- property drawsAsynchronously as boolean
- property frame as CGRectMBS
- property Handle as Integer
- property Hidden as boolean
- property mask as CALayerMBS
- property masksToBounds as Boolean
- property minificationFilterBias as Double
- property modelLayer as CALayerMBS
- property needsDisplay as boolean
- property needsDisplayOnBoundsChange as boolean
- property needsLayout as boolean
- property opacity as Double
- property Opaque as boolean
- property position as CGRectMBS
- property preferredFrameSize as CGSizeMBS
- property presentationLayer as CALayerMBS
- property rasterizationScale as Double
- property shadowColor as Variant
- property shadowOffset as CGSizeMBS
- property shadowOpacity as Double
- property shadowPath as Variant
- property shadowRadius as Double
- property shouldRasterize as Boolean
- property superlayer as CALayerMBS
- property zPosition as Double
- 14 methods
- method addSublayer(layer as CALayerMBS)
- method Constructor
- method display
- method displayIfNeeded
- method layoutIfNeeded
- method layoutSublayers
- method removeAllAnimations
- method removeFromSuperlayer
- method renderInContext(CGContextHandle as Integer) as boolean
- method renderInPicture(Pic as Picture) as boolean
- method setNeedsDisplay
- method setNeedsDisplayInRect(r as CGRectMBS)
- method setNeedsLayout
- method sublayers as CALayerMBS()
- 4 shared methods
- shared method available as boolean
- shared method layer as CALayerMBS
- shared method layerFromHandle(Handle as Integer) as CALayerMBS
- shared method layerFromHandle(Handle as Ptr) as CALayerMBS
- 11 constants
Edge constants
Constant | Value | Description |
---|---|---|
kCALayerBottomEdge | 4 |
Specifies that the bottom edge of the receiver's content should be antialiased. |
kCALayerLeftEdge | 1 |
Specifies that the left edge of the receiver's content should be antialiased. |
kCALayerRightEdge | 2 |
Specifies that the right edge of the receiver's content should be antialiased. |
kCALayerTopEdge | 8 |
Specifies that the top edge of the receiver's content should be antialiased. |
Autoresize Mask Constants
Constant | Value | Description |
---|---|---|
kCALayerHeightSizable | 16 |
The receiver's height is flexible. |
kCALayerMaxXMargin | 4 |
The left margin between the receiver and its superview is flexible. |
kCALayerMaxYMargin | 32 |
The top margin between the receiver and its superview is flexible. |
kCALayerMinXMargin | 1 |
The left margin between the receiver and its superview is flexible. |
kCALayerMinYMargin | 8 |
The top margin between the receiver and its superview is flexible. |
kCALayerNotSizable | 0 |
The receiver cannot be resized. |
kCALayerWidthSizable | 2 |
The receiver's width is flexible. |
This class has no sub classes.
Some methods using this class:
- AVCaptureConnectionMBS.connectionWithInputPort(port as AVCaptureInputPortMBS, layer as AVCaptureVideoPreviewLayerMBS) as AVCaptureConnectionMBS
- AVCaptureConnectionMBS.Constructor(port as AVCaptureInputPortMBS, layer as AVCaptureVideoPreviewLayerMBS)
Some properties using for this class:
- AVCaptureConnectionMBS.videoPreviewLayer as AVCaptureVideoPreviewLayerMBS
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/Recorder
- /AVFoundation/Screen Input
- /AVFoundation/Screen Recorder
- /AVFoundation/Still Photos
Blog Entries
- News from the MBS Xojo Plugins Version 22.2
- MBS Xojo Plugins, version 22.2pr7
- AVCaptureVideoDataOutput improvements
Release notes
- Version 22.2
- Added point/rect conversion methods to AVCaptureVideoPreviewLayerMBS class.
The items on this page are in the following plugins: MBS AVFoundation Plugin, MBS MacCG Plugin.
AVCaptureVideoDataOutputMBS - AVCompositionMBS