IMediaPlayerFrameObserver.cs 816 B

123456789101112131415161718192021222324252627
  1. namespace Agora.Rtc
  2. {
  3. ///
  4. /// <summary>
  5. /// The audio frame observer for the media player.
  6. /// </summary>
  7. ///
  8. public abstract class IMediaPlayerAudioFrameObserver
  9. {
  10. ///
  11. /// <summary>
  12. /// Occurs each time the player receives an audio frame.
  13. /// After registering the audio frame observer, the callback occurs every time the player receives an audio frame, reporting the detailed information of the audio frame.
  14. /// </summary>
  15. ///
  16. /// <param name="videoFrame"> Audio frame information. See AudioPcmFrame .</param>
  17. ///
  18. /// <returns>
  19. /// Reserved for future use.
  20. /// </returns>
  21. ///
  22. public virtual bool OnFrame(AudioPcmFrame videoFrame)
  23. {
  24. return true;
  25. }
  26. }
  27. }