Struct TRTCLocalRecordingParams
Recording parameters
Inherited Members
Namespace: trtc
Assembly: cs.temp.dll.dll
Syntax
public struct TRTCLocalRecordingParams
Fields
filePath
Description: the path to store recording files in (required). Please specify this parameter yourself and make sure that the path is valid, readable, and writable; otherwise, the SDK will fail to generate recording files.
Note: The path must contain the filename and extension. The extension determines the format of recording files. Currently, only MP4 is supported. On Windows, we recommend that you use a path in your application’s private data directory.
Sample code: Recording data into a file named example.mp4
in appdata%\test
: std::string filePath; std::wstring path; wchar_t fullPath[MAX_PATH] = { 0 }; SHGetFolderPathW(NULL, CSIDL_APPDATA, NULL, 0, fullPath); path=fullPath; path += L"\test\example.mp4"; filePath = txf_wstr2utf8(path);
Declaration
public String filePath
Field Value
Type | Description |
---|---|
String |
interval
The interval (ms) for triggering the recording callback onLocalRecordDoing
. Value range: 1000-10000. Default value: -1
, which means to disable the callback
Declaration
public int interval
Field Value
Type | Description |
---|---|
System.Int32 |
recordType
Description: type of media to record. Both audio and video are recorded by default.
Declaration
public TRTCLocalRecordType recordType
Field Value
Type | Description |
---|---|
TRTCLocalRecordType |