LH-265-enable-audio-in-mediasoup #16

Closed
sergiu wants to merge 120 commits from LH-265-enable-audio-in-mediasoup into master
2 changed files with 2 additions and 4 deletions
Showing only changes of commit b41b8f2d64 - Show all commits

View File

@ -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
}

View File

@ -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
}