diff --git a/app/src/Peer.js b/app/src/Peer.js index 99ab70e0..42414eee 100644 --- a/app/src/Peer.js +++ b/app/src/Peer.js @@ -142,7 +142,7 @@ module.exports = class Peer { if (consumer.type === 'simulcast') { await consumer.setPreferredLayers({ - spatialLayer: 1, + spatialLayer: 3, temporalLayer: 3, }); log.debug('Consumer scalabilityMode ----->', { diff --git a/public/js/RoomClient.js b/public/js/RoomClient.js index 499ca7b1..8bd79f47 100644 --- a/public/js/RoomClient.js +++ b/public/js/RoomClient.js @@ -181,8 +181,8 @@ class RoomClient { this.enableWebcamLayers = true; // Enable simulcast or SVC for webcam this.enableSharingLayers = false; // Enable simulcast or SVC for screen sharing this.numSimulcastStreams = 3; // Number of streams for simulcast in webcam and screen sharing - this.webcamScalabilityMode = ''; // Scalability Mode for webcam | 'L1T3' for VP8/H264 (in each simulcast encoding), 'L3T3_KEY' for VP9 - this.sharingScalabilityMode = ''; // Scalability Mode for screen sharing | 'L1T3' for VP8/H264 (in each simulcast encoding), 'L3T3' for VP9 + this.webcamScalabilityMode = 'L3T3'; // Scalability Mode for webcam | 'L1T3' for VP8/H264 (in each simulcast encoding), 'L3T3_KEY' for VP9 + this.sharingScalabilityMode = 'L3T3'; // Scalability Mode for screen sharing | 'L1T3' for VP8/H264 (in each simulcast encoding), 'L3T3' for VP9 this.myVideoEl = null; this.myAudioEl = null; @@ -757,6 +757,8 @@ class RoomClient { }; } + console.log('PARAMS', params); + producer = await this.producerTransport.produce(params); console.log('PRODUCER', producer);