blob: bbaa3baf1a9827e71af546d3f630801dd08a79de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
import { MatrixClient } from "../client";
import { GroupCall } from "./groupCall";
import { RoomMember } from "../models/room-member";
export declare enum GroupCallEventHandlerEvent {
Incoming = "GroupCall.incoming",
Outgoing = "GroupCall.outgoing",
Ended = "GroupCall.ended",
Participants = "GroupCall.participants"
}
export type GroupCallEventHandlerEventHandlerMap = {
[GroupCallEventHandlerEvent.Incoming]: (call: GroupCall) => void;
[GroupCallEventHandlerEvent.Outgoing]: (call: GroupCall) => void;
[GroupCallEventHandlerEvent.Ended]: (call: GroupCall) => void;
[GroupCallEventHandlerEvent.Participants]: (participants: RoomMember[], call: GroupCall) => void;
};
export declare class GroupCallEventHandler {
private client;
groupCalls: Map<string, GroupCall>;
private roomDeferreds;
constructor(client: MatrixClient);
start(): Promise<void>;
stop(): void;
private getRoomDeferred;
waitUntilRoomReadyForGroupCalls(roomId: string): Promise<void>;
getGroupCallById(groupCallId: string): GroupCall | undefined;
private createGroupCallForRoom;
private createGroupCallFromRoomStateEvent;
private onRoomsChanged;
private onRoomStateChanged;
}
//# sourceMappingURL=groupCallEventHandler.d.ts.map
|