mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 10:40:05 +08:00
修复simulcast无法开启主码流的问题
This commit is contained in:
parent
ebb947c698
commit
ba672178b4
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user