Package io.agora.rtc2
Interface IMediaRecorderCallback
public interface IMediaRecorderCallback
The `IMediaRecorderCallback` interface.
- Since:
- v4.0.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidonRecorderInfoUpdated(String channelId, int uid, RecorderInfo info) voidonRecorderStateChanged(String channelId, int uid, int state, int reason)
-
Method Details
-
onRecorderStateChanged
- Parameters:
channelId- Name of the channel.uid- User ID.state- Current recording state: - RECORDER_STATE_ERROR (-1): An error occurred during recording of the audio and video stream. - RECORDER_STATE_START (2): Recording of the audio and video stream starts. - RECORDER_STATE_STOP (3): Recording of the audio and video stream stops.reason- Reason for the recording state change: - RECORDER_REASON_NONE (0): Everything is working normally. - RECORDER_REASON_WRITE_FAILED (1): Failed to write the recording file. - RECORDER_REASON_NO_STREAM (2): No available audio and video stream to record or the stream was interrupted for more than 5 seconds. - RECORDER_REASON_OVER_MAX_DURATION (3): The recording duration exceeds the maximum limit. - RECORDER_REASON_CONFIG_CHANGED (4): The recording configuration has changed.
-
onRecorderInfoUpdated
- Parameters:
channelId- The channel name.uid- The user ID.info- The recording file information. See `RecorderInfo` for details.
-