实时音视频 SPARKRTC-事件回调(IHRTCConnection):onVideoStatsNotify

时间:2024-03-25 20:33:11

onVideoStatsNotify

virtual void onVideoStatsNotify(IHRTCConnection* conn, HRTCLocalVideoStats *localStats, unsigned int localStatsCount, HRTCRemoteVideoStats *remoteStats, unsigned int remoteStatsCount)

功能说明

视频流详情,2s触发一次回调。

回调参数
  • conn:连接对象。
  • localStats:本地视频发流统计,具体请参见HRTCLocalVideoStats
  • localStatsCount:localStats数组长度。
  • remoteStats:远端视频收流统计,具体请参见HRTCRemoteVideoStats
  • remoteStatsCount:remoteStats数组长度。
  • 当无本地视频时,localStatsCount为0,localStats为空指针。
  • 当无远端视频时,remoteStatsCount为0,remoteStats为空指针。
support.huaweicloud.com/csdk-rtc/rtc_05_0115.html