|
Agora Java API Reference for Android
|
Public Member Functions | |
| void | onRecorderStateChanged (String channelId, int uid, int state, int reason) |
| Callback for changes in recording state. More... | |
| void | onRecorderInfoUpdated (String channelId, int uid, RecorderInfo info) |
| Recording information update callback. More... | |
The IMediaRecorderCallback interface.
| void io.agora.rtc2.IMediaRecorderCallback.onRecorderStateChanged | ( | String | channelId, |
| int | uid, | ||
| int | state, | ||
| int | reason | ||
| ) |
Callback for changes in recording state.
The SDK triggers this callback when the recording state of the audio and video stream changes. It reports the current state of the recording and the reason for the change.
| channelId | Name of the channel. |
| uid | User ID. |
| state | Current recording state:
|
| reason | Reason for the recording state change:
|
| void io.agora.rtc2.IMediaRecorderCallback.onRecorderInfoUpdated | ( | String | channelId, |
| int | uid, | ||
| RecorderInfo | info | ||
| ) |
Recording information update callback.
After you successfully register this callback and start audio and video stream recording, the SDK periodically triggers this callback based on the value of recorderInfoUpdateInterval that you set in MediaRecorderConfiguration, reporting the current recording file's name, duration, and size.
| channelId | The channel name. |
| uid | The user ID. |
| info | The recording file information. See RecorderInfo for details. |
1.8.18