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 }