Open achingbrain opened 3 months ago
Thanks for the PR. But I can not see any reference from docs. https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/RTCPeerConnection
It's a non standard option, true.
It'll only appear as a valid option if you import the polyfill and use it directly.
If you use the bundled types from lib.dom.d.ts
it'll not be available.
As I understood this is a special case for your app. Since this part is polyfill I am not sure how to continue.
There are cases where we need to use methods on
PeerConnection
that are not available onRTCPeerConnection
, but then we wish to pass theRTCPeerConnection
on to other code for it to use in a polymorphic node/browser way.Add an option to the polyfilled
RTCPeerConnection
to pass a preconfiguredPeerConnection
instance in, instead of always creating one.