From b41b8f2d647a02a1ccc3bb2a56cfa532ab9b4d3e Mon Sep 17 00:00:00 2001 From: Sergiu Toma Date: Wed, 23 Nov 2022 15:57:27 +0200 Subject: [PATCH] Update server --- public/bundle.js | 3 +-- public/index.js | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/public/bundle.js b/public/bundle.js index fce5079..231b0cb 100644 --- a/public/bundle.js +++ b/public/bundle.js @@ -20462,8 +20462,6 @@ let originAssetId // https://mediasoup.org/documentation/v3/mediasoup-client/api/#transport-produce console.log('🟥 device', device); let videoParams = { - codec : device.rtpCapabilities.codecs - .find((codec) => codec.mimeType.toLowerCase() === 'video/vp9'), encodings: [ { scaleResolutionDownBy: 4, maxBitrate: 500000 }, { scaleResolutionDownBy: 2, maxBitrate: 1000000 }, @@ -20491,6 +20489,7 @@ const streamSuccess = (stream) => { videoParams = { track: videoTrack, + codec : device.rtpCapabilities.codecs.find((codec) => codec.mimeType.toLowerCase() === 'video/vp9'), ...videoParams } diff --git a/public/index.js b/public/index.js index f4e8780..8093fc0 100644 --- a/public/index.js +++ b/public/index.js @@ -104,8 +104,6 @@ let originAssetId // https://mediasoup.org/documentation/v3/mediasoup-client/api/#transport-produce console.log('🟥 device', device); let videoParams = { - codec : device.rtpCapabilities.codecs - .find((codec) => codec.mimeType.toLowerCase() === 'video/vp9'), encodings: [ { scaleResolutionDownBy: 4, maxBitrate: 500000 }, { scaleResolutionDownBy: 2, maxBitrate: 1000000 }, @@ -133,6 +131,7 @@ const streamSuccess = (stream) => { videoParams = { track: videoTrack, + codec : device.rtpCapabilities.codecs.find((codec) => codec.mimeType.toLowerCase() === 'video/vp9'), ...videoParams }