I use the VP9 KSVC Mode.
const codec = this._mediaDevice.rtpCapabilities.codecs.find((codec) => codec.mimeType.toLowerCase() === 'video/vp9');
this._webcamProducer = await this._sendTransport.produce(
{
track,
codec,
encodings:[
{ scalabilityMode: 'S3T3_KEY' }
],
codecOptions :
{
videoGoogleStartBitrate : 1000
},
appData :
{
source : 'webcam',
videoAspectRatio:1.777,
width:VIDEO_CONSTRAINS[resolution].width.ideal
}
});