|
Agora RTC Objective-C API Reference
Refactor
|
Data Fields | |
| const char * | storagePath |
| MediaRecorderContainerFormat | containerFormat |
| MediaRecorderStreamType | streamType |
| int | maxDurationMs |
| int | recorderInfoUpdateInterval |
| int | width |
| int | height |
| int | fps |
| int | sample_rate |
| int | channel_num |
| agora::rtc::VIDEO_SOURCE_TYPE | videoSourceType |
|
inline |
|
inline |
| const char* storagePath |
The absolute path where the recording file will be saved locally, including the file name and format. For example:
C:\Users\<user_name>\AppData\Local\Agora\<process_name>\example.mp4/App Sandbox/Library/Caches/example.mp4/Library/Logs/example.mp4/storage/emulated/0/Android/data/<package name>/files/example.mp4 | MediaRecorderContainerFormat containerFormat |
The format of the recording file. See MediaRecorderContainerFormat.
| MediaRecorderStreamType streamType |
The content to record. See MediaRecorderStreamType.
| int maxDurationMs |
Maximum recording duration in milliseconds. Default is 120000.
| int recorderInfoUpdateInterval |
Interval for recording information updates, in milliseconds. The valid range is [1000,10000]. The SDK triggers the onRecorderInfoUpdated callback based on this value to report updated recording information.
| int width |
Width (px) of the recorded video. The maximum value for width × height must not exceed 3840 × 2160. This parameter is required only when calling createMediaRecorder and setting type in RecorderStreamInfo to PREVIEW.
| int height |
Height (px) of the recorded video. The maximum value for width × height must not exceed 3840 × 2160. This parameter is required only when calling createMediaRecorder and setting type in RecorderStreamInfo to PREVIEW.
| int fps |
Frame rate of the recorded video. The maximum is 30. For example: 5, 10, 15, 24, 30. This parameter is required only when calling createMediaRecorder and setting type in RecorderStreamInfo to PREVIEW.
| int sample_rate |
Sample rate (Hz) of the recorded audio. Supported values: 16000, 32000, 44100, or 48000. This parameter is required only when calling createMediaRecorder and setting type in RecorderStreamInfo to PREVIEW.
| int channel_num |
Number of audio channels to record:
createMediaRecorder and setting type in RecorderStreamInfo to PREVIEW. | agora::rtc::VIDEO_SOURCE_TYPE videoSourceType |
Type of video source to record. See VIDEO_SOURCE_TYPE. This parameter is required only when calling createMediaRecorder and setting type in RecorderStreamInfo to PREVIEW.