NERtc Unity SDK  V4.5.907
Public Member Functions | List of all members
nertc.IMediaStatsObserver Interface Reference

Public Member Functions

void OnRtcStats (object channelOrEngine, RtcStats stats)
 
void OnLocalAudioStats (object channelOrEngine, RtcAudioSendStats stats)
 
void OnRemoteAudioStats (object channelOrEngine, RtcAudioRecvStats[] stats)
 
void OnLocalVideoStats (object channelOrEngine, RtcVideoSendStats stats)
 
void OnRemoteVideoStats (object channelOrEngine, RtcVideoRecvStats[] stats)
 
void OnNetworkQuality (object channelOrEngine, RtcNetworkQualityInfo[] infos)
 

Detailed Description

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.

Member Function Documentation

◆ OnRtcStats()

void nertc.IMediaStatsObserver.OnRtcStats ( object  channelOrEngine,
RtcStats  stats 
)

Callback for stats of the current call. SDK regularly reports the statistics of the current call to the app every 2 seconds.

Parameters
channelOrEngineThe curren IRtcChannel object or IRtcEngine object.
statsNERTC Engine statistics: nertc_stats

◆ OnLocalAudioStats()

void nertc.IMediaStatsObserver.OnLocalAudioStats ( object  channelOrEngine,
RtcAudioSendStats  stats 
)

Callback for stats of the local audio stream. The callback returns stats of the local publishing audio stream every 2 seconds.

Parameters
channelOrEngineThe curren IRtcChannel object or IRtcEngine object.
statsLocal audio stream stats. See nertc_audio_send_stats.

◆ OnRemoteAudioStats()

void nertc.IMediaStatsObserver.OnRemoteAudioStats ( object  channelOrEngine,
RtcAudioRecvStats[]  stats 
)

Callback for stats of remote audio stream in the call。 The callback returns the stats of the remote audio stream in the call every 2 seconds.

Parameters
channelOrEngineThe curren IRtcChannel object or IRtcEngine object.
statsarray containing audio stream stats of each remote user. See nertc_audio_recv_stats.

◆ OnLocalVideoStats()

void nertc.IMediaStatsObserver.OnLocalVideoStats ( object  channelOrEngine,
RtcVideoSendStats  stats 
)

Callback for the stats of the local video stream.

The callback returns stats of the local publishing video stream every 2 seconds.

Parameters
channelOrEngineThe curren IRtcChannel object or IRtcEngine object.
statsLocal video stream stats.See nertc_video_send_stats.

◆ OnRemoteVideoStats()

void nertc.IMediaStatsObserver.OnRemoteVideoStats ( object  channelOrEngine,
RtcVideoRecvStats[]  stats 
)

Callback for stats of remote video stream in the call。 The callback returns the stats of the remote video stream in the call every 2 seconds.

Parameters
channelOrEngineThe curren IRtcChannel object or IRtcEngine object.
statsarray containing video stream stats of each remote user.See nertc_video_recv_stats.

◆ OnNetworkQuality()

void nertc.IMediaStatsObserver.OnNetworkQuality ( object  channelOrEngine,
RtcNetworkQualityInfo[]  infos 
)

Callback for the network quality of each user. The callback returns the network status of each user in the call every 2 seconds, and only reports the members whose network status has changed.

Parameters
channelOrEngineThe curren IRtcChannel object or IRtcEngine object.
infosThe array of each user ID and network upstream and downstream quality information: nertc_network_quality_info

The documentation for this interface was generated from the following file: