@evercam/ui 0.0.55-beta.14 → 0.0.55-beta.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,49 @@
1
+ import { PropType } from "vue";
2
+ export interface EToggleSwitchOptions {
3
+ title: string;
4
+ value: any;
5
+ }
6
+ declare const _default: import("vue").DefineComponent<{
7
+ options: {
8
+ type: PropType<EToggleSwitchOptions[]>;
9
+ required: true;
10
+ };
11
+ color: {
12
+ type: PropType<"primary" | "brand" | "gray">;
13
+ default: string;
14
+ };
15
+ size: {
16
+ type: PropType<"lg" | "md" | "sm">;
17
+ default: string;
18
+ };
19
+ defaultValue: {
20
+ type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
21
+ default: null;
22
+ };
23
+ }, {}, {
24
+ value: any;
25
+ }, {}, {
26
+ handleClick(value: any): void;
27
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
28
+ options: {
29
+ type: PropType<EToggleSwitchOptions[]>;
30
+ required: true;
31
+ };
32
+ color: {
33
+ type: PropType<"primary" | "brand" | "gray">;
34
+ default: string;
35
+ };
36
+ size: {
37
+ type: PropType<"lg" | "md" | "sm">;
38
+ default: string;
39
+ };
40
+ defaultValue: {
41
+ type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
42
+ default: null;
43
+ };
44
+ }>>, {
45
+ color: "primary" | "brand" | "gray";
46
+ size: "lg" | "md" | "sm";
47
+ defaultValue: string | number | boolean;
48
+ }>;
49
+ export default _default;
@@ -1,11 +1,126 @@
1
- import Hls from "hls.js";
2
- import Vue from "vue";
1
+ import Hls, { ErrorData, Events } from "hls.js";
2
+ import { PropType } from "vue";
3
3
  export type VideoSource = {
4
4
  type: string;
5
5
  src: string;
6
6
  };
7
7
  export declare const VIDEO_PLAYER_EVENTS: string[];
