Closed Bug 1525341 Opened 8 months ago Closed 8 months ago

Jitter stat for WebRTC audio is always zero


(Core :: WebRTC, defect, P1)




Tracking Status
firefox-esr60 --- unaffected
firefox65 --- wontfix
firefox66 --- verified
firefox67 --- verified


(Reporter: ng, Assigned: ng)



(Keywords: regression)


(1 file)

The jitter stat for WebRTC audio appears to always be zero (at least in about:webrtc).

Assignee: nobody → na-g
Rank: 10
Keywords: regression
Priority: -- → P1

This appears to be a bug in libwebrtc. The voe::StatisticsProxy::ReceiverReportDerivedStats keeps track of the sample rate of the encoder[0], and it is being set by the webrtc::voe::StatisticsProxy[1], which initializes it to garbage[2]. This tends to be a much larger number than the real sample rate, which means that this is normally zero[3].


:ng any chance of getting a patch for this in 66?

Flags: needinfo?(na-g)

Tim, yes I think so.

Flags: needinfo?(na-g)

Any progress?

Flags: needinfo?(na-g)

RTP audio jitter stat is not updating because the playout frequency isn't being set

I dug through the upstream changes, and most of the effected code area has been rewritten or removed. I don't think we need to worry about carrying this patch forward with the next update.

Flags: needinfo?(na-g)
Pushed by
RTP audio jitter stat is not updating r=dminor
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla67

Does this need a Beta approval request or can it ride the trains?

Flags: needinfo?(na-g)

Comment on attachment 9045365 [details]
Bug 1525341 - RTP audio jitter stat is not updating

Beta/Release Uplift Approval Request

  • Feature/Bug causing the regression: Bug 1376873
  • User impact if declined: WebRTC service quality could degrade and operators would not know why.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: Go to

Press "Start!"

Accept the prompt to access camera and microphone.

Wait 5 - 10 seconds.

Check that both "Receiver side" sections contain a Jitter value that is non-zero (though it may be very small).

  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): This is a one line fix to a stat.
  • String changes made/needed:
Flags: needinfo?(na-g)
Attachment #9045365 - Flags: approval-mozilla-beta?

Comment on attachment 9045365 [details]
Bug 1525341 - RTP audio jitter stat is not updating

Looking at the patch, I'm ok with taking this for beta 12.
We can verify after it lands, in beta.

Attachment #9045365 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Flags: qe-verify+
Whiteboard: [qa-triaged]

Verifying this issue on Windows 10 x64 on latest Nightly and Beta 12:

Both jitter values are above 0, for example: Jitter1 is ~0.01 and Jitter2 ~0.012

Jitter1 value is above 0 (~0.01) but the second jitter value is always 0.

Nico, can you please check this out?

Flags: needinfo?(na-g)

I built and tested mozilla-unified beta tag @6bacdb768e5a, and it works as expected for me. It does take a little time for the value to show up.

Flags: needinfo?(na-g)

Tested a bit further, looks like only Windows 7/10 systems are affected on the Beta build.

The second jitter value will always be zero and besides that, the camera view is not displayed nor the mic recording played back. Screenshot here:
On macOS 10.13 and Ubuntu 16.04 works fine both on latest Nightly and on Beta12.

Beta Build 66.0b12 buildID: 20190301012442

Please let me know if I should submit a new bug or it will be handled in this one.

Flags: needinfo?(na-g)

Timea, interesting, looking at the image, the jitter stat that this patch touches is actually the first one which is updating (there are fewer audio stats than video stats). This definitely looks like another issue to me, probably with the local camera capture. Can you try this ? You should see the output of your web camera. Did this consistently reproduce for you? Can you reproduce it in Chrome?

Flags: needinfo?(na-g)
QA Whiteboard: [qa-triaged]
Whiteboard: [qa-triaged]

Tried out the new link that has only the webcam capture. It works on Nightly perfectly but it doesn't on Beta12 Windows 10 x64.
Chrome looks fine too, there seems to be a problem only on Firefox Beta12.

Flags: needinfo?(na-g)

That definitely looks like a different bug then. Can you please file that as a regression under WebRTC:Audio/Video?

Flags: needinfo?(na-g)

Sorry for the delay! Verified once again on a different testing device and different webcam/mic setup. It works fine now on the latest Beta and Nightly too. There is something wrong with my setup, windows updates mess up a lot of stuff lately.

Thanks Nico!
Closing this as Verified - Fixed.

QA Whiteboard: [qa-triaged]
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.