|
@@ -4,12 +4,11 @@ import { JitsiConferenceEvents } from '../../JitsiConferenceEvents';
|
4
|
4
|
import * as JitsiTrackEvents from '../../JitsiTrackEvents';
|
5
|
5
|
import RTCEvents from '../../service/RTC/RTCEvents';
|
6
|
6
|
import { createTrackStreamingStatusEvent } from '../../service/statistics/AnalyticsEvents';
|
7
|
|
-import JitsiConference from '../../types/hand-crafted/JitsiConference';
|
8
|
|
-import JitsiRemoteTrack from '../../types/hand-crafted/modules/RTC/JitsiRemoteTrack';
|
9
|
|
-import RTC from '../../types/hand-crafted/modules/RTC/RTC';
|
10
|
|
-import { VideoType } from '../../types/hand-crafted/service/RTC/VideoType';
|
11
|
7
|
import browser from '../browser';
|
12
|
8
|
import Statistics from '../statistics/statistics';
|
|
9
|
+import JitsiRemoteTrack from '../RTC/JitsiRemoteTrack';
|
|
10
|
+import { VideoType } from '../../service/RTC/VideoType';
|
|
11
|
+import RTC from '../RTC/RTC';
|
13
|
12
|
|
14
|
13
|
/** Track streaming statuses. */
|
15
|
14
|
export enum TrackStreamingStatus {
|
|
@@ -38,7 +37,6 @@ export enum TrackStreamingStatus {
|
38
|
37
|
}
|
39
|
38
|
|
40
|
39
|
type StreamingStatusMap = {
|
41
|
|
- // TODO: Replace this hand crafted VideoType when we convert VideoType.js to Typescript.
|
42
|
40
|
videoType?: VideoType,
|
43
|
41
|
startedMs?: number,
|
44
|
42
|
p2p?: boolean,
|
|
@@ -75,7 +73,7 @@ const DEFAULT_RESTORING_TIMEOUT = 10000;
|
75
|
73
|
*/
|
76
|
74
|
export class TrackStreamingStatusImpl {
|
77
|
75
|
rtc: RTC;
|
78
|
|
- conference: JitsiConference;
|
|
76
|
+ conference: any; // TODO: needs JitsiConference type
|
79
|
77
|
track: JitsiRemoteTrack;
|
80
|
78
|
|
81
|
79
|
/** This holds the timeout callback ID scheduled using window.setTimeout. */
|
|
@@ -207,7 +205,7 @@ export class TrackStreamingStatusImpl {
|
207
|
205
|
*
|
208
|
206
|
* @constructor
|
209
|
207
|
* @param rtc - the RTC service instance
|
210
|
|
- * @param conference - parent conference instance
|
|
208
|
+ * @param conference - parent conference instance // TODO: Needs JitsiConference Type
|
211
|
209
|
* @param {Object} options
|
212
|
210
|
* @param {number} [options.p2pRtcMuteTimeout=2500] custom value for
|
213
|
211
|
* {@link TrackStreamingStatusImpl.p2pRtcMuteTimeout}.
|
|
@@ -216,7 +214,7 @@ export class TrackStreamingStatusImpl {
|
216
|
214
|
* @param {number} [options.outOfForwardedSourcesTimeout=500] custom value for
|
217
|
215
|
* {@link TrackStreamingStatusImpl.outOfForwardedSourcesTimeout}.
|
218
|
216
|
*/
|
219
|
|
- constructor(rtc: RTC, conference: JitsiConference, track: JitsiRemoteTrack, options: {
|
|
217
|
+ constructor(rtc: RTC, conference: any, track: JitsiRemoteTrack, options: {
|
220
|
218
|
outOfForwardedSourcesTimeout: number,
|
221
|
219
|
p2pRtcMuteTimeout: number,
|
222
|
220
|
rtcMuteTimeout: number
|