8
- declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => Vue<Record<string, any>, Record<string, any>, never, never, any>>, {
8
+ export declare enum EdgeVideoResolution {
9
+ _240 = 240,
10
+ _480 = 480,
11
+ _640 = 640,
12
+ _720 = 720,
13
+ _1080 = 1080
14
+ }
15
+ declare const _default: import("vue").DefineComponent<{
16
+ targetTimestamp: {
17
+ type: (StringConstructor | DateConstructor)[];
18
+ default: undefined;
19
+ };
20
+ sources: {
21
+ type: PropType<string | VideoSource[]>;
22
+ required: true;
23
+ };
24
+ videoListeners: {
25
+ type: PropType<Partial<HTMLVideoElement>>;
26
+ default: () => {};
27
+ };
28
+ videoOptions: {
29
+ type: PropType<Partial<HTMLVideoElement>>;
30
+ default: () => {};
31
+ };
32
+ isHls: {
33
+ type: BooleanConstructor;
34
+ default: boolean;
35
+ };
36
+ streamingToken: {
37
+ type: StringConstructor;
38
+ default: string;
39
+ };
40
+ isLiveView: {
41
+ type: BooleanConstructor;
42
+ default: boolean;
43
+ };
44
+ pauseOnClick: {
45
+ type: BooleanConstructor;
46
+ default: boolean;
47
+ };
48
+ isHlsLoading: {
49
+ type: BooleanConstructor;
50
+ default: boolean;
51
+ };
52
+ isPlaying: {
53
+ type: BooleanConstructor;
54
+ default: boolean;
55
+ };
56
+ preloadedInterval: {
57
+ type: PropType<{
58
+ start: string;
59
+ end: string;
60
+ }>;
61
+ default: () => {};
62
+ };
63
+ selectedResolution: {
64
+ type: PropType<EdgeVideoResolution | undefined>;
65
+ default: undefined;
66
+ };
67
+ isLive: {
68
+ type: BooleanConstructor;
69
+ default: boolean;
70
+ };
71
+ isZoomable: {
72
+ type: BooleanConstructor;
73
+ default: boolean;
74
+ };
75
+ zoomableIgnorePointerEvents: {
76
+ type: BooleanConstructor;
77
+ default: boolean;
78
+ };
79
+ blurBackground: {
80
+ type: BooleanConstructor;
81
+ default: boolean;
82
+ };
83
+ isRecordings: {
84
+ type: BooleanConstructor;
85
+ default: boolean;
86
+ };
87
+ progressBarEvents: {
88
+ type: ArrayConstructor;
89
+ default: () => never[];
90
+ };
91
+ progressBarFrames: {
92
+ type: ArrayConstructor;
93
+ default: () => never[];
94
+ };
95
+ progressBarFrameIndex: {
96
+ type: NumberConstructor;
97
+ default: number;
98
+ };
99
+ progressBarPreloadedFrames: {
100
+ type: ArrayConstructor;
101
+ default: () => never[];
102
+ };
103
+ thumbnailsUrls: {
104
+ type: PropType<string[]>;
105
+ default: () => never[];
106
+ };
107
+ timezone: {
108
+ type: StringConstructor;
109
+ default: string;
110
+ };
111
+ playPauseAnimation: {
112
+ type: BooleanConstructor;
113
+ default: boolean;
114
+ };
115
+ disablePlayPauseAnimation: {
116
+ type: BooleanConstructor;
117
+ default: boolean;
118
+ };
119
+ isWebRtc: {
120
+ type: BooleanConstructor;
121
+ default: boolean;
122
+ };
123
+ }, {}, {
9
124
  playing: boolean;
10
125
  percentagePlayed: number;
11
126
  videoLength: string;
@@ -20,9 +135,16 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
20
135
  isLoading: boolean;
21
136
  isError: boolean;
22
137
  player: Hls;
138
+ playbackRetries: number;
139
+ }, {
140
+ sourceItems(): VideoSource[];
141
+ hasStartedOrFinished(): boolean;
142
+ withControls(): "" | "hide";
23
143
  }, {
24
144
  initHls(): void;
145
+ onContainerClick(): void;
25
146
  handle404Error(): void;
147
+ handleHlsError(_: Events.ERROR, data: ErrorData): void;
26
148
  bindEvents(): void;
27
149
  unbindEvents(): void;
28
150
  bindVideoEvent(which: string): void;
@@ -35,9 +157,9 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
35
157
  handleScrubbingOnMouseEnd(e: MouseEvent): void;
36
158
  handleEnded(): void;
37
159
  handleLoading(): void;
38
- play(): void;
160
+ play(): Promise<void>;
39
161
  pause(): void;
40
- togglePlay(): void;
162
+ togglePlay(): Promise<void>;
41
163
  setPlaying(state: boolean): void;
42
164
  seekToPercentage(percentage: number): void;
43
165
  convertTimeToDuration(seconds: number): string;
@@ -50,16 +172,142 @@ declare const _default: import("vue/types/vue").ExtendedVue<Vue<Record<string, a
50
172
  skip(duration?: number): void;
51
173
  toggleScrubbing(e: MouseEvent): Promise<void>;
52
174
  handleKeyDown(e: KeyboardEvent): void;
53
- }, {
54
- sourceItems: VideoSource[];
55
- hasStartedOrFinished: boolean;
56
- withControls: "" | "hide";
57
- }, {
58
- sources: string | VideoSource[];
59
- videoListeners: {};
60
- videoOptions: {};
175
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
176
+ targetTimestamp: {
177
+ type: (StringConstructor | DateConstructor)[];
178
+ default: undefined;
179
+ };
180
+ sources: {
181
+ type: PropType<string | VideoSource[]>;
182
+ required: true;
183
+ };
184
+ videoListeners: {
185
+ type: PropType<Partial<HTMLVideoElement>>;
186
+ default: () => {};
187
+ };
188
+ videoOptions: {
189
+ type: PropType<Partial<HTMLVideoElement>>;
190
+ default: () => {};
191
+ };
192
+ isHls: {
193
+ type: BooleanConstructor;
194
+ default: boolean;
195
+ };
196
+ streamingToken: {
197
+ type: StringConstructor;
198
+ default: string;
199
+ };
200
+ isLiveView: {
201
+ type: BooleanConstructor;
202
+ default: boolean;
203
+ };
204
+ pauseOnClick: {
205
+ type: BooleanConstructor;
206
+ default: boolean;
207
+ };
208
+ isHlsLoading: {
209
+ type: BooleanConstructor;
210
+ default: boolean;
211
+ };
212
+ isPlaying: {
213
+ type: BooleanConstructor;
214
+ default: boolean;
215
+ };
216
+ preloadedInterval: {
217
+ type: PropType<{
218
+ start: string;
219
+ end: string;
220
+ }>;
221
+ default: () => {};
222
+ };
223
+ selectedResolution: {
224
+ type: PropType<EdgeVideoResolution | undefined>;
225
+ default: undefined;
226
+ };
227
+ isLive: {
228
+ type: BooleanConstructor;
229
+ default: boolean;
230
+ };
231
+ isZoomable: {
232
+ type: BooleanConstructor;
233
+ default: boolean;
234
+ };
235
+ zoomableIgnorePointerEvents: {
236
+ type: BooleanConstructor;
237
+ default: boolean;
238
+ };
239
+ blurBackground: {
240
+ type: BooleanConstructor;
241
+ default: boolean;
242
+ };
243
+ isRecordings: {
244
+ type: BooleanConstructor;
245
+ default: boolean;
246
+ };
247
+ progressBarEvents: {
248
+ type: ArrayConstructor;
249
+ default: () => never[];
250
+ };
251
+ progressBarFrames: {
252
+ type: ArrayConstructor;
253
+ default: () => never[];
254
+ };
255
+ progressBarFrameIndex: {
256
+ type: NumberConstructor;
257
+ default: number;
258
+ };
259
+ progressBarPreloadedFrames: {
260
+ type: ArrayConstructor;
261
+ default: () => never[];
262
+ };
263
+ thumbnailsUrls: {
264
+ type: PropType<string[]>;
265
+ default: () => never[];
266
+ };
267
+ timezone: {
268
+ type: StringConstructor;
269
+ default: string;
270
+ };
271
+ playPauseAnimation: {
272
+ type: BooleanConstructor;
273
+ default: boolean;
274
+ };
275
+ disablePlayPauseAnimation: {
276
+ type: BooleanConstructor;
277
+ default: boolean;
278
+ };
279
+ isWebRtc: {
280
+ type: BooleanConstructor;
281
+ default: boolean;
282
+ };
283
+ }>>, {
284
+ timezone: string;
285
+ isPlaying: boolean;
286
+ isLive: boolean;
287
+ targetTimestamp: string | Date;
288
+ thumbnailsUrls: string[];
289
+ selectedResolution: EdgeVideoResolution | undefined;
290
+ isHlsLoading: boolean;
291
+ videoListeners: Partial<HTMLVideoElement>;
292
+ videoOptions: Partial<HTMLVideoElement>;
61
293
  isHls: boolean;
62
294
  streamingToken: string;
63
295
  isLiveView: boolean;
64
- }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin>;
296
+ pauseOnClick: boolean;
297
+ preloadedInterval: {
298
+ start: string;
299
+ end: string;
300
+ };
301
+ isZoomable: boolean;
302
+ zoomableIgnorePointerEvents: boolean;
303
+ blurBackground: boolean;
304
+ isRecordings: boolean;
305
+ progressBarEvents: unknown[];
306
+ progressBarFrames: unknown[];
307
+ progressBarFrameIndex: number;
308
+ progressBarPreloadedFrames: unknown[];
309
+ playPauseAnimation: boolean;
310
+ disablePlayPauseAnimation: boolean;
311
+ isWebRtc: boolean;
312
+ }>;
65
313
  export default _default;
