You've already forked matrix-js-sdk
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:
@@ -48,12 +48,14 @@ export * from "./crypto/store/indexeddb-crypto-store";
|
|||||||
export * from "./content-repo";
|
export * from "./content-repo";
|
||||||
export * as ContentHelpers from "./content-helpers";
|
export * as ContentHelpers from "./content-helpers";
|
||||||
export { createNewMatrixCall } from "./webrtc/call";
|
export { createNewMatrixCall } from "./webrtc/call";
|
||||||
|
export type { MatrixCall } from "./webrtc/call";
|
||||||
export {
|
export {
|
||||||
GroupCallEvent,
|
GroupCallEvent,
|
||||||
GroupCallIntent,
|
GroupCallIntent,
|
||||||
GroupCallState,
|
GroupCallState,
|
||||||
GroupCallType,
|
GroupCallType,
|
||||||
} from "./webrtc/groupCall";
|
} from "./webrtc/groupCall";
|
||||||
|
export type { GroupCall } from "./webrtc/groupCall";
|
||||||
|
|
||||||
// expose the underlying request object so different environments can use
|
// expose the underlying request object so different environments can use
|
||||||
// different request libs (e.g. request or browser-request)
|
// different request libs (e.g. request or browser-request)
|
||||||
|
|||||||
@@ -265,6 +265,7 @@ export class MatrixCall extends EventEmitter {
|
|||||||
public hangupReason: string;
|
public hangupReason: string;
|
||||||
public direction: CallDirection;
|
public direction: CallDirection;
|
||||||
public ourPartyId: string;
|
public ourPartyId: string;
|
||||||
|
public peerConn?: RTCPeerConnection;
|
||||||
|
|
||||||
private client: MatrixClient;
|
private client: MatrixClient;
|
||||||
private forceTURN: boolean;
|
private forceTURN: boolean;
|
||||||
@@ -275,7 +276,6 @@ export class MatrixCall extends EventEmitter {
|
|||||||
private candidateSendQueue: Array<RTCIceCandidate> = [];
|
private candidateSendQueue: Array<RTCIceCandidate> = [];
|
||||||
private candidateSendTries = 0;
|
private candidateSendTries = 0;
|
||||||
private sentEndOfCandidates = false;
|
private sentEndOfCandidates = false;
|
||||||
private peerConn: RTCPeerConnection;
|
|
||||||
private feeds: Array<CallFeed> = [];
|
private feeds: Array<CallFeed> = [];
|
||||||
private usermediaSenders: Array<RTCRtpSender> = [];
|
private usermediaSenders: Array<RTCRtpSender> = [];
|
||||||
private screensharingSenders: Array<RTCRtpSender> = [];
|
private screensharingSenders: Array<RTCRtpSender> = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user