webrtc: fix setting bitrate when 'optimize for voice' is off (#3262)

This commit is contained in:
Alessandro Ros 2024-04-17 22:59:06 +02:00 committed by GitHub
parent 42d982cb92
commit 36f4425fa4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -359,7 +359,7 @@ const setAudioBitrate = (section, bitrate, voice) => {
lines[i] = 'a=fmtp:' + opusPayloadFormat + ' minptime=10;useinbandfec=1;maxaveragebitrate='
+ (parseInt(bitrate) * 1024).toString();
} else {
lines[i] = 'a=fmtp:' + opusPayloadFormat + ' maxplaybackrate=48000;stereo=1;sprop-stereo=1;maxaveragebitrate'
lines[i] = 'a=fmtp:' + opusPayloadFormat + ' maxplaybackrate=48000;stereo=1;sprop-stereo=1;maxaveragebitrate='
+ (parseInt(bitrate) * 1024).toString();
}
}