Struct TRTCLocalRecordingParams
录制参数
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: trtc
Assembly: cs.temp.dll.dll
Syntax
public struct TRTCLocalRecordingParams
Fields
filePath
【字段含义】文件路径(必填),录制的文件地址,请自行指定,确保路径有读写权限且合法,否则录制文件无法生成。 【特别说明】该路径需精确到文件名及格式后缀,格式后缀决定录制文件的格式,目前支持的格式只有 mp4。 Windows建议在应用的私有数据目录中指定存放路径。 【示例代码】在 appdata%\test 目录下录制 example.mp4 文件 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
interval 录制中事件(onLocalRecordDoing)的回调频率,单位毫秒,有效范围:1000-10000,默认为-1表示不回调
Declaration
public int interval
Field Value
Type | Description |
---|---|
System.Int32 |
recordType
【字段含义】媒体录制类型,默认为同时录制音频和视频。
Declaration
public TRTCLocalRecordType recordType
Field Value
Type | Description |
---|---|
TRTCLocalRecordType |