From aa7c2aea90e616d815a109dd8197735ad0ef4268 Mon Sep 17 00:00:00 2001 From: Sergiu Toma Date: Thu, 24 Nov 2022 13:35:32 +0200 Subject: [PATCH] Update server --- public/bundle.js | 50 ++++++++++++++++++++++++------------------------ public/index.js | 50 ++++++++++++++++++++++++------------------------ 2 files changed, 50 insertions(+), 50 deletions(-) diff --git a/public/bundle.js b/public/bundle.js index dcadca7..2bafe5e 100644 --- a/public/bundle.js +++ b/public/bundle.js @@ -20461,36 +20461,36 @@ let originAssetId // https://mediasoup.org/documentation/v3/mediasoup-client/api/#ProducerOptions // https://mediasoup.org/documentation/v3/mediasoup-client/api/#transport-produce let videoParams = { - // encodings: [ - // { scaleResolutionDownBy: 4, maxBitrate: 500000 }, - // { scaleResolutionDownBy: 2, maxBitrate: 1000000 }, - // { scaleResolutionDownBy: 1, maxBitrate: 5000000 }, - // { scalabilityMode: 'S3T3_KEY' } - // ], - // codecOptions: { - // videoGoogleStartBitrate: 1000 - // } encodings: [ - { - rid: 'r0', - maxBitrate: 100000, - scalabilityMode: 'S1T3', - }, - { - rid: 'r1', - maxBitrate: 300000, - scalabilityMode: 'S1T3', - }, - { - rid: 'r2', - maxBitrate: 900000, - scalabilityMode: 'S1T3', - }, + { scaleResolutionDownBy: 4, maxBitrate: 500000 }, + { scaleResolutionDownBy: 2, maxBitrate: 1000000 }, + { scaleResolutionDownBy: 1, maxBitrate: 5000000 }, + { scalabilityMode: 'S3T3_KEY' } ], - // https://mediasoup.org/documentation/v3/mediasoup-client/api/#ProducerCodecOptions codecOptions: { videoGoogleStartBitrate: 1000 } + // encodings: [ + // { + // rid: 'r0', + // maxBitrate: 100000, + // scalabilityMode: 'S1T3', + // }, + // { + // rid: 'r1', + // maxBitrate: 300000, + // scalabilityMode: 'S1T3', + // }, + // { + // rid: 'r2', + // maxBitrate: 900000, + // scalabilityMode: 'S1T3', + // }, + // ], + // // https://mediasoup.org/documentation/v3/mediasoup-client/api/#ProducerCodecOptions + // codecOptions: { + // videoGoogleStartBitrate: 1000 + // } } let audioParams = { diff --git a/public/index.js b/public/index.js index 72275b4..43796e9 100644 --- a/public/index.js +++ b/public/index.js @@ -103,36 +103,36 @@ let originAssetId // https://mediasoup.org/documentation/v3/mediasoup-client/api/#ProducerOptions // https://mediasoup.org/documentation/v3/mediasoup-client/api/#transport-produce let videoParams = { - // encodings: [ - // { scaleResolutionDownBy: 4, maxBitrate: 500000 }, - // { scaleResolutionDownBy: 2, maxBitrate: 1000000 }, - // { scaleResolutionDownBy: 1, maxBitrate: 5000000 }, - // { scalabilityMode: 'S3T3_KEY' } - // ], - // codecOptions: { - // videoGoogleStartBitrate: 1000 - // } encodings: [ - { - rid: 'r0', - maxBitrate: 100000, - scalabilityMode: 'S1T3', - }, - { - rid: 'r1', - maxBitrate: 300000, - scalabilityMode: 'S1T3', - }, - { - rid: 'r2', - maxBitrate: 900000, - scalabilityMode: 'S1T3', - }, + { scaleResolutionDownBy: 4, maxBitrate: 500000 }, + { scaleResolutionDownBy: 2, maxBitrate: 1000000 }, + { scaleResolutionDownBy: 1, maxBitrate: 5000000 }, + { scalabilityMode: 'S3T3_KEY' } ], - // https://mediasoup.org/documentation/v3/mediasoup-client/api/#ProducerCodecOptions codecOptions: { videoGoogleStartBitrate: 1000 } + // encodings: [ + // { + // rid: 'r0', + // maxBitrate: 100000, + // scalabilityMode: 'S1T3', + // }, + // { + // rid: 'r1', + // maxBitrate: 300000, + // scalabilityMode: 'S1T3', + // }, + // { + // rid: 'r2', + // maxBitrate: 900000, + // scalabilityMode: 'S1T3', + // }, + // ], + // // https://mediasoup.org/documentation/v3/mediasoup-client/api/#ProducerCodecOptions + // codecOptions: { + // videoGoogleStartBitrate: 1000 + // } } let audioParams = {