From ba672178b468869de38d9ed8ccf54107cc8f6fdd Mon Sep 17 00:00:00 2001 From: ziyue <1213642868@qq.com> Date: Fri, 25 Jun 2021 13:23:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dsimulcast=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E5=BC=80=E5=90=AF=E4=B8=BB=E7=A0=81=E6=B5=81=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- www/webrtc/ZLMRTCClient.js | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/www/webrtc/ZLMRTCClient.js b/www/webrtc/ZLMRTCClient.js index a92ed4a4..9934e7b8 100644 --- a/www/webrtc/ZLMRTCClient.js +++ b/www/webrtc/ZLMRTCClient.js @@ -7399,18 +7399,11 @@ var ZLMRTCClient = (function (exports) { }; if (this.options.simulcast && stream.getVideoTracks().length > 0) { - VideoTransceiverInit.sendEncodings = [{ - rid: 'q', - active: true, - scaleResolutionDownBy: 4.0 - }, { - rid: 'h', - active: true, - scaleResolutionDownBy: 2.0 - }, { - rid: 'f', - active: true - }]; + VideoTransceiverInit.sendEncodings = [ + { rid: "h", active: true, maxBitrate: 1000000 }, + { rid: "m", active: true, maxBitrate: 500000, scaleResolutionDownBy: 2 }, + { rid: "l", active: true, maxBitrate: 200000, scaleResolutionDownBy: 4 } + ]; } if (stream.getAudioTracks().length > 0) {