How to get networkSendQuality while using azure communication service?
Het Rachh
0
Reputation points
I have implemented Video call service using azure communication library where i need to watch on network strength so i have implemented network quality using https://learn.microsoft.com/en-us/azure/communication-services/resources/troubleshooting/voice-video-calling/references/ufd/network-send-quality
I have implemented same code and given on above link but some how i am not getting "networkSendQuality" in diagnosticInfo
Here is code block
if (diagnosticInfo.diagnostic === 'networkSendQuality') {
console.log(diagnosticInfo.value, 'networkSendQuality...........................')
setLocalSignalStrength(networkQualityMap[diagnosticInfo.value]);
}
if (diagnosticInfo.valueType === 'DiagnosticQuality') {
if (diagnosticInfo.value === DiagnosticQuality.Bad) {
console.log(`${diagnosticInfo.diagnostic} is bad quality`);
} else if (diagnosticInfo.value === DiagnosticQuality.Poor) {
console.log(`${diagnosticInfo.diagnostic} is poor quality`);
}
} else if (diagnosticInfo.valueType === 'DiagnosticFlag') {
if (diagnosticInfo.value === true) {
console.log(`${diagnosticInfo.diagnostic}`);
}
}
Sign in to answer