You've already forked matrix-js-sdk
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:
@@ -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',
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user