by j1elo · 6y ago · 0 comments
Wouldn't have been clearer to have createOffer + processAnswer (for a negotiation started locally), and processOffer + createAnswer (to respond to remote offers), and set the local/remote descriptions implicitly as part of these methods?
You can change lots of undocumented stuff in the SDP! This list isn't exhaustive, but I have seen production apps do these.
* Change ice ufrag/upwd
* Enable simulcast
* Change code preferences
* Change codec specific behavior (Opus ptime)
My guess is that it works this way so browser vendors don't have to actually standardize behavior. They don't need to go through the W3C every time they want add something new. ORTC was released to try and fix this though. `SDP Munging` is a terrible idea and has caused me so many headaches :/