Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.1   12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4    Statistic    FMM    Blog  

AVRecorder.SetFilePath

Sets the file path for recording.

Component Version macOS Windows Linux Server iOS SDK
AVRecorder 6.1 ✅ Yes ✅ Yes ❌ No ❌ No ✅ Yes
MBS( "AVRecorder.SetFilePath"; AVSession; Path )   More

Parameters

Parameter Description Example
AVSession The ID for the AVRecorder session as returned by AVRecorder.Init. $AVSession
Path File native file path. "/Users/cs/test.m4v"

Result

Returns OK or error.

Description

Sets the file path for recording.
Please use a native path with .avi (Windows) or .m4v (Mac) for recording.
For Mac with audio only you can also use .m4a as extension.

Examples

Sets a file path:

If [MBS("SystemInfo.isMacOSX")]
    Set Field [AVRecorder::FilePath; MBS( "Folders.UserDesktop" ) & "/test.m4v"]
Else
    Set Field [AVRecorder::FilePath; MBS( "Folders.UserDesktop" ) & "\test.avi"]
End If
Set Variable [$r; Value:MBS("AVRecorder.SetFilePath"; AVRecorder::Session; AVRecorder::FilePath)]

See also

Example Databases

This function checks for a license.

Created 9th February 2016, last changed 17th July 2022


AVRecorder.SetEncoder - AVRecorder.SetScreenInput

💬 Ask a question or report a problem