[mirotalksfu] - change scalability mode
هذا الالتزام موجود في:
@@ -150,7 +150,7 @@ module.exports = class Peer {
|
|||||||
case 'simulcast':
|
case 'simulcast':
|
||||||
// L1T3/L2T3/L3T3
|
// L1T3/L2T3/L3T3
|
||||||
await consumer.setPreferredLayers({
|
await consumer.setPreferredLayers({
|
||||||
spatialLayer: 3, // 1 2 3
|
spatialLayer: 1, // 1/2/3
|
||||||
temporalLayer: 3,
|
temporalLayer: 3,
|
||||||
});
|
});
|
||||||
log.debug('Consumer scalabilityMode ----->', {
|
log.debug('Consumer scalabilityMode ----->', {
|
||||||
|
|||||||
@@ -187,14 +187,15 @@ class RoomClient {
|
|||||||
this.chunkSize = 1024 * 16; // 16kb/s
|
this.chunkSize = 1024 * 16; // 16kb/s
|
||||||
|
|
||||||
// Encodings
|
// Encodings
|
||||||
|
// https://www.w3.org/TR/webrtc-svc/#scalabilitymodes*
|
||||||
this.forceVP8 = false; // Force VP8 codec for webcam and screen sharing
|
this.forceVP8 = false; // Force VP8 codec for webcam and screen sharing
|
||||||
this.forceVP9 = false; // Force VP9 codec for webcam and screen sharing
|
this.forceVP9 = false; // Force VP9 codec for webcam and screen sharing
|
||||||
this.forceH264 = false; // Force H264 codec for webcam and screen sharing
|
this.forceH264 = false; // Force H264 codec for webcam and screen sharing
|
||||||
this.enableWebcamLayers = true; // Enable simulcast or SVC for webcam
|
this.enableWebcamLayers = true; // Enable simulcast or SVC for webcam
|
||||||
this.enableSharingLayers = false; // Enable simulcast or SVC for screen sharing
|
this.enableSharingLayers = false; // Enable simulcast or SVC for screen sharing
|
||||||
this.numSimulcastStreams = 3; // Number of streams for simulcast in webcam and screen sharing
|
this.numSimulcastStreams = 3; // Number of streams for simulcast in webcam and screen sharing
|
||||||
this.webcamScalabilityMode = 'L3T3'; // Scalability Mode for webcam | 'L1T3' for VP8/H264 (in each simulcast encoding), 'L3T3_KEY' for VP9
|
this.webcamScalabilityMode = ''; // 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.sharingScalabilityMode = ''; // Scalability Mode for screen sharing | 'L1T3' for VP8/H264 (in each simulcast encoding), 'L3T3' for VP9
|
||||||
|
|
||||||
this.myVideoEl = null;
|
this.myVideoEl = null;
|
||||||
this.myAudioEl = null;
|
this.myAudioEl = null;
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم