I needed to add some SDP fields to improve WebRTC video quality on Chrome and Safari. This required that I intercept the SDP coming back from FreeSwitch before its passed back to the WebRTC client.
In my case I'm adding these fields on all a=fmtp lines:
I needed to add some SDP fields to improve WebRTC video quality on Chrome and Safari. This required that I intercept the SDP coming back from FreeSwitch before its passed back to the WebRTC client.
In my case I'm adding these fields on all
a=fmtp
lines:I enabled this functionality by adding an optional function that can be passed to
mediaserver.connectCaller
calledmodifyMrfSdpResponse
.Here is an example of it being used:
With this implemented I have improved the quality of my video calls by many times. These SDP parameters are respected by both Chrome and Safar.