Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MOS discrepany for Firefox #12

Open
subbro opened this issue Dec 31, 2023 · 2 comments
Open

MOS discrepany for Firefox #12

subbro opened this issue Dec 31, 2023 · 2 comments

Comments

@subbro
Copy link

subbro commented Dec 31, 2023

Hi All,
I am currently working on a project to enable VoIP calling on our application. To gauge the quality of the call, I plan to use MOS (Mean Opinion Score) which is available out of the box with webrtc-issue-detector library. However, when I use this library on my application in Chrome(V120) I see the score varying somewhere between 3.5 to 4.1 based on internet connectivity . But when I test this in Firefox (V115), I see the score to be almost constant and the value does not go down below 4.4. I have also tried webrtc-adapter but it doesn't help

Example:

Network stats:
 {"inboundStatsSample": {"avgJitter":0.001,"rtt":0,"packetsLoss":0},
"outboundStatsSample":{"avgJitter":0.019,"rtt":0,"packetsLoss":0}} 
Inbound network score 4.404392390941931 
Outbound network score 4.404375582089046

Network stats 
{"inboundStatsSample":{"avgJitter":0.002,"rtt":0,"packetsLoss":0},
"outboundStatsSample":{"avgJitter":0.019,"rtt":0,"packetsLoss":0}}
Inbound network score 4.404392390941931 
Outbound network score 4.404375582089046

Code:

    const webRtcIssueDetector = new WebRTCIssueDetector({
        onIssues: (issues) => issues.map((issue) => {
            console.log('Issues type:', issue.type); // eg. "network"
            console.log('Issues reason:', issue.reason); // eg. "outbound-network-throughput"
            console.log('Stats:', issue.statsSample); // eg. "packetLossPct: 12%, avgJitter: 230, rtt: 150"
        }),
        onNetworkScoresUpdated: (scores) => {
            console.log('Inbound network score', scores.inbound); // eg. 3.7
            console.log('Outbound network score', scores.outbound); // eg. 4.5
            console.log('Network stats', JSON.stringify(scores.statsSamples )); // eg. { inboundStatsSample: { avgJitter: 0.1, rtt: 30, packetsLoss: 8 }, ... }
        },
    });

Strange, but I have never seen the packetsLoss and rtt to be greater than 0 in Firefox

Looking forward for help..!! Thanks

@subbro
Copy link
Author

subbro commented Jan 2, 2024

@evgmel looping for support to understand if any other users have faced similar issues previously

@evgmel
Copy link
Collaborator

evgmel commented Jan 9, 2024

Hi @subbro,
Thanks for reaching out. Did you check WebRTC stats related to PacketsLost metrics in Firefox (about:webrtc)? Does it change when you enable network throttling (e.g. downlink packets loss) on your PC?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants