I am trying to reduce the bitrate in a RTCPeerConnection
within FireFox. I have successfully been able to do within Chrome.
I am modifying the SDP string that is automatically generated by FireFox after calling the createOffer
method. My callback modifies the SDP and then tries to set the SDP in the RTCSessionDescription
that is generated(which is just a DOMString
according to the protocol spec). In Chrome, I can modify that SDP string and then set it(done within a callback passed to createOffer
:
desc.sdp = TransFormSDP(desc.sdp);
connection.setLocalDescription(desc);
However, this does not seem to be working in FireFox, it will not update the SDP after my assignment and continues to utilize the string that was generated by the createOffer
method.
Specifically, I am trying to specifically add an fmtp: max-fr=15; max-fs=400;
restriction on the VP8
codec being offered and the bandwidth by adding b=AS:512
line in the video media portion of the SDP.
Does FF not allow you to modify the SDP after it has been automatically generated? Or Does FireFox disallow specific SDP options that are part of SDP's standardization(like bandwidth limits and codec settings)?
EDIT: Seriously FireFox??