Bug 279202

Summary: getParameters() scaleResolutionDownBy values default to 1,1,1 in simulcast; should be 4,2,1
Product: WebKit Reporter: jib
Component: WebRTCAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: karlcow, youennf
Priority: P2 Keywords: BrowserCompat
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

jib
Reported 2024-09-05 09:58:28 PDT
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
Attachments
youenn fablet
Comment 1 2024-09-06 01:17:21 PDT
*** This bug has been marked as a duplicate of bug 279193 ***
Note You need to log in before you can comment on or make changes to this bug.