QNRemoteVideoTrackStats.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. //
  2. // QNRemoteVideoTrackStats.h
  3. // QNRTCKit
  4. //
  5. // Created by 何云旗 on 2021/8/24.
  6. // Copyright © 2021 Pili Engineering, Qiniu Inc. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "QNTypeDefines.h"
  10. NS_ASSUME_NONNULL_BEGIN
  11. @interface QNRemoteVideoTrackStats : NSObject
  12. /*!
  13. * @abstract 远端视频 Track 的 profile。
  14. *
  15. * @discussion 表示当前应用正在接收的视频轨道的 profile
  16. *
  17. * @since v4.0.0
  18. */
  19. @property (nonatomic, assign, readonly) QNTrackProfile profile;
  20. /*!
  21. * @abstract 远端视频下行帧率。
  22. *
  23. * @discussion 当前应用正在下载的轨道的帧率
  24. *
  25. * @since v4.0.0
  26. */
  27. @property (nonatomic, assign, readonly) NSUInteger downlinkFrameRate;
  28. /*!
  29. * @abstract 远端视频下行码率,单位 kbps。
  30. *
  31. * @discussion 当前应用下载对应轨道时的码率,和远端用户上行无关
  32. *
  33. * @since v4.0.0
  34. */
  35. @property (nonatomic, assign, readonly) double downlinkBitrate;
  36. /*!
  37. * @abstract 远端视频下行网络丢包率,百分比 [0, 100]。
  38. *
  39. * @discussion 当前应用下载对应轨道时的网络丢包率,和远端用户上行无关
  40. *
  41. * @since v4.0.0
  42. */
  43. @property (nonatomic, assign, readonly) double downlinkLostRate;
  44. /*!
  45. * @abstract 远端视频上行网络延时,单位 ms。
  46. *
  47. * @discussion 表示远端用户上传自身视频数据时的网络延时
  48. *
  49. * @since v4.0.0
  50. */
  51. @property (nonatomic, assign, readonly) NSUInteger uplinkRTT;
  52. /*!
  53. * @abstract 远端视频上行网络丢包率,百分比 [0, 100]。
  54. *
  55. * @discussion 表示远端用户上传自身音频数据时的丢包率
  56. *
  57. * @since v4.0.0
  58. */
  59. @property (nonatomic, assign, readonly) double uplinkLostRate;
  60. /*!
  61. * @abstract 远端视频上行视频帧宽度
  62. *
  63. * @discussion 远端用户编码输出的视频宽度
  64. *
  65. * @since v5.2.4
  66. */
  67. @property (nonatomic, assign, readonly) NSUInteger uplinkFrameWidth;
  68. /*!
  69. * @abstract 远端视频上行视频帧高度
  70. *
  71. * @discussion 远端用户编码输出的视频高度
  72. *
  73. * @since v5.2.4
  74. */
  75. @property (nonatomic, assign, readonly) NSUInteger uplinkFrameHeight;
  76. @end
  77. NS_ASSUME_NONNULL_END