NERtc Unity SDK
V4.5.907
|
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) |
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.
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.
channelOrEngine | The curren IRtcChannel object or IRtcEngine object. |
stats | NERTC Engine statistics: nertc_stats |
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.
channelOrEngine | The curren IRtcChannel object or IRtcEngine object. |
stats | Local audio stream stats. See nertc_audio_send_stats. |
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.
channelOrEngine | The curren IRtcChannel object or IRtcEngine object. |
stats | array containing audio stream stats of each remote user. See nertc_audio_recv_stats. |
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.
channelOrEngine | The curren IRtcChannel object or IRtcEngine object. |
stats | Local video stream stats.See nertc_video_send_stats. |
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.
channelOrEngine | The curren IRtcChannel object or IRtcEngine object. |
stats | array containing video stream stats of each remote user.See nertc_video_recv_stats. |
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.
channelOrEngine | The curren IRtcChannel object or IRtcEngine object. |
infos | The array of each user ID and network upstream and downstream quality information: nertc_network_quality_info |