1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-25 05:23:13 +03:00

Expose webrtc related types/props

This commit is contained in:
Robert Long
2021-11-30 13:01:35 -08:00
parent fcc4b71f06
commit e336aceaba
2 changed files with 3 additions and 1 deletions

View File

@@ -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)

View File

@@ -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<RTCIceCandidate> = [];
private candidateSendTries = 0;
private sentEndOfCandidates = false;
private peerConn: RTCPeerConnection;
private feeds: Array<CallFeed> = [];
private usermediaSenders: Array<RTCRtpSender> = [];
private screensharingSenders: Array<RTCRtpSender> = [];