Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/witty-geese-wonder.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@whereby.com/media": patch
---

Patch global RTCPeerConnection for node stats
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ if (window.RTCPeerConnection) {
}
PatchedRTCPeerConnection.prototype = OriginalRTCPeerConnection.prototype;
(window.RTCPeerConnection as any) = PatchedRTCPeerConnection;
if (typeof global !== "undefined") {
(global.RTCPeerConnection as any) = PatchedRTCPeerConnection;
}
}

export const getCurrentPeerConnections = () => peerConnections;
Expand Down
Loading