setParameters encodings
My starting point.
by jib1
HTML
<div id="div" style="white-space: pre;"></div>
JavaScript
const console = {log: msg => div.innerHTML += `${msg}<br>`};
const dump = f => console.log(`${f.toString().slice(6)} = ${JSON.stringify(f(), null, 2)}`);
const wait = ms => new Promise(resolve => setTimeout(resolve, ms));
(async () => {
try {
const pc1 = new RTCPeerConnection(), pc2 = new RTCPeerConnection();
const tc = pc1.addTransceiver("video", {sendEncodings: [{rid: "a"}, {rid: "b"}]});
await pc1.setLocalDescription();
dump(() => tc.sender.getParameters().encodings);
} catch(e) {
console.log(e);
}
})();