demo · v131

RTCRtpEncodingParameters.scaleResolutionDownTo

Until 131 you set scaleResolutionDownBy (a divisor). The new scaleResolutionDownTo takes a target { width, height } directly. Pick a source size and a target, and compare what each API produces.

× ×

legacy: scaleResolutionDownBy

new: scaleResolutionDownTo

generated encoding params



  

the api

sender.setParameters({
  encodings: [{
    scaleResolutionDownTo: { width: 640, height: 360 },
  }],
});

see also