Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sender: fix serializing RTCRtpSendParameters
It's possible for user code to replace encodings entirely. Thus, the resulting array will not have RTCRtpEncodingParameters object instances, but plain objects. Handle it by deep-cloning the objects with JSON.parse(JSON.stringify(x)) since that will take care of appropriately serializing them, no matter the type.
- Loading branch information