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

Extract the call event handler out to its own class

and convert it to TypeScript
This commit is contained in:
David Baker
2020-10-08 11:10:20 +01:00
parent fb89761671
commit 487a9c0967
3 changed files with 248 additions and 235 deletions

View File

@@ -45,10 +45,10 @@ import MatrixEvent from "../models/event"
*/
interface CallOpts {
roomId: string,
client: any, // Fix when client is TSified
forceTURN: boolean,
turnServers: Array<TurnServer>,
roomId?: string,
client?: any, // Fix when client is TSified
forceTURN?: boolean,
turnServers?: Array<TurnServer>,
}
interface TurnServer {
@@ -91,7 +91,7 @@ enum MediaQueueId {
LocalVideo = 'local_video',
}
enum CallErrorCode {
export enum CallErrorCode {
/** An error code when the local client failed to create an offer. */
LocalOfferFailed = 'local_offer_failed',
/**