- From: Jan-Ivar Bruaroey via GitHub <sysbot+gh@w3.org>
- Date: Fri, 23 Sep 2022 21:42:36 +0000
- To: public-webrtc-logs@w3.org
> ... had we been able to specify a default value for scaleResolutionDownBy in WebIDL ... Hmm, except the overall default in _addTransceiver_ isn't all `1`s, but a "smart" `2^(length of sendEncodings - encoding index - 1)` if all are untouched, but [nobody implements](https://jsfiddle.net/jib1/osme6x5d/23/) that yet it seems? So [should the following](https://jsfiddle.net/jib1/2yzw5ef1/) produce 1,1,1 or 4,2,1? ```js const pc = new RTCPeerConnection(); const tc = pc.addTransceiver("video", {sendEncodings: [{rid: 1}, {rid: 2}, {rid: 3}]); const params = tc.sender.getParameters(); delete params.encodings[0].scaleResolutionDownBy; delete params.encodings[1].scaleResolutionDownBy; delete params.encodings[2].scaleResolutionDownBy; await tc.sender.setParameters(params); ``` -- GitHub Notification of comment by jan-ivar Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/2730#issuecomment-1256704752 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 23 September 2022 21:42:38 UTC