Subscribing to Poor Network Connection Notifications
Function
This API is used to subscribe to poor network connection notifications.
Function Prototype
setOnPoorNetworkQualityInfoNotifyCB(onPoorNetworkQualityInfoNotify: (poorNetWorkInfo: PoorNetWorkQualityInfo) => void): voidsetOnPoorNetworkQualityInfoNotifyCB(onPoorNetworkQualityInfoNotify: (poorNetWorkInfo: PoorNetWorkQualityInfo) => void): void
Request Parameters
Parameter | Mandatory | Type | Description |
---|---|---|---|
onPoorNetworkQualityInfoNotify | Yes | (poorNetWorkInfo: PoorNetWorkQualityInfo) => void | Notification about poor network connection. |
Return Values
void
Notification Method Parameters
(poorNetWorkInfo: PoorNetWorkQualityInfo) => void
Parameter | Type | Description |
---|---|---|
poorNetWorkInfo | PoorNetWorkQualityInfo | Type of poor network connection. |
Parameter | Type | Description |
---|---|---|
nickName | string | Participant name. |
number | string | Number. If this parameter is set to the SIP number (for example, +99111244216210249) allocated to the account, the Huawei Cloud Meeting app is called. If this parameter is set to a PSTN number (for example, 18700000000), the number is called through the VoIP gateway if the enterprise has enabled PSTN call. This parameter is used for account and password authentication. Either this parameter or thirdUserId must be set. |
thirdUserId | string | Third-party user ID. This parameter is used for app ID authentication. Either this parameter or number must be set. |
accountId | string | Huawei Cloud Meeting account. |
isLocal | boolean | Whether the participant is the local client user. |
audioStatus | LowNetWorkStatusInfo | Network status of audio. |
videoStatus | LowNetWorkStatusInfo | Network status of video. |
shareStatus | LowNetWorkStatusInfo | Network status of sharing. |
Parameter | Type | Description |
---|---|---|
packetLoss | number | Packet loss rate. |
delay | number | Delay. |
jitter | number | Jitter. |
status | LowNetWorkStatus | Network status. |
Enumeration Name | Enumerated Value | Description |
---|---|---|
LOW_NET_WORK_STATUS_NORMAL | 0 | Normal. |
LOW_NET_WORK_STATUS_BAD | 1 | Poor. |
LOW_NET_WORK_STATUS_VERY_BAD | 2 | Very poor. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot