LH-265-enable-audio-in-mediasoup #16
@ -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
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user