IVideoEncodedFrameObserver.cs 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. using System;
  2. namespace Agora.Rtc
  3. {
  4. ///
  5. /// <summary>
  6. /// Receives encoded video images.
  7. /// </summary>
  8. ///
  9. public abstract class IVideoEncodedFrameObserver
  10. {
  11. ///
  12. /// <summary>
  13. /// Occurs each time the SDK receives an encoded video image.
  14. /// </summary>
  15. ///
  16. /// <param name="uid"> The user ID of the remote user.</param>
  17. ///
  18. /// <param name="imageBufferPtr"> The encoded video image buffer.</param>
  19. ///
  20. /// <param name="length"> The data length of the video image.</param>
  21. ///
  22. /// <param name="videoEncodedFrameInfo"> For the information of the encoded video frame, see EncodedVideoFrameInfo .</param>
  23. ///
  24. /// <returns>
  25. /// Reserved for future use.
  26. /// </returns>
  27. ///
  28. public virtual bool OnEncodedVideoFrameReceived(uint uid, IntPtr imageBufferPtr, UInt64 length, EncodedVideoFrameInfo videoEncodedFrameInfo)
  29. {
  30. return true;
  31. }
  32. }
  33. }