-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvjsgoogleanalytics.d.ts
More file actions
65 lines (65 loc) · 2.4 KB
/
vjsgoogleanalytics.d.ts
File metadata and controls
65 lines (65 loc) · 2.4 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/// <reference path="../../src/definitions/JQuery.d.ts" />
/// <reference path="../../bower_components/videojs-plugin-components/vjsplugincomponents.d.ts" />
/// <reference path="../../src/definitions/VideoJS.d.ts" />
declare module GoogleAnalytics {
class XArray {
public length: number;
constructor();
public pop(): any;
public push(val): number;
}
class AnalyticsWrapper extends XArray {
public push(val): number;
}
}
declare module GoogleAnalytics {
interface ILoadingTimeObserver {
getTime(): number;
}
}
declare module GoogleAnalytics {
interface IPlayerAnalyticsObserver {
}
}
declare module GoogleAnalytics {
class LoadingTimeObserver {
public _player;
public _timer: VjsPluginComponents.ITimer;
static name: string;
constructor(player, timer: VjsPluginComponents.ITimer);
}
}
declare module GoogleAnalytics {
class PlayerAnalyticsObserver implements GoogleAnalytics.IPlayerAnalyticsObserver {
public _pointsToTrigger: number[];
public _eventHasFired;
public _triggeredPoints: any[];
public _category: string;
public _watchTriggerIndex: number;
public _title: string;
public _analytics: any[];
public _player: VjsPluginComponents.IPlayer;
public _seeked: boolean;
public _seeking: boolean;
public _loadingTimer: GoogleAnalytics.ILoadingTimeObserver;
public _singlePointEventRepository: VjsPluginComponents.IObservableRepository;
static name: string;
constructor(player: VjsPluginComponents.IPlayer, analytics, loadingTimer: GoogleAnalytics.ILoadingTimeObserver, singlePointEventRepository: VjsPluginComponents.IObservableRepository);
private setupEvents();
public resetTimingEvents(): void;
public reportEvent(action: string): void;
public reportSingleEvent(action: string): void;
public reportLoadingDurationEvent(): void;
public reportVideoDepartTimeEvent(): void;
public reportQualityChangeEvent(): void;
public reportTimeWatchedEvent(time: number): void;
public reportEndOfVideoEvent(): void;
}
}
declare module GoogleAnalytics {
class Plugin {
public _player: VjsPluginComponents.IPlayer;
constructor(player);
public enable(): void;
}
}