#include "AlivcLivePushDef.h"
|
NSInteger | maxDuration |
| The maximum duration of local recording, in seconds, defaults to 0.
|
|
NSInteger | maxSize |
| Maximum file length for local recording, in bytes.
|
|
AlivcLiveRecordAudioQuality | recordAudioQuality |
| Local recording audio quality.
|
|
AlivcLivePushAudioSampleRate | recordAudioSamplerate |
| Local recording audio sampling rate.
|
|
AlivcLiveRecordFormat | recordFormat |
| Local recording media format.
|
|
AlivcLiveRecordType | recordType |
| Stream type for local recording.
|
|
NSString *_Nonnull | storagePath |
| Absolute path to local recording files.
|
|
◆ maxDuration
- (NSInteger) maxDuration |
|
readwritenonatomicassign |
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
◆ maxSize
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;
◆ recordAudioQuality
- (AlivcLiveRecordAudioQuality) recordAudioQuality |
|
readwritenonatomicassign |
Local recording audio quality.
- Note
- Default: AlivcLiveRecordAudioQualityMidium
- See also
- AlivcLiveRecordAudioQuality
◆ recordAudioSamplerate
- (AlivcLivePushAudioSampleRate) recordAudioSamplerate |
|
readwritenonatomicassign |
Local recording audio sampling rate.
- Note
- Default: AlivcLivePushAudioSampleRate48000
- See also
- AlivcLivePushAudioSampleRate
◆ recordFormat
- (AlivcLiveRecordFormat) recordFormat |
|
readwritenonatomicassign |
Local recording media format.
- Note
- Default: AlivcLiveRecordFormatMP4
- See also
- AlivcLiveRecordFormat
◆ recordType
- (AlivcLiveRecordType) recordType |
|
readwritenonatomicassign |
Stream type for local recording.
- Note
- Default AlivcLiveRecordTypeAudioAndVideo, which means recording audio and video simultaneously
- See also
- AlivcLiveRecordType
◆ storagePath
- (NSString* _Nonnull) storagePath |
|
readwritenonatomiccopy |
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
The documentation for this class was generated from the following file: