Package io.agora.rtc2
Class AgoraMediaRecorder.MediaRecorderConfiguration
java.lang.Object
io.agora.rtc2.AgoraMediaRecorder.MediaRecorderConfiguration
- Enclosing class:
- AgoraMediaRecorder
Configurations for the local audio and video recording.
- Since:
- v3.5.2
-
Field Summary
FieldsModifier and TypeFieldDescriptionintThe audio channel numsintThe format of the recording file.intThe video fpsintThe video heightintThe maximum recording duration, in milliseconds.intThe interval (ms) of updating the recording information.intThe audio sample rateThe absolute path (including the filename extensions) for the recording file.intThe recording content: -STREAM_TYPE_AUDIO(0x1): Only audio.intThe video source just for out channel recoderintThe video width -
Constructor Summary
ConstructorsConstructorDescriptionMediaRecorderConfiguration(String storagePath, int containerFormat, int streamType, int maxDurationMs, int recorderInfoUpdateInterval) MediaRecorderConfiguration(String storagePath, int containerFormat, int streamType, int maxDurationMs, int recorderInfoUpdateInterval, int width, int height, int fps, int sample_rate, int channel_num, int videoSourceType) -
Method Summary
-
Field Details
-
storagePath
The absolute path (including the filename extensions) for the recording file. For example, `/storage/emulated/0/Android/data//files/example.mp4`. -
containerFormat
public int containerFormatThe format of the recording file. The SDK currently supports onlyCONTAINER_MP4(1). -
streamType
public int streamTypeThe recording content: -STREAM_TYPE_AUDIO(0x1): Only audio. -STREAM_TYPE_VIDEO(0x2): Only video. -STREAM_TYPE_BOTH(0x3): (Default) Audio and video. -
maxDurationMs
public int maxDurationMsThe maximum recording duration, in milliseconds. The default value is 120000. -
recorderInfoUpdateInterval
public int recorderInfoUpdateIntervalThe interval (ms) of updating the recording information. The value range is [1000,10000]. Based on the set value of `recorderInfoUpdateInterval`, the SDK triggers theonRecorderInfoUpdatedcallback to report the updated recording information. -
width
public int widthThe video width -
height
public int heightThe video height -
fps
public int fpsThe video fps -
sample_rate
public int sample_rateThe audio sample rate -
channel_num
public int channel_numThe audio channel nums -
videoSourceType
public int videoSourceTypeThe video source just for out channel recoder
-
-
Constructor Details
-
MediaRecorderConfiguration
public MediaRecorderConfiguration(String storagePath, int containerFormat, int streamType, int maxDurationMs, int recorderInfoUpdateInterval) -
MediaRecorderConfiguration
public MediaRecorderConfiguration(String storagePath, int containerFormat, int streamType, int maxDurationMs, int recorderInfoUpdateInterval, int width, int height, int fps, int sample_rate, int channel_num, int videoSourceType)
-