@@ -0,0 +1,193 @@
1
+ import { PropType } from "vue";
2
+ import { ImageQuality } from '../types';
3
+ import { EToggleSwitchOptions } from '../components/EToggleSwitch.vue';
4
+ declare const _default: import("vue").DefineComponent<{
5
+ frames: {
6
+ type: ArrayConstructor;
7
+ default: () => never[];
8
+ };
9
+ frameIndex: {
10
+ type: NumberConstructor;
11
+ default: number;
12
+ };
13
+ isLastFrame: {
14
+ type: BooleanConstructor;
15
+ default: boolean;
16
+ };
17
+ timePerFrame: {
18
+ type: NumberConstructor;
19
+ default: number;
20
+ };
21
+ isFullscreen: {
22
+ type: BooleanConstructor;
23
+ default: boolean;
24
+ };
25
+ isPlaying: {
26
+ type: BooleanConstructor;
27
+ default: boolean;
28
+ };
29
+ infoText: {
30
+ type: ObjectConstructor;
31
+ default: () => {
32
+ index: string;
33
+ label: string;
34
+ };
35
+ };
36
+ hasLive: {
37
+ type: BooleanConstructor;
38
+ default: boolean;
39
+ };
40
+ isLive: {
41
+ type: BooleanConstructor;
42
+ default: boolean;
43
+ };
44
+ disablePlayButton: {
45
+ type: BooleanConstructor;
46
+ default: boolean;
47
+ };
48
+ isRecordingWidget: {
49
+ type: BooleanConstructor;
50
+ default: boolean;
51
+ };
52
+ initialSnapshotQuality: {
53
+ type: (StringConstructor | NumberConstructor)[];
54
+ default: ImageQuality;
55
+ };
56
+ showSnapshotQuality: {
57
+ type: BooleanConstructor;
58
+ default: boolean;
59
+ };
60
+ isVideo: {
61
+ type: BooleanConstructor;
62
+ default: boolean;
63
+ };
64
+ hasEdgeVideo: {
65
+ type: BooleanConstructor;
66
+ default: boolean;
67
+ };
68
+ size: {
69
+ type: PropType<"lg" | "md" | "sm">;
70
+ default: string;
71
+ };
72
+ allowedToChangeSpeed: {
73
+ type: BooleanConstructor;
74
+ default: boolean;
75
+ };
76
+ allowedToChangeQuality: {
77
+ type: BooleanConstructor;
78
+ default: boolean;
79
+ };
80
+ }, {}, {
81
+ recordingType: string;
82
+ allowedSpeeds: number[];
83
+ selectedSpeed: number;
84
+ allowedQualities: string[];
85
+ selectedQuality: string;
86
+ }, {
87
+ isEdgeVideoEnabled(): boolean;
88
+ switchOptions(): EToggleSwitchOptions[];
89
+ }, {
90
+ toggleLive(): void;
91
+ initPlayerSettings(): void;
92
+ updateFrameIndex(amount: number): void;
93
+ updateTimePerFrame(): void;
94
+ updateQuality(): void;
95
+ toggleFullscreen(): void;
96
+ togglePlaying(): void;
97
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
98
+ frames: {
99
+ type: ArrayConstructor;
100
+ default: () => never[];
101
+ };
102
+ frameIndex: {
103
+ type: NumberConstructor;
104
+ default: number;
105
+ };
106
+ isLastFrame: {
107
+ type: BooleanConstructor;
108
+ default: boolean;
109
+ };
110
+ timePerFrame: {
111
+ type: NumberConstructor;
112
+ default: number;
113
+ };
114
+ isFullscreen: {
115
+ type: BooleanConstructor;
116
+ default: boolean;
117
+ };
118
+ isPlaying: {
119
+ type: BooleanConstructor;
120
+ default: boolean;
121
+ };
122
+ infoText: {
123
+ type: ObjectConstructor;
124
+ default: () => {
125
+ index: string;
126
+ label: string;
127
+ };
128
+ };
129
+ hasLive: {
130
+ type: BooleanConstructor;
131
+ default: boolean;
132
+ };
133
+ isLive: {
134
+ type: BooleanConstructor;
135
+ default: boolean;
136
+ };
137
+ disablePlayButton: {
138
+ type: BooleanConstructor;
139
+ default: boolean;
140
+ };
141
+ isRecordingWidget: {
142
+ type: BooleanConstructor;
143
+ default: boolean;
144
+ };
145
+ initialSnapshotQuality: {
146
+ type: (StringConstructor | NumberConstructor)[];
147
+ default: ImageQuality;
148
+ };
149
+ showSnapshotQuality: {
150
+ type: BooleanConstructor;
151
+ default: boolean;
152
+ };
153
+ isVideo: {
154
+ type: BooleanConstructor;
155
+ default: boolean;
156
+ };
157
+ hasEdgeVideo: {
158
+ type: BooleanConstructor;
159
+ default: boolean;
160
+ };
161
+ size: {
162
+ type: PropType<"lg" | "md" | "sm">;
163
+ default: string;
164
+ };
165
+ allowedToChangeSpeed: {
166
+ type: BooleanConstructor;
167
+ default: boolean;
168
+ };
169
+ allowedToChangeQuality: {
170
+ type: BooleanConstructor;
171
+ default: boolean;
172
+ };
173
+ }>>, {
174
+ size: "lg" | "md" | "sm";
175
+ isVideo: boolean;
176
+ frames: unknown[];
177
+ frameIndex: number;
178
+ isLastFrame: boolean;
179
+ timePerFrame: number;
180
+ isFullscreen: boolean;
181
+ isPlaying: boolean;
182
+ infoText: Record<string, any>;
183
+ hasLive: boolean;
184
+ isLive: boolean;
185
+ disablePlayButton: boolean;
186
+ isRecordingWidget: boolean;
187
+ initialSnapshotQuality: string | number;
188
+ showSnapshotQuality: boolean;
189
+ hasEdgeVideo: boolean;
190
+ allowedToChangeSpeed: boolean;
191
+ allowedToChangeQuality: boolean;
192
+ }>;
193
+ export default _default;
@@ -0,0 +1,146 @@
1
+ import { PropType } from "vue";
2
+ declare const _default: import("vue").DefineComponent<{
3
+ size: {
4
+ type: PropType<"lg" | "md" | "sm">;
5
+ default: string;
6
+ };
7
+ withProgressBar: {
8
+ type: BooleanConstructor;
9
+ default: boolean;
10
+ };
11
+ frames: {
12
+ type: ArrayConstructor;
13
+ default: () => never[];
14
+ };
15
+ events: {
16
+ type: ArrayConstructor;
17
+ default: () => never[];
18
+ };
19
+ frameIndex: {
20
+ type: NumberConstructor;
21
+ default: number;
22
+ };
23
+ preloadedFrames: {
24
+ type: ArrayConstructor;
25
+ default: () => never[];
26
+ };
27
+ withThumbnailPreview: {
28
+ type: BooleanConstructor;
29
+ default: boolean;
30
+ };
31
+ withPlayerActions: {
32
+ type: BooleanConstructor;
33
+ default: boolean;
34
+ };
35
+ isFullScreen: {
36
+ type: BooleanConstructor;
37
+ default: boolean;
38
+ };
39
+ isPlaying: {
40
+ type: BooleanConstructor;
41
+ default: boolean;
42
+ };
43
+ isLive: {
44
+ type: BooleanConstructor;
45
+ default: boolean;
46
+ };
47
+ currentTime: {
48
+ type: StringConstructor;
49
+ default: string;
50
+ };
51
+ videoLength: {
52
+ type: StringConstructor;
53
+ default: string;
54
+ };
55
+ thumbnailsUrls: {
56
+ type: PropType<string[]>;
57
+ default: () => never[];
58
+ };
59
+ timezone: {
60
+ type: StringConstructor;
61
+ default: string;
62
+ };
63
+ }, {}, {
64
+ isFocused: boolean;
65
+ }, {
66
+ containerClasses(): "e-px-2" | "e-px-5";
67
+ isLastFrame(): boolean;
68
+ }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
69
+ size: {
70
+ type: PropType<"lg" | "md" | "sm">;
71
+ default: string;
72
+ };
73
+ withProgressBar: {
74
+ type: BooleanConstructor;
75
+ default: boolean;
76
+ };
77
+ frames: {
78
+ type: ArrayConstructor;
79
+ default: () => never[];
80
+ };
81
+ events: {
82
+ type: ArrayConstructor;
83
+ default: () => never[];
84
+ };
85
+ frameIndex: {
86
+ type: NumberConstructor;
87
+ default: number;
88
+ };
89
+ preloadedFrames: {
90
+ type: ArrayConstructor;
91
+ default: () => never[];
92
+ };
93
+ withThumbnailPreview: {
94
+ type: BooleanConstructor;
95
+ default: boolean;
96
+ };
97
+ withPlayerActions: {
98
+ type: BooleanConstructor;
99
+ default: boolean;
100
+ };
101
+ isFullScreen: {
102
+ type: BooleanConstructor;
103
+ default: boolean;
104
+ };
105
+ isPlaying: {
106
+ type: BooleanConstructor;
107
+ default: boolean;
108
+ };
109
+ isLive: {
110
+ type: BooleanConstructor;
111
+ default: boolean;
112
+ };
113
+ currentTime: {
114
+ type: StringConstructor;
115
+ default: string;
116
+ };
117
+ videoLength: {
118
+ type: StringConstructor;
119
+ default: string;
120
+ };
121
+ thumbnailsUrls: {
122
+ type: PropType<string[]>;
123
+ default: () => never[];
124
+ };
125
+ timezone: {
126
+ type: StringConstructor;
127
+ default: string;
128
+ };
129
+ }>>, {
130
+ size: "lg" | "md" | "sm";
131
+ events: unknown[];
132
+ timezone: string;
133
+ frames: unknown[];
134
+ frameIndex: number;
135
+ isPlaying: boolean;
136
+ isLive: boolean;
137
+ preloadedFrames: unknown[];
138
+ thumbnailsUrls: string[];
139
+ withProgressBar: boolean;
140
+ withThumbnailPreview: boolean;
141
+ withPlayerActions: boolean;
142
+ isFullScreen: boolean;
143
+ currentTime: string;
144
+ videoLength: string;
145
+ }>;
146
+ export default _default;