NERtc Windows SDK
V4.4.301
|
#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.
|
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.
stat | The stats of the local audio stream. For more information, see NERtcAudioSendStats. |
|
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.
stats | indicates the stats of the local video stream. For more information, see NERtcVideoSendStats. |
|
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.
speakers | The array that contains the information about ID of each user and uplink and downlink network quality. NERtcNetworkQualityInfo. |
user_count | stats The array size or the number of users. |
|
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.
stats | An array of audio stats of the audio stream from each remote user. For more information, see NERtcAudioRecvStats. |
user_count | stats indicates the array size. |
|
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.
stats | indicates an array of video stats from each remote user. For more information, see NERtcVideoRecvStats. |
user_count | stats indicates the array size. |
|
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.
stats | NERTC engine statistics: NERtcStats |