[Webkit-unassigned] [Bug 279202] New: getParameters() scaleResolutionDownBy values default to 1,1,1 in simulcast; should be 4,2,1

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 5 09:58:28 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=279202

            Bug ID: 279202
           Summary: getParameters() scaleResolutionDownBy values default
                    to 1,1,1 in simulcast; should be 4,2,1
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebRTC
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: jib at mozilla.com
                CC: youennf at gmail.com

>From https://github.com/w3c/webrtc-extensions/pull/221#pullrequestreview-2283199325

STR: Paste this into web console:

   new RTCPeerConnection().addTransceiver("video", {sendEncodings: [{rid: "a"}, {rid: "b"}, {rid: "c"}]}).sender.getParameters().encodings.map(e => e.scaleResolutionDownBy)

Expected result (per spec, works in Firefox):
- [ 4, 2, 1 ]

Actual result:
- [ 1, 1, 1 ]

The spec https://w3c.github.io/webrtc-pc/#dfn-addtransceiver-sendencodings-validation-steps) says: "If kind is "video" and none of the encodings contain a scaleResolutionDownBy member, then for each encoding, add a scaleResolutionDownBy member with the value 2^(length of sendEncodings - encoding index - 1)"

See also https://issues.chromium.org/issues/344943229

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240905/aefdb693/attachment.htm>


More information about the webkit-unassigned mailing list