修复simulcast无法开启主码流的问题

This commit is contained in:
ziyue 2021-06-25 13:23:10 +08:00
parent ebb947c698
commit ba672178b4

View File

@ -7399,18 +7399,11 @@ var ZLMRTCClient = (function (exports) {
}; };
if (this.options.simulcast && stream.getVideoTracks().length > 0) { if (this.options.simulcast && stream.getVideoTracks().length > 0) {
VideoTransceiverInit.sendEncodings = [{ VideoTransceiverInit.sendEncodings = [
rid: 'q', { rid: "h", active: true, maxBitrate: 1000000 },
active: true, { rid: "m", active: true, maxBitrate: 500000, scaleResolutionDownBy: 2 },
scaleResolutionDownBy: 4.0 { rid: "l", active: true, maxBitrate: 200000, scaleResolutionDownBy: 4 }
}, { ];
rid: 'h',
active: true,
scaleResolutionDownBy: 2.0
}, {
rid: 'f',
active: true
}];
} }
if (stream.getAudioTracks().length > 0) { if (stream.getAudioTracks().length > 0) {