Bug 279202
| Summary: | getParameters() scaleResolutionDownBy values default to 1,1,1 in simulcast; should be 4,2,1 | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | jib |
| Component: | WebRTC | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | karlcow, youennf |
| Priority: | P2 | Keywords: | BrowserCompat |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
jib
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
youenn fablet
*** This bug has been marked as a duplicate of bug 279193 ***