mirror of
https://github.com/bluenviron/mediamtx
synced 2025-01-31 11:41:59 +00:00
webrtc: fix setting bitrate when 'optimize for voice' is off (#3262)
This commit is contained in:
parent
42d982cb92
commit
36f4425fa4
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user