NERtc Windows SDK  V4.4.301
Public 成员函数 | 所有成员列表
nertc::IRtcMediaStatsObserver类 参考

#include <nertc_engine_media_stats_observer.h>

Public 成员函数

virtual void onRtcStats (const NERtcStats &stats)
 
virtual void onLocalAudioStats (const NERtcAudioSendStats &stats)
 
virtual void onRemoteAudioStats (const NERtcAudioRecvStats *stats, unsigned int user_count)
 
virtual void onLocalVideoStats (const NERtcVideoSendStats &stats)
 
virtual void onRemoteVideoStats (const NERtcVideoRecvStats *stats, unsigned int user_count)
 
virtual void onNetworkQuality (const NERtcNetworkQualityInfo *infos, unsigned int user_count)
 

详细描述

The SDK reports stats to the application through IRtcMediaStatsObserver expansion callback interface class.

All methods in this interface class have their (empty) default implementations, and the application can inherit only some of the required events instead of all of them. When calling a callback method, the application must not implement time-consuming operations or call blocking-triggered APIs. For example, if you want to enable audio and video, the SDK may be affected in the runtime.

成员函数说明

◆ onLocalAudioStats()

virtual void nertc::IRtcMediaStatsObserver::onLocalAudioStats ( const NERtcAudioSendStats stats)
inlinevirtual

Occurs when the stats of the local audio stream are collected.

The message sent by this callback describes the stats of the audio stream published by the local device. The callback is triggered every 2 seconds.

参数
statThe stats of the local audio stream. For more information, see NERtcAudioSendStats.

◆ onLocalVideoStats()

virtual void nertc::IRtcMediaStatsObserver::onLocalVideoStats ( const NERtcVideoSendStats stats)
inlinevirtual

Occurs when the stats of the video stream are collected.

The message sent by this callback describes the stats of the video stream published by the local device. The callback is triggered every 2 seconds.

参数
statsindicates the stats of the local video stream. For more information, see NERtcVideoSendStats.

◆ onNetworkQuality()

virtual void nertc::IRtcMediaStatsObserver::onNetworkQuality ( const NERtcNetworkQualityInfo infos,
unsigned int  user_count 
)
inlinevirtual

Returns the uplink and downlink network quality report for each user during the call.

The message sent by this callback describes the network status of each user during the call. The callback is triggered every 2 seconds, which only reports members whose status changed.

参数
speakersThe array that contains the information about ID of each user and uplink and downlink network quality. NERtcNetworkQualityInfo.
user_countstats The array size or the number of users.

◆ onRemoteAudioStats()

virtual void nertc::IRtcMediaStatsObserver::onRemoteAudioStats ( const NERtcAudioRecvStats stats,
unsigned int  user_count 
)
inlinevirtual

Occurs when the stats of the remote audio stream in the call are collected.

The message sent by this callback describes the stats of the audio stream in a peer-to-peer call from the remote user. The callback is triggered every 2 seconds.

参数
statsAn array of audio stats of the audio stream from each remote user. For more information, see NERtcAudioRecvStats.
user_countstats indicates the array size.

◆ onRemoteVideoStats()

virtual void nertc::IRtcMediaStatsObserver::onRemoteVideoStats ( const NERtcVideoRecvStats stats,
unsigned int  user_count 
)
inlinevirtual

Occurs when the stats of the remote video stream in the call are collected.

The message sent by this callback describes the stats of the video stream in a peer-to-peer call from the remote user. The callback is triggered every 2 seconds.

参数
statsindicates an array of video stats from each remote user. For more information, see NERtcVideoRecvStats.
user_countstats indicates the array size.

◆ onRtcStats()

virtual void nertc::IRtcMediaStatsObserver::onRtcStats ( const NERtcStats stats)
inlinevirtual

Occurs when the stats of the current call is collected.

The SDK reports the stats of the current call to the app on a regular basis. The callback is triggered every 2 seconds.

参数
statsNERTC engine statistics: NERtcStats

该类的文档由以下文件生成: