SDP munging, which is sometimes also called SDP mangling, is the process of modifying the SDP message contents prior to passing it to WebRTC.
SDP munging can take place before passing the local SDP created using createOffer() and/or createAnswer() to setLocalDescription(), or before passing the SDP received over the network to setRemoteDescription().
It is important to note that in 2025, SDP munging isn’t considered a good practice. Google is planning on limiting, deprecating and disabling support of SDP munging for certain SDP fields. It is advised to not make use of SDP munging if other techniques are available (and most of the time, you have better alternatives these days).


