Class
AVCaptureScreenInput
A capture input for recording from a screen in macOS.
Overview
AVCaptureScreenInput
is a concrete subclass of AVCaptureInput that provides an interface for capturing media from a screen or a portion of a screen.
Instances of AVCaptureScreenInput
are input sources for AVCaptureSession
objects that provide media data from one of the screens connected to the system, represented by CGDirectDisplayID
s.
Topics
Initializing a Capture Screen Input
- initWithDisplayID:
Initializes a capture screen input that provides media data from the specified display.
- init
Initializes a capture screen input that provides media data from the main screen.
+ new
Creates a capture screen input that provides media data from the main screen.
Setting Video Capture Options
cropRect
Indicates the bounding rectangle of the screen area to be captured, in pixels.
scaleFactor
Indicates the factor by which video buffers captured from the screen are to be scaled.
Capturing Mouse Activity
capturesCursor
A Boolean value that specifies whether the mouse cursor appears in the captured output.
capturesMouseClicks
A Boolean value that specifies whether mouse clicks appear highlighted in the captured output.
Deprecated
removesDuplicateFrames
A Boolean value that specifies whether the capture input skips duplicate frames.
Deprecated