AliVCSDK 6.17.0
阿里云音视频SDK,为视频开发者提供一站式接入服务
 
Loading...
Searching...
No Matches
com.alivc.live.pusher.AlivcLiveLocalRecordConfig Class Reference

Local recording configuration. More...

Public Member Functions

boolean isValid ()
 
String toString ()
 

Public Attributes

String storagePath = ""
 
AlivcLiveRecordStreamType streamType = AlivcLiveRecordStreamType.AUDIO_VIDEO
 
int maxSize = 0
 
int maxDuration = 0
 
AlivcLiveRecordAudioQuality audioQuality = AlivcLiveRecordAudioQuality.MEDIUM
 
AlivcLiveRecordMediaFormat mediaFormat = AlivcLiveRecordMediaFormat.MP4
 
AlivcAudioSampleRateEnum audioSampleRate = AlivcAudioSampleRateEnum.AUDIO_SAMPLE_RATE_48000
 

Detailed Description

Local recording configuration.

Author
baorunchen
Date
2023/10/8
Attention
This API is only supported in the interactive mode currently

Definition at line 15 of file AlivcLiveLocalRecordConfig.java.

Member Function Documentation

◆ isValid()

boolean com.alivc.live.pusher.AlivcLiveLocalRecordConfig.isValid ( )

Determine whether the configuration is valid

Returns
true->valid;false->invalid

Definition at line 82 of file AlivcLiveLocalRecordConfig.java.

◆ toString()

String com.alivc.live.pusher.AlivcLiveLocalRecordConfig.toString ( )

Definition at line 93 of file AlivcLiveLocalRecordConfig.java.

Member Data Documentation

◆ audioQuality

AlivcLiveRecordAudioQuality com.alivc.live.pusher.AlivcLiveLocalRecordConfig.audioQuality = AlivcLiveRecordAudioQuality.MEDIUM

Local recording audio quality

Note
Default: MEDIUM
See also
AlivcLiveRecordAudioQuality

Definition at line 59 of file AlivcLiveLocalRecordConfig.java.

◆ audioSampleRate

AlivcAudioSampleRateEnum com.alivc.live.pusher.AlivcLiveLocalRecordConfig.audioSampleRate = AlivcAudioSampleRateEnum.AUDIO_SAMPLE_RATE_48000

Local recording audio sampling rate

Note
Default: 48K
See also
AlivcAudioSampleRateEnum

Definition at line 75 of file AlivcLiveLocalRecordConfig.java.

◆ maxDuration

int com.alivc.live.pusher.AlivcLiveLocalRecordConfig.maxDuration = 0

The maximum duration of local recording, in seconds, defaults to 0

Note
If equal to or less than 0, there is no limit on the recording duration
If a time limit is set, recording will stop if the limit is exceeded, and an onMediaRecordEvent callback message will be sent;
If you need to control the duration of recording files, you can set this field
Note: This field only takes effect when generating MP4 files; If generating a pure audio local file, setting this field is invalid

Definition at line 51 of file AlivcLiveLocalRecordConfig.java.

◆ maxSize

int com.alivc.live.pusher.AlivcLiveLocalRecordConfig.maxSize = 0

Maximum file length for local recording, in bytes

Note
If you need to control the recording file size, you can set this field
1. If set to 0 or -1, the SDK will be divided into blocks according to the size of 2G internally.
If the recorded file exceeds 2G, the corresponding event will be recalled, and the block number will be added to the end of the set file to record on a new file;
2. If a value>0 is set, the recording will stop after the file exceeds this value, and a callback message will be sent to onMediaRecordEvent;

Definition at line 41 of file AlivcLiveLocalRecordConfig.java.

◆ mediaFormat

AlivcLiveRecordMediaFormat com.alivc.live.pusher.AlivcLiveLocalRecordConfig.mediaFormat = AlivcLiveRecordMediaFormat.MP4

Local recording media format

Note
Default: MP4
See also
AlivcLiveRecordMediaFormat

Definition at line 67 of file AlivcLiveLocalRecordConfig.java.

◆ storagePath

String com.alivc.live.pusher.AlivcLiveLocalRecordConfig.storagePath = ""

Absolute path to local recording files

Note
Please ensure that the path has read and write permissions and is legal, otherwise local recording files will not be generated
The absolute path of the local recording file, which needs to be precise to the file name and format

Definition at line 23 of file AlivcLiveLocalRecordConfig.java.

◆ streamType

AlivcLiveRecordStreamType com.alivc.live.pusher.AlivcLiveLocalRecordConfig.streamType = AlivcLiveRecordStreamType.AUDIO_VIDEO

Stream type for local recording

Note
Default AUDIO_VIDEO, which means recording audio and video simultaneously
See also
AlivcLiveRecordStreamType

Definition at line 31 of file AlivcLiveLocalRecordConfig.java.