mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +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) {
|
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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user