zarebin-player-library 1.0.30 → 1.0.31
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.
- package/dist/src/videoPlayerLibrary/shared/helpers/helpers.d.ts +3 -0
- package/dist/src/videoPlayerLibrary/shared/images/importImages.d.ts +1 -0
- package/dist/src/videoPlayerLibrary/shared/interfaces/enums.d.ts +1 -0
- package/dist/src/videoPlayerLibrary/shared/interfaces/interfaces.d.ts +15 -0
- package/dist/src/videoPlayerLibrary/shared/redux/slices/controllerSlice.d.ts +56 -1
- package/dist/src/videoPlayerLibrary/shared/ui/src/components/advertisement/Advertisement.d.ts +2 -0
- package/dist/src/videoPlayerLibrary/shared/ui/src/components/advertisement/MoreInfoButton.d.ts +6 -0
- package/dist/src/videoPlayerLibrary/shared/ui/src/components/advertisement/ProgressBar.d.ts +6 -0
- package/dist/src/videoPlayerLibrary/shared/ui/src/components/advertisement/SkipButton.d.ts +9 -0
- package/dist/src/videoPlayerLibrary/shared/ui/src/components/advertisement/UnMuteVideo.d.ts +4 -0
- package/dist/src/videoPlayerLibrary/shared/ui/src/components/advertisement/VideoControls.d.ts +9 -0
- package/dist/src/videoPlayerLibrary/shared/ui/src/components/advertisement/hooks/useControlsVisibility.d.ts +5 -0
- package/dist/src/videoPlayerLibrary/shared/ui/src/components/advertisement/hooks/useVideoControls.d.ts +18 -0
- package/dist/zarebin-player-library.css +14 -0
- package/dist/zarebin-player-library.js +332 -12
- package/dist/zarebin-player-library.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BookmarkCategory, VideoNumberTypeEnum } from '../interfaces/enums';
|
|
2
2
|
import { default as View360 } from '@egjs/view360';
|
|
3
|
+
import { Ad } from '../interfaces';
|
|
3
4
|
export declare const wait: (s: number) => Promise<unknown>;
|
|
4
5
|
export declare const getRemainingTime: (timestamp: number) => string;
|
|
5
6
|
export declare const compare: (a: any, b: any) => 0 | 1 | -1;
|
|
@@ -85,3 +86,5 @@ export declare const sortLanguages: (array: any) => any;
|
|
|
85
86
|
export declare const hexToRGB: (hex: string, alpha?: number) => string;
|
|
86
87
|
export declare const checkIsOnPremise: (baseUrl: string) => string;
|
|
87
88
|
export declare const handle360: () => Promise<View360>;
|
|
89
|
+
export declare const providerHandler: (ignoreSendProvider?: boolean) => string | undefined;
|
|
90
|
+
export declare const getRandomAd: (ads: Ad[]) => Ad | undefined;
|
|
@@ -309,6 +309,7 @@ export declare const enum ConditionName {
|
|
|
309
309
|
handleOverflowHidden = "handleOverflowHidden",
|
|
310
310
|
thresholdOnlineViewers = "thresholdOnlineViewers",
|
|
311
311
|
setSubtitleFirstPlay = "setSubtitleFirstPlay",
|
|
312
|
+
hasAd = "hasAd",
|
|
312
313
|
showQuizPopover = "showQuizPopover",
|
|
313
314
|
showUserStatus = "showUserStatus",
|
|
314
315
|
isQuizStatusEqual1 = "isQuizStatusEqual1",
|
|
@@ -91,6 +91,7 @@ export interface IParams {
|
|
|
91
91
|
uuid?: string;
|
|
92
92
|
handleRedirectCards?: (id: string, type: string) => void;
|
|
93
93
|
homeButtonClickFlag?: number | null;
|
|
94
|
+
ad?: Ad;
|
|
94
95
|
redirectOnEndedUrl?: string;
|
|
95
96
|
lang?: "ar" | "fa" | "en";
|
|
96
97
|
}
|
|
@@ -359,6 +360,7 @@ export interface IControllerSlice {
|
|
|
359
360
|
isClickInnerCard: boolean;
|
|
360
361
|
loadedFragmentsCount: number[];
|
|
361
362
|
isViewChangeIn360: boolean;
|
|
363
|
+
firstMute: boolean;
|
|
362
364
|
}
|
|
363
365
|
export interface IPopoversSlice {
|
|
364
366
|
markersListPopover: boolean;
|
|
@@ -1129,3 +1131,16 @@ export interface ICommentSettingsPopoverProps {
|
|
|
1129
1131
|
y: number;
|
|
1130
1132
|
};
|
|
1131
1133
|
}
|
|
1134
|
+
export type Ad = {
|
|
1135
|
+
id: number;
|
|
1136
|
+
url: string;
|
|
1137
|
+
ad_link: string;
|
|
1138
|
+
play_weight: number;
|
|
1139
|
+
mandatory_play_time: number;
|
|
1140
|
+
channel: number;
|
|
1141
|
+
banner?: string;
|
|
1142
|
+
video_id?: number;
|
|
1143
|
+
user_id?: number;
|
|
1144
|
+
content_id?: number;
|
|
1145
|
+
content_type?: number;
|
|
1146
|
+
};
|
|
@@ -28,6 +28,7 @@ export declare const controllerSlice: import('@reduxjs/toolkit').Slice<IControll
|
|
|
28
28
|
isClickInnerCard: boolean;
|
|
29
29
|
loadedFragmentsCount: number[];
|
|
30
30
|
isViewChangeIn360: boolean;
|
|
31
|
+
firstMute: boolean;
|
|
31
32
|
}, action: PayloadAction<boolean>) => void;
|
|
32
33
|
setIsAutoPlay: (state: {
|
|
33
34
|
play: boolean;
|
|
@@ -56,6 +57,7 @@ export declare const controllerSlice: import('@reduxjs/toolkit').Slice<IControll
|
|
|
56
57
|
isClickInnerCard: boolean;
|
|
57
58
|
loadedFragmentsCount: number[];
|
|
58
59
|
isViewChangeIn360: boolean;
|
|
60
|
+
firstMute: boolean;
|
|
59
61
|
}, action: PayloadAction<boolean>) => void;
|
|
60
62
|
setDuration: (state: {
|
|
61
63
|
play: boolean;
|
|
@@ -84,6 +86,7 @@ export declare const controllerSlice: import('@reduxjs/toolkit').Slice<IControll
|
|
|
84
86
|
isClickInnerCard: boolean;
|
|
85
87
|
loadedFragmentsCount: number[];
|
|
86
88
|
isViewChangeIn360: boolean;
|
|
89
|
+
firstMute: boolean;
|
|
87
90
|
}, action: PayloadAction<number>) => void;
|
|
88
91
|
setCurrentTime: (state: {
|
|
89
92
|
play: boolean;
|
|
@@ -112,6 +115,7 @@ export declare const controllerSlice: import('@reduxjs/toolkit').Slice<IControll
|
|
|
112
115
|
isClickInnerCard: boolean;
|
|
113
116
|
loadedFragmentsCount: number[];
|
|
114
117
|
isViewChangeIn360: boolean;
|
|
118
|
+
firstMute: boolean;
|
|
115
119
|
}, action: PayloadAction<number>) => void;
|
|
116
120
|
setMouseMoveTime: (state: {
|
|
117
121
|
play: boolean;
|
|
@@ -140,6 +144,7 @@ export declare const controllerSlice: import('@reduxjs/toolkit').Slice<IControll
|
|
|
140
144
|
isClickInnerCard: boolean;
|
|
141
145
|
loadedFragmentsCount: number[];
|
|
142
146
|
isViewChangeIn360: boolean;
|
|
147
|
+
firstMute: boolean;
|
|
143
148
|
}, action: PayloadAction<number>) => void;
|
|
144
149
|
setManualQuality: (state: {
|
|
145
150
|
play: boolean;
|
|
@@ -168,6 +173,7 @@ export declare const controllerSlice: import('@reduxjs/toolkit').Slice<IControll
|
|
|
168
173
|
isClickInnerCard: boolean;
|
|
169
174
|
loadedFragmentsCount: number[];
|
|
170
175
|
isViewChangeIn360: boolean;
|
|
176
|
+
firstMute: boolean;
|
|
171
177
|
}, action: PayloadAction<number | undefined>) => void;
|
|
172
178
|
setAutoQuality: (state: {
|
|
173
179
|
play: boolean;
|
|
@@ -196,6 +202,7 @@ export declare const controllerSlice: import('@reduxjs/toolkit').Slice<IControll
|
|
|
196
202
|
isClickInnerCard: boolean;
|
|
197
203
|
loadedFragmentsCount: number[];
|
|
198
204
|
isViewChangeIn360: boolean;
|
|
205
|
+
firstMute: boolean;
|
|
199
206
|
}, action: PayloadAction<number | undefined>) => void;
|
|
200
207
|
setQualityLevels: (state: {
|
|
201
208
|
play: boolean;
|
|
@@ -224,6 +231,7 @@ export declare const controllerSlice: import('@reduxjs/toolkit').Slice<IControll
|
|
|
224
231
|
isClickInnerCard: boolean;
|
|
225
232
|
loadedFragmentsCount: number[];
|
|
226
233
|
isViewChangeIn360: boolean;
|
|
234
|
+
firstMute: boolean;
|
|
227
235
|
}, action: PayloadAction<any[]>) => void;
|
|
228
236
|
setQualityBitrates: (state: {
|
|
229
237
|
play: boolean;
|
|
@@ -252,6 +260,7 @@ export declare const controllerSlice: import('@reduxjs/toolkit').Slice<IControll
|
|
|
252
260
|
isClickInnerCard: boolean;
|
|
253
261
|
loadedFragmentsCount: number[];
|
|
254
262
|
isViewChangeIn360: boolean;
|
|
263
|
+
firstMute: boolean;
|
|
255
264
|
}, action: PayloadAction<string[]>) => void;
|
|
256
265
|
setActiveElements: (state: {
|
|
257
266
|
play: boolean;
|
|
@@ -280,6 +289,7 @@ export declare const controllerSlice: import('@reduxjs/toolkit').Slice<IControll
|
|
|
280
289
|
isClickInnerCard: boolean;
|
|
281
290
|
loadedFragmentsCount: number[];
|
|
282
291
|
isViewChangeIn360: boolean;
|
|
292
|
+
firstMute: boolean;
|
|
283
293
|
}, action: PayloadAction<boolean>) => void;
|
|
284
294
|
setIsLive: (state: {
|
|
285
295
|
play: boolean;
|
|
@@ -308,6 +318,7 @@ export declare const controllerSlice: import('@reduxjs/toolkit').Slice<IControll
|
|
|
308
318
|
isClickInnerCard: boolean;
|
|
309
319
|
loadedFragmentsCount: number[];
|
|
310
320
|
isViewChangeIn360: boolean;
|
|
321
|
+
firstMute: boolean;
|
|
311
322
|
}, action: PayloadAction<boolean>) => void;
|
|
312
323
|
setIsLoading: (state: {
|
|
313
324
|
play: boolean;
|
|
@@ -336,6 +347,7 @@ export declare const controllerSlice: import('@reduxjs/toolkit').Slice<IControll
|
|
|
336
347
|
isClickInnerCard: boolean;
|
|
337
348
|
loadedFragmentsCount: number[];
|
|
338
349
|
isViewChangeIn360: boolean;
|
|
350
|
+
firstMute: boolean;
|
|
339
351
|
}, action: PayloadAction<boolean>) => void;
|
|
340
352
|
setIsFullScreen: (state: {
|
|
341
353
|
play: boolean;
|
|
@@ -364,6 +376,7 @@ export declare const controllerSlice: import('@reduxjs/toolkit').Slice<IControll
|
|
|
364
376
|
isClickInnerCard: boolean;
|
|
365
377
|
loadedFragmentsCount: number[];
|
|
366
378
|
isViewChangeIn360: boolean;
|
|
379
|
+
firstMute: boolean;
|
|
367
380
|
}, action: PayloadAction<boolean>) => void;
|
|
368
381
|
setBufferedTimeWidth: (state: {
|
|
369
382
|
play: boolean;
|
|
@@ -392,6 +405,7 @@ export declare const controllerSlice: import('@reduxjs/toolkit').Slice<IControll
|
|
|
392
405
|
isClickInnerCard: boolean;
|
|
393
406
|
loadedFragmentsCount: number[];
|
|
394
407
|
isViewChangeIn360: boolean;
|
|
408
|
+
firstMute: boolean;
|
|
395
409
|
}, action: PayloadAction<number>) => void;
|
|
396
410
|
setFirstPlay: (state: {
|
|
397
411
|
play: boolean;
|
|
@@ -420,6 +434,7 @@ export declare const controllerSlice: import('@reduxjs/toolkit').Slice<IControll
|
|
|
420
434
|
isClickInnerCard: boolean;
|
|
421
435
|
loadedFragmentsCount: number[];
|
|
422
436
|
isViewChangeIn360: boolean;
|
|
437
|
+
firstMute: boolean;
|
|
423
438
|
}, action: PayloadAction<boolean>) => void;
|
|
424
439
|
setHlsLivePosition: (state: {
|
|
425
440
|
play: boolean;
|
|
@@ -448,6 +463,7 @@ export declare const controllerSlice: import('@reduxjs/toolkit').Slice<IControll
|
|
|
448
463
|
isClickInnerCard: boolean;
|
|
449
464
|
loadedFragmentsCount: number[];
|
|
450
465
|
isViewChangeIn360: boolean;
|
|
466
|
+
firstMute: boolean;
|
|
451
467
|
}, action: PayloadAction<any>) => void;
|
|
452
468
|
setActivePointerProgressBar: (state: {
|
|
453
469
|
play: boolean;
|
|
@@ -476,6 +492,7 @@ export declare const controllerSlice: import('@reduxjs/toolkit').Slice<IControll
|
|
|
476
492
|
isClickInnerCard: boolean;
|
|
477
493
|
loadedFragmentsCount: number[];
|
|
478
494
|
isViewChangeIn360: boolean;
|
|
495
|
+
firstMute: boolean;
|
|
479
496
|
}, action: PayloadAction<boolean>) => void;
|
|
480
497
|
setDelayTurnOffControlbar: (state: {
|
|
481
498
|
play: boolean;
|
|
@@ -504,6 +521,7 @@ export declare const controllerSlice: import('@reduxjs/toolkit').Slice<IControll
|
|
|
504
521
|
isClickInnerCard: boolean;
|
|
505
522
|
loadedFragmentsCount: number[];
|
|
506
523
|
isViewChangeIn360: boolean;
|
|
524
|
+
firstMute: boolean;
|
|
507
525
|
}, action: PayloadAction<boolean>) => void;
|
|
508
526
|
setCanPlayVideo: (state: {
|
|
509
527
|
play: boolean;
|
|
@@ -532,6 +550,7 @@ export declare const controllerSlice: import('@reduxjs/toolkit').Slice<IControll
|
|
|
532
550
|
isClickInnerCard: boolean;
|
|
533
551
|
loadedFragmentsCount: number[];
|
|
534
552
|
isViewChangeIn360: boolean;
|
|
553
|
+
firstMute: boolean;
|
|
535
554
|
}, action: PayloadAction<boolean>) => void;
|
|
536
555
|
setLock: (state: {
|
|
537
556
|
play: boolean;
|
|
@@ -560,6 +579,7 @@ export declare const controllerSlice: import('@reduxjs/toolkit').Slice<IControll
|
|
|
560
579
|
isClickInnerCard: boolean;
|
|
561
580
|
loadedFragmentsCount: number[];
|
|
562
581
|
isViewChangeIn360: boolean;
|
|
582
|
+
firstMute: boolean;
|
|
563
583
|
}, action: PayloadAction<boolean>) => void;
|
|
564
584
|
setIsEnded: (state: {
|
|
565
585
|
play: boolean;
|
|
@@ -588,6 +608,7 @@ export declare const controllerSlice: import('@reduxjs/toolkit').Slice<IControll
|
|
|
588
608
|
isClickInnerCard: boolean;
|
|
589
609
|
loadedFragmentsCount: number[];
|
|
590
610
|
isViewChangeIn360: boolean;
|
|
611
|
+
firstMute: boolean;
|
|
591
612
|
}, action: PayloadAction<boolean>) => void;
|
|
592
613
|
setTooltipTime: (state: {
|
|
593
614
|
play: boolean;
|
|
@@ -616,6 +637,7 @@ export declare const controllerSlice: import('@reduxjs/toolkit').Slice<IControll
|
|
|
616
637
|
isClickInnerCard: boolean;
|
|
617
638
|
loadedFragmentsCount: number[];
|
|
618
639
|
isViewChangeIn360: boolean;
|
|
640
|
+
firstMute: boolean;
|
|
619
641
|
}, action: PayloadAction<number>) => void;
|
|
620
642
|
setShowMiniPlayer: (state: {
|
|
621
643
|
play: boolean;
|
|
@@ -644,6 +666,7 @@ export declare const controllerSlice: import('@reduxjs/toolkit').Slice<IControll
|
|
|
644
666
|
isClickInnerCard: boolean;
|
|
645
667
|
loadedFragmentsCount: number[];
|
|
646
668
|
isViewChangeIn360: boolean;
|
|
669
|
+
firstMute: boolean;
|
|
647
670
|
}, action: PayloadAction<boolean | undefined>) => void;
|
|
648
671
|
setIsClickInnerCard: (state: {
|
|
649
672
|
play: boolean;
|
|
@@ -672,6 +695,7 @@ export declare const controllerSlice: import('@reduxjs/toolkit').Slice<IControll
|
|
|
672
695
|
isClickInnerCard: boolean;
|
|
673
696
|
loadedFragmentsCount: number[];
|
|
674
697
|
isViewChangeIn360: boolean;
|
|
698
|
+
firstMute: boolean;
|
|
675
699
|
}, action: PayloadAction<boolean>) => void;
|
|
676
700
|
setLoadedFragmentsCount: (state: {
|
|
677
701
|
play: boolean;
|
|
@@ -700,6 +724,7 @@ export declare const controllerSlice: import('@reduxjs/toolkit').Slice<IControll
|
|
|
700
724
|
isClickInnerCard: boolean;
|
|
701
725
|
loadedFragmentsCount: number[];
|
|
702
726
|
isViewChangeIn360: boolean;
|
|
727
|
+
firstMute: boolean;
|
|
703
728
|
}, action: PayloadAction<number[]>) => void;
|
|
704
729
|
setIsViewChangeIn360: (state: {
|
|
705
730
|
play: boolean;
|
|
@@ -728,9 +753,39 @@ export declare const controllerSlice: import('@reduxjs/toolkit').Slice<IControll
|
|
|
728
753
|
isClickInnerCard: boolean;
|
|
729
754
|
loadedFragmentsCount: number[];
|
|
730
755
|
isViewChangeIn360: boolean;
|
|
756
|
+
firstMute: boolean;
|
|
757
|
+
}, action: PayloadAction<boolean>) => void;
|
|
758
|
+
setFirstMute: (state: {
|
|
759
|
+
play: boolean;
|
|
760
|
+
isAutoPlay: boolean;
|
|
761
|
+
duration: number;
|
|
762
|
+
currentTime: number;
|
|
763
|
+
mouseMoveTime: number;
|
|
764
|
+
qualityLevels: number[];
|
|
765
|
+
qualityBitrates: string[];
|
|
766
|
+
manualQuality?: number | undefined;
|
|
767
|
+
autoQuality?: number | undefined;
|
|
768
|
+
activeElements: boolean;
|
|
769
|
+
isLive: boolean;
|
|
770
|
+
isLoading: boolean;
|
|
771
|
+
isFullScreen: boolean;
|
|
772
|
+
bufferedTimeWidth: number;
|
|
773
|
+
firstPlay: boolean;
|
|
774
|
+
hlsLiveSyncPosition: number;
|
|
775
|
+
activePointerProgressBar: boolean;
|
|
776
|
+
delayTurnOffControlbar: boolean;
|
|
777
|
+
canPlayVideo: boolean;
|
|
778
|
+
lock: boolean;
|
|
779
|
+
isEnded: boolean;
|
|
780
|
+
tooltipTime: number;
|
|
781
|
+
showMiniPlayer?: boolean | undefined;
|
|
782
|
+
isClickInnerCard: boolean;
|
|
783
|
+
loadedFragmentsCount: number[];
|
|
784
|
+
isViewChangeIn360: boolean;
|
|
785
|
+
firstMute: boolean;
|
|
731
786
|
}, action: PayloadAction<boolean>) => void;
|
|
732
787
|
setClearControllerSlice: () => IControllerSlice;
|
|
733
788
|
}, "controller", "controller", import('@reduxjs/toolkit').SliceSelectors<IControllerSlice>>;
|
|
734
|
-
export declare const setPlay: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "controller/setPlay">, setIsAutoPlay: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "controller/setIsAutoPlay">, setDuration: import('@reduxjs/toolkit').ActionCreatorWithPayload<number, "controller/setDuration">, setCurrentTime: import('@reduxjs/toolkit').ActionCreatorWithPayload<number, "controller/setCurrentTime">, setMouseMoveTime: import('@reduxjs/toolkit').ActionCreatorWithPayload<number, "controller/setMouseMoveTime">, setQualityLevels: import('@reduxjs/toolkit').ActionCreatorWithPayload<any[], "controller/setQualityLevels">, setQualityBitrates: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "controller/setQualityBitrates">, setAutoQuality: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<number | undefined, "controller/setAutoQuality">, setActiveElements: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "controller/setActiveElements">, setIsLive: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "controller/setIsLive">, setIsLoading: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "controller/setIsLoading">, setIsFullScreen: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "controller/setIsFullScreen">, setBufferedTimeWidth: import('@reduxjs/toolkit').ActionCreatorWithPayload<number, "controller/setBufferedTimeWidth">, setFirstPlay: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "controller/setFirstPlay">, setHlsLivePosition: import('@reduxjs/toolkit').ActionCreatorWithPayload<any, "controller/setHlsLivePosition">, setActivePointerProgressBar: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "controller/setActivePointerProgressBar">, setDelayTurnOffControlbar: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "controller/setDelayTurnOffControlbar">, setManualQuality: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<number | undefined, "controller/setManualQuality">, setCanPlayVideo: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "controller/setCanPlayVideo">, setLock: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "controller/setLock">, setIsEnded: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "controller/setIsEnded">, setTooltipTime: import('@reduxjs/toolkit').ActionCreatorWithPayload<number, "controller/setTooltipTime">, setShowMiniPlayer: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<boolean | undefined, "controller/setShowMiniPlayer">, setIsClickInnerCard: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "controller/setIsClickInnerCard">, setLoadedFragmentsCount: import('@reduxjs/toolkit').ActionCreatorWithPayload<number[], "controller/setLoadedFragmentsCount">, setIsViewChangeIn360: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "controller/setIsViewChangeIn360">, setClearControllerSlice: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"controller/setClearControllerSlice">;
|
|
789
|
+
export declare const setPlay: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "controller/setPlay">, setIsAutoPlay: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "controller/setIsAutoPlay">, setDuration: import('@reduxjs/toolkit').ActionCreatorWithPayload<number, "controller/setDuration">, setCurrentTime: import('@reduxjs/toolkit').ActionCreatorWithPayload<number, "controller/setCurrentTime">, setMouseMoveTime: import('@reduxjs/toolkit').ActionCreatorWithPayload<number, "controller/setMouseMoveTime">, setQualityLevels: import('@reduxjs/toolkit').ActionCreatorWithPayload<any[], "controller/setQualityLevels">, setQualityBitrates: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "controller/setQualityBitrates">, setAutoQuality: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<number | undefined, "controller/setAutoQuality">, setActiveElements: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "controller/setActiveElements">, setIsLive: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "controller/setIsLive">, setIsLoading: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "controller/setIsLoading">, setIsFullScreen: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "controller/setIsFullScreen">, setBufferedTimeWidth: import('@reduxjs/toolkit').ActionCreatorWithPayload<number, "controller/setBufferedTimeWidth">, setFirstPlay: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "controller/setFirstPlay">, setHlsLivePosition: import('@reduxjs/toolkit').ActionCreatorWithPayload<any, "controller/setHlsLivePosition">, setActivePointerProgressBar: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "controller/setActivePointerProgressBar">, setDelayTurnOffControlbar: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "controller/setDelayTurnOffControlbar">, setManualQuality: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<number | undefined, "controller/setManualQuality">, setCanPlayVideo: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "controller/setCanPlayVideo">, setLock: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "controller/setLock">, setIsEnded: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "controller/setIsEnded">, setTooltipTime: import('@reduxjs/toolkit').ActionCreatorWithPayload<number, "controller/setTooltipTime">, setShowMiniPlayer: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<boolean | undefined, "controller/setShowMiniPlayer">, setIsClickInnerCard: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "controller/setIsClickInnerCard">, setLoadedFragmentsCount: import('@reduxjs/toolkit').ActionCreatorWithPayload<number[], "controller/setLoadedFragmentsCount">, setIsViewChangeIn360: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "controller/setIsViewChangeIn360">, setFirstMute: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "controller/setFirstMute">, setClearControllerSlice: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"controller/setClearControllerSlice">;
|
|
735
790
|
declare const _default: import('redux').Reducer<IControllerSlice>;
|
|
736
791
|
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Ad, IParams } from '../../../../interfaces';
|
|
2
|
+
interface Props {
|
|
3
|
+
ad: Ad;
|
|
4
|
+
params: IParams;
|
|
5
|
+
skipCounter: number | null;
|
|
6
|
+
currentTime: number;
|
|
7
|
+
}
|
|
8
|
+
declare const SkipButton: ({ ad, params, skipCounter }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default SkipButton;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
progress: number;
|
|
3
|
+
buffered: number;
|
|
4
|
+
duration: number;
|
|
5
|
+
currentTime: number;
|
|
6
|
+
showControls: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const VideoControls: ({ progress, buffered, duration, currentTime, showControls }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default VideoControls;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
interface AdData {
|
|
2
|
+
url: string;
|
|
3
|
+
ad_link?: string;
|
|
4
|
+
mandatory_play_time?: number;
|
|
5
|
+
}
|
|
6
|
+
interface UseVideoControlsResult {
|
|
7
|
+
progress: number;
|
|
8
|
+
buffered: number;
|
|
9
|
+
currentTime: number;
|
|
10
|
+
duration: number;
|
|
11
|
+
firstPlay: boolean;
|
|
12
|
+
setFirstPlay: React.Dispatch<React.SetStateAction<boolean>>;
|
|
13
|
+
isPaused: boolean;
|
|
14
|
+
skipCounter: number | null;
|
|
15
|
+
hasSkip: boolean;
|
|
16
|
+
}
|
|
17
|
+
declare const useVideoControls: (ad?: AdData, params?: any) => UseVideoControlsResult;
|
|
18
|
+
export default useVideoControls;
|
|
@@ -11490,6 +11490,12 @@ video {
|
|
|
11490
11490
|
aspect-ratio: 1 / 1;
|
|
11491
11491
|
}.pl-aspect-video{
|
|
11492
11492
|
aspect-ratio: 16 / 9;
|
|
11493
|
+
}.pl-size-4{
|
|
11494
|
+
width: 1rem;
|
|
11495
|
+
height: 1rem;
|
|
11496
|
+
}.pl-size-6{
|
|
11497
|
+
width: 1.5rem;
|
|
11498
|
+
height: 1.5rem;
|
|
11493
11499
|
}.\!pl-h-5{
|
|
11494
11500
|
height: 1.25rem !important;
|
|
11495
11501
|
}.\!pl-h-6{
|
|
@@ -11523,6 +11529,10 @@ video {
|
|
|
11523
11529
|
height: 0.25rem;
|
|
11524
11530
|
}.pl-h-1\.5{
|
|
11525
11531
|
height: 0.375rem;
|
|
11532
|
+
}.pl-h-10{
|
|
11533
|
+
height: 2.5rem;
|
|
11534
|
+
}.pl-h-11{
|
|
11535
|
+
height: 2.75rem;
|
|
11526
11536
|
}.pl-h-12{
|
|
11527
11537
|
height: 3rem;
|
|
11528
11538
|
}.pl-h-2{
|
|
@@ -11697,6 +11707,8 @@ video {
|
|
|
11697
11707
|
width: 0.5rem;
|
|
11698
11708
|
}.pl-w-2\/3{
|
|
11699
11709
|
width: 66.666667%;
|
|
11710
|
+
}.pl-w-20{
|
|
11711
|
+
width: 5rem;
|
|
11700
11712
|
}.pl-w-3{
|
|
11701
11713
|
width: 0.75rem;
|
|
11702
11714
|
}.pl-w-4{
|
|
@@ -11799,6 +11811,8 @@ video {
|
|
|
11799
11811
|
width: 65vw;
|
|
11800
11812
|
}.pl-w-\[71px\]{
|
|
11801
11813
|
width: 71px;
|
|
11814
|
+
}.pl-w-\[72px\]{
|
|
11815
|
+
width: 72px;
|
|
11802
11816
|
}.pl-w-\[790px\]{
|
|
11803
11817
|
width: 790px;
|
|
11804
11818
|
}.pl-w-\[80\%\]{
|