namespace Agora.Rtc { /// /// /// The IMediaRecorderObserver class. /// /// public abstract class IMediaRecorderObserver { /// /// /// Occurs when the recording state changes. /// When the local audio or video recording state changes, the SDK triggers this callback to report the current recording state and the reason for the change. /// /// /// The current recording state. See RecorderState . /// /// The reason for the state change. See RecorderErrorCode . /// public virtual void OnRecorderStateChanged(RecorderState state, RecorderErrorCode error) {} /// /// /// Occurs when the recording information is updated. /// After you successfully enable the local audio and video recording, the SDK periodically triggers this callback based on the value of recorderInfoUpdateInterval set in MediaRecorderConfiguration . This callback reports the file name, duration, and size of the current recording file. /// /// /// The information about the file that is recorded. See RecorderInfo . /// public virtual void OnRecorderInfoUpdated(RecorderInfo info) {} }; }