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

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,3 @@
1
+ import Vue from "vue";
2
+ 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>>, {}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin>;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import Vue from "vue";
2
+ 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>>, {}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin>;
3
+ export default _default;
@@ -1,126 +1,11 @@
1
- import Hls, { ErrorData, Events } from "hls.js";
2
- import { PropType } from "vue";
1
+ import Hls from "hls.js";
2
+ import Vue 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
- 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
- }, {}, {
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>>, {
124
9
  playing: boolean;
125
10
  percentagePlayed: number;
126
11
  videoLength: string;
@@ -135,16 +20,9 @@ declare const _default: import("vue").DefineComponent<{
135
20
  isLoading: boolean;
136
21
  isError: boolean;
137
22
  player: Hls;
138
- playbackRetries: number;
139
- }, {
140
- sourceItems(): VideoSource[];
141
- hasStartedOrFinished(): boolean;
142
- withControls(): "" | "hide";
143
23
  }, {
144
24
  initHls(): void;
145
- onContainerClick(): void;
146
25
  handle404Error(): void;
147
- handleHlsError(_: Events.ERROR, data: ErrorData): void;
148
26
  bindEvents(): void;
149
27
  unbindEvents(): void;
150
28
  bindVideoEvent(which: string): void;
@@ -157,9 +35,9 @@ declare const _default: import("vue").DefineComponent<{
157
35
  handleScrubbingOnMouseEnd(e: MouseEvent): void;
158
36
  handleEnded(): void;
159
37
  handleLoading(): void;
160
- play(): Promise<void>;
38
+ play(): void;
161
39
  pause(): void;
162
- togglePlay(): Promise<void>;
40
+ togglePlay(): void;
163
41
  setPlaying(state: boolean): void;
164
42
  seekToPercentage(percentage: number): void;
165
43
  convertTimeToDuration(seconds: number): string;
@@ -172,142 +50,16 @@ declare const _default: import("vue").DefineComponent<{
172
50
  skip(duration?: number): void;
173
51
  toggleScrubbing(e: MouseEvent): Promise<void>;
174
52
  handleKeyDown(e: KeyboardEvent): void;
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>;
53
+ }, {
54
+ sourceItems: VideoSource[];
55
+ hasStartedOrFinished: boolean;
56
+ withControls: "" | "hide";
57
+ }, {
58
+ sources: string | VideoSource[];
59
+ videoListeners: {};
60
+ videoOptions: {};
293
61
  isHls: boolean;
294
62
  streamingToken: string;
295
63
  isLiveView: boolean;
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
- }>;
64
+ }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin>;
313
65
  export default _default;