IMediaRecorderObserver.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. namespace Agora.Rtc
  2. {
  3. ///
  4. /// <summary>
  5. /// The IMediaRecorderObserver class.
  6. /// </summary>
  7. ///
  8. public abstract class IMediaRecorderObserver
  9. {
  10. ///
  11. /// <summary>
  12. /// Occurs when the recording state changes.
  13. /// 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.
  14. /// </summary>
  15. ///
  16. /// <param name="state"> The current recording state. See RecorderState .</param>
  17. ///
  18. /// <param name="error"> The reason for the state change. See RecorderErrorCode .</param>
  19. ///
  20. public virtual void OnRecorderStateChanged(RecorderState state, RecorderErrorCode error) {}
  21. ///
  22. /// <summary>
  23. /// Occurs when the recording information is updated.
  24. /// 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.
  25. /// </summary>
  26. ///
  27. /// <param name="info"> The information about the file that is recorded. See RecorderInfo .</param>
  28. ///
  29. public virtual void OnRecorderInfoUpdated(RecorderInfo info) {}
  30. };
  31. }