mediasoup-client
Advanced tools
Comparing version 3.6.76 to 3.6.77
@@ -285,3 +285,10 @@ "use strict"; | ||
for (const encoding of sendingRtpParameters.encodings) { | ||
encoding.scalabilityMode = 'S1T2'; | ||
if (encoding.scalabilityMode) { | ||
encoding.scalabilityMode = `S1T${layers.temporalLayers}`; | ||
} | ||
else { | ||
// By default Chrome enables 2 temporal layers (not in all OS but | ||
// anyway). | ||
encoding.scalabilityMode = 'S1T2'; | ||
} | ||
} | ||
@@ -288,0 +295,0 @@ } |
@@ -36,2 +36,3 @@ "use strict"; | ||
const RemoteSdp_1 = require("./sdp/RemoteSdp"); | ||
const scalabilityModes_1 = require("../scalabilityModes"); | ||
const logger = new Logger_1.Logger('Firefox60'); | ||
@@ -263,2 +264,3 @@ const SCTP_NUM_STREAMS = { OS: 16, MIS: 2048 }; | ||
await this.setupTransport({ localDtlsRole: 'client', localSdpObject }); | ||
const layers = (0, scalabilityModes_1.parse)((encodings || [{}])[0].scalabilityMode); | ||
logger.debug('send() | calling pc.setLocalDescription() [offer:%o]', offer); | ||
@@ -298,3 +300,9 @@ await this._pc.setLocalDescription(offer); | ||
for (const encoding of sendingRtpParameters.encodings) { | ||
encoding.scalabilityMode = 'S1T2'; | ||
if (encoding.scalabilityMode) { | ||
encoding.scalabilityMode = `S1T${layers.temporalLayers}`; | ||
} | ||
else { | ||
// By default Firefox enables 2 temporal layers. | ||
encoding.scalabilityMode = 'S1T2'; | ||
} | ||
} | ||
@@ -301,0 +309,0 @@ } |
@@ -35,2 +35,3 @@ "use strict"; | ||
const RemoteSdp_1 = require("./sdp/RemoteSdp"); | ||
const scalabilityModes_1 = require("../scalabilityModes"); | ||
const logger = new Logger_1.Logger('Safari12'); | ||
@@ -221,2 +222,3 @@ const SCTP_NUM_STREAMS = { OS: 1024, MIS: 1024 }; | ||
} | ||
const layers = (0, scalabilityModes_1.parse)((encodings || [{}])[0].scalabilityMode); | ||
if (encodings && encodings.length > 1) { | ||
@@ -259,3 +261,9 @@ logger.debug('send() | enabling legacy simulcast'); | ||
for (const encoding of sendingRtpParameters.encodings) { | ||
encoding.scalabilityMode = 'S1T3'; | ||
if (encoding.scalabilityMode) { | ||
encoding.scalabilityMode = `S1T${layers.temporalLayers}`; | ||
} | ||
else { | ||
// By default Safari enables 3 temporal layers. | ||
encoding.scalabilityMode = 'S1T3'; | ||
} | ||
} | ||
@@ -262,0 +270,0 @@ } |
@@ -11,3 +11,3 @@ import debug from 'debug'; | ||
*/ | ||
export declare const version = "3.6.76"; | ||
export declare const version = "3.6.77"; | ||
/** | ||
@@ -14,0 +14,0 @@ * Expose Device class and detectDevice() helper. |
@@ -40,3 +40,3 @@ "use strict"; | ||
*/ | ||
exports.version = '3.6.76'; | ||
exports.version = '3.6.77'; | ||
/** | ||
@@ -43,0 +43,0 @@ * Expose parseScalabilityMode() function. |
{ | ||
"name": "mediasoup-client", | ||
"version": "3.6.76", | ||
"version": "3.6.77", | ||
"description": "mediasoup client side JavaScript library", | ||
@@ -5,0 +5,0 @@ "contributors": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
690624
15058