How to get networkSendQuality while using azure communication service?

Het Rachh 0 Reputation points
2024-07-05T10:31:46.9233333+00:00

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://video2.skills-academy.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}`);
            }
        }

Azure Communication Services
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
786 questions
0 comments No comments
{count} votes