handle.handleRemoteJsep({
customizeSdp: function(jsep) {
jsep.sdp = jsep.sdp.replace('useinbandfec=1', 'useinbandfec=1;maxaveragebitrate=96000')
}
})
We want to mung the answer SDP received from Janus, not the offer SDP, since maxaveragebitrate is used by the receiver to telll the sender what bitrate it prefers to receive.
There is also a stereo parameter that can be used to indicate receiver's preference for stereo audio.
I also, as recommended elsewhere for higher audio quality, set:
audio: {
autoGainControl: false,
echoCancellation: false,
noiseSuppression: false
}