TRTCLocalRecordingParams class
Local media file recording parameters
Constructors
- TRTCLocalRecordingParams({String filePath = '', TRTCLocalRecordType recordType = TRTCLocalRecordType.both, int interval = -1, int maxDurationPerFile = 0})
Properties
- filePath ↔ String
-
- Field description: Address of the recording file, which is required. Please ensure that the path is valid with read/write permissions; otherwise, the recording file cannot be generated.
- Note: This path must be accurate to the file name and extension. The extension determines the format of the recording file. Currently, only the MP4 format is supported. For example, if you specify the path as
mypath/record/test.mp4
, it means that you want the SDK to generate a local video file in MP4 format. Please specify a valid path with read/write permissions; otherwise, the recording file cannot be generated.getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- interval ↔ int
-
- Field description:
interval
is the update frequency of the recording information in milliseconds. Value range: 1000–10000. Default value: -1, indicating not to call back.getter/setter pair - Field description:
- maxDurationPerFile ↔ int
-
- Field description:
maxDurationPerFile
is the max duration of each recorded file segment, in milliseconds, with a minimum value of 10000. The default value is 0, indicating no segmentation.getter/setter pair - Field description:
- recordType ↔ TRTCLocalRecordType
-
- Field description: Media recording type, which is
TRTCRecordTypeBoth
by default, indicating to record both audio and video.getter/setter pair - Field description: Media recording type, which is
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited