From e336aceaba71a90277ad53db0beb65b364f2f36e Mon Sep 17 00:00:00 2001 From: Robert Long Date: Tue, 30 Nov 2021 13:01:35 -0800 Subject: [PATCH] Expose webrtc related types/props --- src/matrix.ts | 2 ++ src/webrtc/call.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/matrix.ts b/src/matrix.ts index ccdfea69e..1239ccdfd 100644 --- a/src/matrix.ts +++ b/src/matrix.ts @@ -48,12 +48,14 @@ export * from "./crypto/store/indexeddb-crypto-store"; export * from "./content-repo"; export * as ContentHelpers from "./content-helpers"; export { createNewMatrixCall } from "./webrtc/call"; +export type { MatrixCall } from "./webrtc/call"; export { GroupCallEvent, GroupCallIntent, GroupCallState, GroupCallType, } from "./webrtc/groupCall"; +export type { GroupCall } from "./webrtc/groupCall"; // expose the underlying request object so different environments can use // different request libs (e.g. request or browser-request) diff --git a/src/webrtc/call.ts b/src/webrtc/call.ts index 12222d4ba..f42ab48b3 100644 --- a/src/webrtc/call.ts +++ b/src/webrtc/call.ts @@ -265,6 +265,7 @@ export class MatrixCall extends EventEmitter { public hangupReason: string; public direction: CallDirection; public ourPartyId: string; + public peerConn?: RTCPeerConnection; private client: MatrixClient; private forceTURN: boolean; @@ -275,7 +276,6 @@ export class MatrixCall extends EventEmitter { private candidateSendQueue: Array = []; private candidateSendTries = 0; private sentEndOfCandidates = false; - private peerConn: RTCPeerConnection; private feeds: Array = []; private usermediaSenders: Array = []; private screensharingSenders: Array = [];