|
|
@@ -1,34 +0,0 @@
|
|
1
|
|
-import TraceablePeerConnection from '../RTC/TraceablePeerConnection';
|
|
2
|
|
-
|
|
3
|
|
-declare class CallStats {
|
|
4
|
|
- constructor( tpc: TraceablePeerConnection, options: {
|
|
5
|
|
- confID: string,
|
|
6
|
|
- remoteUserID?: string
|
|
7
|
|
- } );
|
|
8
|
|
- static readonly fabrics: Set<CallStats>;
|
|
9
|
|
- static initBackend: ( options: {
|
|
10
|
|
- callStatsID: string,
|
|
11
|
|
- callStatsSecret: string,
|
|
12
|
|
- aliasName: string
|
|
13
|
|
- userName: string
|
|
14
|
|
- } ) => boolean;
|
|
15
|
|
- static isBackendInitialized: () => boolean;
|
|
16
|
|
- static sendActiveDeviceListEvent: ( devicesData: { deviceList: { string: string } }, cs: CallStats ) => void; // TODO: not convinced by this definition
|
|
17
|
|
- static sendApplicationLog: ( e: Error, cs: CallStats ) => void;
|
|
18
|
|
- static sendFeedback: ( conferenceID: string, overall: 1 | 2 | 3 | 4 | 5, comment: unknown ) => Promise<unknown>; // TODO:
|
|
19
|
|
- static sendGetUserMediaFailed: ( e: Error, cs: CallStats ) => void;
|
|
20
|
|
- static sendMuteEvent: ( mute: boolean, type: "audio" | "video", cs: CallStats ) => void;
|
|
21
|
|
- associateStreamWithVideoTag: ( ssrc: number, isLocal: boolean, streamEndpointId: string | null, usageLabel: string, containerId: string ) => void;
|
|
22
|
|
- sendDominantSpeakerEvent: () => void;
|
|
23
|
|
- sendTerminateEvent: () => void;
|
|
24
|
|
- sendIceConnectionFailedEvent: () => void;
|
|
25
|
|
- sendCreateOfferFailed: ( e: Error ) => void;
|
|
26
|
|
- sendCreateAnswerFailed: ( e: Error ) => void;
|
|
27
|
|
- sendResumeOrHoldEvent: ( isResume: boolean ) => void;
|
|
28
|
|
- sendScreenSharingEvent: ( start: boolean, ssrc: string | null ) => void;
|
|
29
|
|
- sendSetLocalDescFailed: ( e: Error ) => void;
|
|
30
|
|
- sendSetRemoteDescFailed: ( e: Error ) => void;
|
|
31
|
|
- sendAddIceCandidateFailed: ( e: Error ) => void;
|
|
32
|
|
-}
|
|
33
|
|
-
|
|
34
|
|
-export default CallStats;
|