Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.1   7.2   7.3   7.4   7.5   8.0   8.1   8.2   8.3   8.4    Statistic  


Sets video input to screen.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
AVRecorder 8.4 Yes No No No No

MBS( "AVRecorder.SetScreenInput"; AVSession { ; DisplayIndex; capturesCursor; capturesMouseClicks; cropRectLeft; cropRectBottom; cropRectWidth; cropRectHeight } )


Parameter Description Example value
AVSession The ID for the AVRecorder session as returned by AVRecorder.Init. $AVSession
DisplayIndex Optional
The index of the screen.
Derfault is zero for main screen.
capturesCursor Optional
Whether the cursor should be rendered to the captured output.
By default, screen input draws the cursor in its captured output. If this parameter is zero, the captured output contains only the windows on the screen. Cursor is omitted. Note that cursor position and mouse button state at the time of capture is preserved in CMSampleBuffers emitted from screen input.
capturesMouseClicks Optional
Whether mouse clicks should be highlighted in the captured output.
By default, screen input does not highlight mouse clicks in its captured output. If this parameter is 1, mouse clicks are highlighted (a circle is drawn around the mouse for the duration of the click) in the captured output.
cropRectLeft Optional
cropRectBottom Optional
cropRectWidth Optional
cropRectHeight Optional


Returns OK or error.


Sets video input to screen.
cropRectLeft, cropRectBottom, cropRectWidth, cropRectHeight indicate the bounding rectangle of the screen area to be captured in pixels.
Screen input captures the entire area of the display with which it is associated. To limit the capture rectangle to a subsection of the screen, set the cropRect property, which defines a smaller section of the screen in the screen's coordinate system. The origin (0,0) is the bottom-left corner of the screen.

See also

Created 17th July 2018, last changed 24th July 2018

AVRecorder.SetFilePath   -   AVRecorder.SetVideoDevice

Feedback: Report problem or ask question.

MBS Xojo Chart Plugins