Closed Bug 1611957 Opened 4 years ago Closed 2 years ago

Implement RTCRtpEncodingParameters.maxFramerate

Categories

(Core :: WebRTC: Signaling, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
101 Branch
Tracking Status
firefox101 --- fixed

People

(Reporter: bwc, Assigned: bwc)

References

(Blocks 1 open bug)

Details

(Keywords: dev-doc-complete)

Attachments

(3 files)

This is being moved to an extension spec now.

I think I might be able to sneak this in after bug 1616937, instead of having to wait until bug 1401592 lands.

Blocks: teams
Depends on: 1763435
Assignee: nobody → docfaraday
Severity: normal → S2
Priority: P4 → P2

0 is a valid limit in setParameters according to the spec. For now, we treat
max-fr=0 in SDP as no limit, since that is what we have been doing.

Depends on D144008

Pushed by bcampen@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5451bd3f5a86
Test-cases for RTCRtpEncodingParameters.maxFramerate r=ng
https://hg.mozilla.org/integration/autoland/rev/7cd1d16fd378
Make EncodingConstraints.maxFps a Maybe instead of having 0 represent no limit. r=ng
https://hg.mozilla.org/integration/autoland/rev/288cc1e05748
Add support for RTCRtpEncodingParameters.maxFramerate r=ng,webidl,smaug
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 101 Branch
Regressions: 1766490

FF101 docs work for this can be tracked in https://github.com/mdn/content/issues/15470

A question. The spec indicates that maxFramerate value of 0 should stop the video if set to zero by RTCRtpSender.setParameters(), and doesn't say what happens for RTCPeerConnection.addTransceiver() if the rate is set to zero.
It looks like you have allowed 0 to indicate "no limit".

  1. Is that correct?
  2. Isn't that a spec violation?
Flags: needinfo?(docfaraday)

(In reply to Hamish Willee from comment #9)

FF101 docs work for this can be tracked in https://github.com/mdn/content/issues/15470

A question. The spec indicates that maxFramerate value of 0 should stop the video if set to zero by RTCRtpSender.setParameters(), and doesn't say what happens for RTCPeerConnection.addTransceiver() if the rate is set to zero.
It looks like you have allowed 0 to indicate "no limit".

  1. Is that correct?

Nope! (You are correct, the behavior is not, not sure which question you were asking)

  1. Isn't that a spec violation?

Yep! Sadly, this is a limitation in libwebrtc upstream; it crashes if you set a framerate of 0. There's nothing we can do about this on our end at the moment; upstream will need to fix this, and then we'll need to update our import.

Flags: needinfo?(docfaraday)

Thanks Byron! I've updated the compatibility data and release note to add a note about issue.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: