public static class AgoraMediaRecorder.MediaRecorderConfiguration
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
channel_num
The audio channel nums
|
int |
containerFormat
The format of the recording file.
|
int |
fps
The video fps
|
int |
height
The video height
|
int |
maxDurationMs
The maximum recording duration, in milliseconds.
|
int |
recorderInfoUpdateInterval
The interval (ms) of updating the recording information.
|
int |
sample_rate
The audio sample rate
|
java.lang.String |
storagePath
The absolute path (including the filename extensions) for the recording file.
|
int |
streamType
The recording content:
-
STREAM_TYPE_AUDIO(0x1) : Only audio. |
int |
videoSourceType
The video source just for out channel recoder
|
int |
width
The video width
|
Constructor and Description |
---|
MediaRecorderConfiguration(java.lang.String storagePath,
int containerFormat,
int streamType,
int maxDurationMs,
int recorderInfoUpdateInterval) |
MediaRecorderConfiguration(java.lang.String storagePath,
int containerFormat,
int streamType,
int maxDurationMs,
int recorderInfoUpdateInterval,
int width,
int height,
int fps,
int sample_rate,
int channel_num,
int videoSourceType) |
public java.lang.String storagePath
public int containerFormat
CONTAINER_MP4(1)
.public int streamType
STREAM_TYPE_AUDIO(0x1)
: Only audio.
- STREAM_TYPE_VIDEO(0x2)
: Only video.
- STREAM_TYPE_BOTH(0x3)
: (Default) Audio and video.public int maxDurationMs
public int recorderInfoUpdateInterval
onRecorderInfoUpdated
callback to report the updated recording information.public int width
public int height
public int fps
public int sample_rate
public int channel_num
public int videoSourceType
public MediaRecorderConfiguration(java.lang.String storagePath, int containerFormat, int streamType, int maxDurationMs, int recorderInfoUpdateInterval)
public MediaRecorderConfiguration(java.lang.String storagePath, int containerFormat, int streamType, int maxDurationMs, int recorderInfoUpdateInterval, int width, int height, int fps, int sample_rate, int channel_num, int videoSourceType)