zarebin-player-library 1.0.30 → 1.0.32

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.
Files changed (19) hide show
  1. package/dist/src/videoPlayerLibrary/shared/helpers/helpers.d.ts +3 -0
  2. package/dist/src/videoPlayerLibrary/shared/images/importImages.d.ts +1 -0
  3. package/dist/src/videoPlayerLibrary/shared/interfaces/enums.d.ts +3 -1
  4. package/dist/src/videoPlayerLibrary/shared/interfaces/interfaces.d.ts +19 -0
  5. package/dist/src/videoPlayerLibrary/shared/redux/slices/controllerSlice.d.ts +56 -1
  6. package/dist/src/videoPlayerLibrary/shared/redux/slices/videoDataSlice.d.ts +2 -2
  7. package/dist/src/videoPlayerLibrary/shared/services/services.d.ts +1 -0
  8. package/dist/src/videoPlayerLibrary/shared/ui/src/components/advertisement/Advertisement.d.ts +2 -0
  9. package/dist/src/videoPlayerLibrary/shared/ui/src/components/advertisement/MoreInfoButton.d.ts +6 -0
  10. package/dist/src/videoPlayerLibrary/shared/ui/src/components/advertisement/ProgressBar.d.ts +6 -0
  11. package/dist/src/videoPlayerLibrary/shared/ui/src/components/advertisement/SkipButton.d.ts +6 -0
  12. package/dist/src/videoPlayerLibrary/shared/ui/src/components/advertisement/UnMuteVideo.d.ts +4 -0
  13. package/dist/src/videoPlayerLibrary/shared/ui/src/components/advertisement/VideoControls.d.ts +9 -0
  14. package/dist/src/videoPlayerLibrary/shared/ui/src/components/advertisement/hooks/useControlsVisibility.d.ts +5 -0
  15. package/dist/src/videoPlayerLibrary/shared/ui/src/components/advertisement/hooks/useVideoControls.d.ts +14 -0
  16. package/dist/zarebin-player-library.css +76 -1
  17. package/dist/zarebin-player-library.js +386 -24
  18. package/dist/zarebin-player-library.js.map +1 -1
  19. 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;
@@ -75,5 +75,6 @@ declare const IMAGES: {
75
75
  gameOverMagenta: string;
76
76
  gameOverBlue: string;
77
77
  medal: string;
78
+ muteBlack: string;
78
79
  };
79
80
  export default IMAGES;
@@ -31,7 +31,8 @@ export declare const enum zIndex {
31
31
  maxPopover = 1000005,
32
32
  videoPlayerInPictureInPicture = 1000006,
33
33
  trailer = 1000007,
34
- commentAnswer = 1000008
34
+ commentAnswer = 1000008,
35
+ ad = 1000001
35
36
  }
36
37
  export declare const enum ContentTypes {
37
38
  Vod = 0,
@@ -309,6 +310,7 @@ export declare const enum ConditionName {
309
310
  handleOverflowHidden = "handleOverflowHidden",
310
311
  thresholdOnlineViewers = "thresholdOnlineViewers",
311
312
  setSubtitleFirstPlay = "setSubtitleFirstPlay",
313
+ hasAd = "hasAd",
312
314
  showQuizPopover = "showQuizPopover",
313
315
  showUserStatus = "showUserStatus",
314
316
  isQuizStatusEqual1 = "isQuizStatusEqual1",
@@ -91,6 +91,10 @@ export interface IParams {
91
91
  uuid?: string;
92
92
  handleRedirectCards?: (id: string, type: string) => void;
93
93
  homeButtonClickFlag?: number | null;
94
+ ad?: {
95
+ adUserId: string;
96
+ onAdView?: () => void;
97
+ } | undefined;
94
98
  redirectOnEndedUrl?: string;
95
99
  lang?: "ar" | "fa" | "en";
96
100
  }
@@ -359,6 +363,7 @@ export interface IControllerSlice {
359
363
  isClickInnerCard: boolean;
360
364
  loadedFragmentsCount: number[];
361
365
  isViewChangeIn360: boolean;
366
+ firstMute: boolean;
362
367
  }
363
368
  export interface IPopoversSlice {
364
369
  markersListPopover: boolean;
@@ -430,6 +435,7 @@ export interface IVideoDataSlice {
430
435
  showScreen: boolean;
431
436
  trailer: any[];
432
437
  hlsLiveSyncPosition: number;
438
+ adData: Ad | undefined;
433
439
  }
434
440
  export interface ISubtitle {
435
441
  id: number;
@@ -1129,3 +1135,16 @@ export interface ICommentSettingsPopoverProps {
1129
1135
  y: number;
1130
1136
  };
1131
1137
  }
1138
+ export type Ad = {
1139
+ id: number;
1140
+ url: string;
1141
+ ad_link: string;
1142
+ play_weight: number;
1143
+ mandatory_play_time: number;
1144
+ channel: number;
1145
+ banner?: string;
1146
+ video_id?: number;
1147
+ user_id?: number;
1148
+ content_id?: number;
1149
+ content_type?: number;
1150
+ };
@@ -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;
@@ -1,5 +1,5 @@
1
- import { IDetails, IMarker, IPlayList, IVideoDataSlice, IVideoElementSizeInfo, IWebListConfig } from '../../interfaces';
1
+ import { Ad, IDetails, IMarker, IPlayList, IVideoDataSlice, IVideoElementSizeInfo, IWebListConfig } from '../../interfaces';
2
2
  export declare const VideoDataSliceState: IVideoDataSlice;
3
- export declare const setInfo: import('@reduxjs/toolkit').ActionCreatorWithPayload<IDetails, "videoData/setInfo">, setPlayerParams: import('@reduxjs/toolkit').ActionCreatorWithPayload<any, "videoData/setPlayerParams">, setStreamLinkParams: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "videoData/setStreamLinkParams">, setMarkers: import('@reduxjs/toolkit').ActionCreatorWithPayload<IMarker[], "videoData/setMarkers">, setLiveId: import('@reduxjs/toolkit').ActionCreatorWithPayload<number, "videoData/setLiveId">, setVodId: import('@reduxjs/toolkit').ActionCreatorWithPayload<number, "videoData/setVodId">, setOnlineViewers: import('@reduxjs/toolkit').ActionCreatorWithPayload<any, "videoData/setOnlineViewers">, setQuestion: import('@reduxjs/toolkit').ActionCreatorWithPayload<any, "videoData/setQuestion">, setSelectedOptionId: import('@reduxjs/toolkit').ActionCreatorWithPayload<number | null, "videoData/setSelectedOptionId">, setEmojis: import('@reduxjs/toolkit').ActionCreatorWithPayload<any, "videoData/setEmojis">, setAlternative_Lives: import('@reduxjs/toolkit').ActionCreatorWithPayload<number[], "videoData/setAlternative_Lives">, setConfig: import('@reduxjs/toolkit').ActionCreatorWithPayload<any, "videoData/setConfig">, setIsLiveError: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "videoData/setIsLiveError">, setEmojiList1: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "videoData/setEmojiList1">, setEmojiList2: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "videoData/setEmojiList2">, setGif: import('@reduxjs/toolkit').ActionCreatorWithPayload<string | null, "videoData/setGif">, setErrorType: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<string | undefined, "videoData/setErrorType">, setMultiLives: import('@reduxjs/toolkit').ActionCreatorWithPayload<any[], "videoData/setMultiLives">, setMultiAudio: import('@reduxjs/toolkit').ActionCreatorWithPayload<any, "videoData/setMultiAudio">, setSelectedAudioId: import('@reduxjs/toolkit').ActionCreatorWithPayload<number, "videoData/setSelectedAudioId">, setSubtitles: import('@reduxjs/toolkit').ActionCreatorWithPayload<TextTrack[], "videoData/setSubtitles">, setSelectedSubtitle: import('@reduxjs/toolkit').ActionCreatorWithPayload<any, "videoData/setSelectedSubtitle">, setSubtitleText: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "videoData/setSubtitleText">, setIsComplexPortrait: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "videoData/setIsComplexPortrait">, setIsComplexDesktop: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "videoData/setIsComplexDesktop">, setVideoElementSizeInfo: import('@reduxjs/toolkit').ActionCreatorWithPayload<IVideoElementSizeInfo, "videoData/setVideoElementSizeInfo">, setRecommendationList: import('@reduxjs/toolkit').ActionCreatorWithPayload<any, "videoData/setRecommendationList">, setToken: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "videoData/setToken">, setIsFetchDetails: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "videoData/setIsFetchDetails">, setIsValidAddress: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "videoData/setIsValidAddress">, setPlayList: import('@reduxjs/toolkit').ActionCreatorWithPayload<IPlayList[], "videoData/setPlayList">, setVideoTimelines: import('@reduxjs/toolkit').ActionCreatorWithPayload<number[], "videoData/setVideoTimelines">, setWebListConfig: import('@reduxjs/toolkit').ActionCreatorWithPayload<IWebListConfig[], "videoData/setWebListConfig">, setChartPoints: import('@reduxjs/toolkit').ActionCreatorWithPayload<number[], "videoData/setChartPoints">, setIsReady: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "videoData/setIsReady">, setClearVideoDataSlice: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"videoData/setClearVideoDataSlice">, setShowScreen: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "videoData/setShowScreen">, setTrailer: import('@reduxjs/toolkit').ActionCreatorWithPayload<any[], "videoData/setTrailer">;
3
+ export declare const setInfo: import('@reduxjs/toolkit').ActionCreatorWithPayload<IDetails, "videoData/setInfo">, setPlayerParams: import('@reduxjs/toolkit').ActionCreatorWithPayload<any, "videoData/setPlayerParams">, setStreamLinkParams: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "videoData/setStreamLinkParams">, setMarkers: import('@reduxjs/toolkit').ActionCreatorWithPayload<IMarker[], "videoData/setMarkers">, setLiveId: import('@reduxjs/toolkit').ActionCreatorWithPayload<number, "videoData/setLiveId">, setVodId: import('@reduxjs/toolkit').ActionCreatorWithPayload<number, "videoData/setVodId">, setOnlineViewers: import('@reduxjs/toolkit').ActionCreatorWithPayload<any, "videoData/setOnlineViewers">, setQuestion: import('@reduxjs/toolkit').ActionCreatorWithPayload<any, "videoData/setQuestion">, setSelectedOptionId: import('@reduxjs/toolkit').ActionCreatorWithPayload<number | null, "videoData/setSelectedOptionId">, setEmojis: import('@reduxjs/toolkit').ActionCreatorWithPayload<any, "videoData/setEmojis">, setAlternative_Lives: import('@reduxjs/toolkit').ActionCreatorWithPayload<number[], "videoData/setAlternative_Lives">, setConfig: import('@reduxjs/toolkit').ActionCreatorWithPayload<any, "videoData/setConfig">, setIsLiveError: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "videoData/setIsLiveError">, setEmojiList1: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "videoData/setEmojiList1">, setEmojiList2: import('@reduxjs/toolkit').ActionCreatorWithPayload<string[], "videoData/setEmojiList2">, setGif: import('@reduxjs/toolkit').ActionCreatorWithPayload<string | null, "videoData/setGif">, setErrorType: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<string | undefined, "videoData/setErrorType">, setMultiLives: import('@reduxjs/toolkit').ActionCreatorWithPayload<any[], "videoData/setMultiLives">, setMultiAudio: import('@reduxjs/toolkit').ActionCreatorWithPayload<any, "videoData/setMultiAudio">, setSelectedAudioId: import('@reduxjs/toolkit').ActionCreatorWithPayload<number, "videoData/setSelectedAudioId">, setSubtitles: import('@reduxjs/toolkit').ActionCreatorWithPayload<TextTrack[], "videoData/setSubtitles">, setSelectedSubtitle: import('@reduxjs/toolkit').ActionCreatorWithPayload<any, "videoData/setSelectedSubtitle">, setSubtitleText: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "videoData/setSubtitleText">, setIsComplexPortrait: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "videoData/setIsComplexPortrait">, setIsComplexDesktop: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "videoData/setIsComplexDesktop">, setVideoElementSizeInfo: import('@reduxjs/toolkit').ActionCreatorWithPayload<IVideoElementSizeInfo, "videoData/setVideoElementSizeInfo">, setRecommendationList: import('@reduxjs/toolkit').ActionCreatorWithPayload<any, "videoData/setRecommendationList">, setToken: import('@reduxjs/toolkit').ActionCreatorWithPayload<string, "videoData/setToken">, setIsFetchDetails: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "videoData/setIsFetchDetails">, setIsValidAddress: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "videoData/setIsValidAddress">, setPlayList: import('@reduxjs/toolkit').ActionCreatorWithPayload<IPlayList[], "videoData/setPlayList">, setVideoTimelines: import('@reduxjs/toolkit').ActionCreatorWithPayload<number[], "videoData/setVideoTimelines">, setWebListConfig: import('@reduxjs/toolkit').ActionCreatorWithPayload<IWebListConfig[], "videoData/setWebListConfig">, setChartPoints: import('@reduxjs/toolkit').ActionCreatorWithPayload<number[], "videoData/setChartPoints">, setIsReady: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "videoData/setIsReady">, setClearVideoDataSlice: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"videoData/setClearVideoDataSlice">, setShowScreen: import('@reduxjs/toolkit').ActionCreatorWithPayload<boolean, "videoData/setShowScreen">, setTrailer: import('@reduxjs/toolkit').ActionCreatorWithPayload<any[], "videoData/setTrailer">, setAdData: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<Ad | undefined, "videoData/setAdData">;
4
4
  declare const _default: import('redux').Reducer<IVideoDataSlice>;
5
5
  export default _default;
@@ -1,6 +1,7 @@
1
1
  export declare const API: () => {
2
2
  Ad: {
3
3
  getVast: string;
4
+ list: (user_id: number, v?: string) => string;
4
5
  };
5
6
  live: {
6
7
  anonListConfigs: string;
@@ -0,0 +1,2 @@
1
+ declare const Advertisement: () => import("react/jsx-runtime").JSX.Element;
2
+ export default Advertisement;
@@ -0,0 +1,6 @@
1
+ interface Props {
2
+ link: string;
3
+ currentTime: number;
4
+ }
5
+ declare const MoreInfoButton: ({ link }: Props) => import("react/jsx-runtime").JSX.Element | null;
6
+ export default MoreInfoButton;
@@ -0,0 +1,6 @@
1
+ interface ProgressBarProps {
2
+ progress: number;
3
+ buffered: number;
4
+ }
5
+ declare const ProgressBar: ({ progress, buffered }: ProgressBarProps) => import("react/jsx-runtime").JSX.Element;
6
+ export default ProgressBar;
@@ -0,0 +1,6 @@
1
+ interface Props {
2
+ skipCounter: number | null;
3
+ currentTime: number;
4
+ }
5
+ declare const SkipButton: ({ skipCounter }: Props) => import("react/jsx-runtime").JSX.Element;
6
+ export default SkipButton;
@@ -0,0 +1,4 @@
1
+ declare const UnMuteVideo: ({ advertisement }: {
2
+ advertisement?: boolean;
3
+ }) => import("react/jsx-runtime").JSX.Element;
4
+ export default UnMuteVideo;
@@ -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,5 @@
1
+ declare const useControlsVisibility: (isPaused: boolean) => {
2
+ showControls: boolean;
3
+ resetTimer: (delay?: number) => void;
4
+ };
5
+ export default useControlsVisibility;
@@ -0,0 +1,14 @@
1
+ import { Ad } from '../../../../../interfaces';
2
+ interface UseVideoControlsResult {
3
+ progress: number;
4
+ buffered: number;
5
+ currentTime: number;
6
+ duration: number;
7
+ firstPlay: boolean;
8
+ setFirstPlay: React.Dispatch<React.SetStateAction<boolean>>;
9
+ isPaused: boolean;
10
+ skipCounter: number | null;
11
+ hasSkip: boolean;
12
+ }
13
+ declare const useVideoControls: (ad?: Ad, params?: any) => UseVideoControlsResult;
14
+ export default useVideoControls;
@@ -11056,6 +11056,8 @@ video {
11056
11056
  position: relative !important;
11057
11057
  }.pl-relative{
11058
11058
  position: relative;
11059
+ }.pl-inset-0{
11060
+ inset: 0px;
11059
11061
  }.\!pl-bottom-0{
11060
11062
  bottom: 0px !important;
11061
11063
  }.\!pl-bottom-\[10px\]{
@@ -11072,6 +11074,8 @@ video {
11072
11074
  left: 0px !important;
11073
11075
  }.\!pl-left-10{
11074
11076
  left: 2.5rem !important;
11077
+ }.\!pl-left-8{
11078
+ left: 2rem !important;
11075
11079
  }.\!pl-right-0{
11076
11080
  right: 0px !important;
11077
11081
  }.\!pl-right-\[-10px\]{
@@ -11138,8 +11142,12 @@ video {
11138
11142
  bottom: 45px;
11139
11143
  }.pl-bottom-\[50px\]{
11140
11144
  bottom: 50px;
11145
+ }.pl-bottom-\[56px\]{
11146
+ bottom: 56px;
11141
11147
  }.pl-bottom-\[60px\]{
11142
11148
  bottom: 60px;
11149
+ }.pl-bottom-\[66px\]{
11150
+ bottom: 66px;
11143
11151
  }.pl-bottom-\[75px\]{
11144
11152
  bottom: 75px;
11145
11153
  }.pl-bottom-auto{
@@ -11158,6 +11166,8 @@ video {
11158
11166
  left: 0.5rem;
11159
11167
  }.pl-left-3{
11160
11168
  left: 0.75rem;
11169
+ }.pl-left-6{
11170
+ left: 1.5rem;
11161
11171
  }.pl-left-9{
11162
11172
  left: 2.25rem;
11163
11173
  }.pl-left-\[160px\]{
@@ -11264,6 +11274,10 @@ video {
11264
11274
  z-index: 1000;
11265
11275
  }.pl-z-\[1\]{
11266
11276
  z-index: 1;
11277
+ }.pl-z-\[2\]{
11278
+ z-index: 2;
11279
+ }.pl-z-\[3\]{
11280
+ z-index: 3;
11267
11281
  }.pl-order-1{
11268
11282
  order: 1;
11269
11283
  }.pl-order-2{
@@ -11490,6 +11504,20 @@ video {
11490
11504
  aspect-ratio: 1 / 1;
11491
11505
  }.pl-aspect-video{
11492
11506
  aspect-ratio: 16 / 9;
11507
+ }.pl-size-4{
11508
+ width: 1rem;
11509
+ height: 1rem;
11510
+ }.pl-size-6{
11511
+ width: 1.5rem;
11512
+ height: 1.5rem;
11513
+ }.pl-size-full{
11514
+ width: 100%;
11515
+ height: 100%;
11516
+ }.pl-size-max{
11517
+ width: -moz-max-content;
11518
+ width: max-content;
11519
+ height: -moz-max-content;
11520
+ height: max-content;
11493
11521
  }.\!pl-h-5{
11494
11522
  height: 1.25rem !important;
11495
11523
  }.\!pl-h-6{
@@ -11919,10 +11947,14 @@ video {
11919
11947
  grid-template-columns: repeat(4, minmax(0, 1fr));
11920
11948
  }.pl-flex-row{
11921
11949
  flex-direction: row;
11950
+ }.\!pl-flex-row-reverse{
11951
+ flex-direction: row-reverse !important;
11922
11952
  }.pl-flex-row-reverse{
11923
11953
  flex-direction: row-reverse;
11924
11954
  }.pl-flex-col{
11925
11955
  flex-direction: column;
11956
+ }.\!pl-flex-col-reverse{
11957
+ flex-direction: column-reverse !important;
11926
11958
  }.pl-flex-col-reverse{
11927
11959
  flex-direction: column-reverse;
11928
11960
  }.pl-flex-wrap{
@@ -11931,6 +11963,8 @@ video {
11931
11963
  flex-wrap: nowrap;
11932
11964
  }.pl-content-center{
11933
11965
  align-content: center;
11966
+ }.\!pl-items-start{
11967
+ align-items: flex-start !important;
11934
11968
  }.pl-items-start{
11935
11969
  align-items: flex-start;
11936
11970
  }.\!pl-items-end{
@@ -11947,10 +11981,14 @@ video {
11947
11981
  justify-content: flex-end;
11948
11982
  }.pl-justify-center{
11949
11983
  justify-content: center;
11984
+ }.\!pl-justify-between{
11985
+ justify-content: space-between !important;
11950
11986
  }.pl-justify-between{
11951
11987
  justify-content: space-between;
11952
11988
  }.pl-justify-around{
11953
11989
  justify-content: space-around;
11990
+ }.\!pl-gap-0{
11991
+ gap: 0px !important;
11954
11992
  }.pl-gap-0\.5{
11955
11993
  gap: 0.125rem;
11956
11994
  }.pl-gap-1{
@@ -12007,12 +12045,16 @@ video {
12007
12045
  --tw-space-y-reverse: 0;
12008
12046
  margin-top: calc(2rem * calc(1 - var(--tw-space-y-reverse)));
12009
12047
  margin-bottom: calc(2rem * var(--tw-space-y-reverse));
12048
+ }.\!pl-self-start{
12049
+ align-self: flex-start !important;
12010
12050
  }.pl-self-start{
12011
12051
  align-self: flex-start;
12012
12052
  }.pl-self-end{
12013
12053
  align-self: flex-end;
12014
12054
  }.pl-self-center{
12015
12055
  align-self: center;
12056
+ }.\!pl-self-stretch{
12057
+ align-self: stretch !important;
12016
12058
  }.\!pl-overflow-auto{
12017
12059
  overflow: auto !important;
12018
12060
  }.pl-overflow-auto{
@@ -12083,6 +12125,10 @@ video {
12083
12125
  border-radius: 8px;
12084
12126
  }.pl-rounded-full{
12085
12127
  border-radius: 9999px;
12128
+ }.pl-rounded-lg{
12129
+ border-radius: 0.5rem;
12130
+ }.pl-rounded-md{
12131
+ border-radius: 0.375rem;
12086
12132
  }.\!pl-rounded-b-none{
12087
12133
  border-bottom-right-radius: 0px !important;
12088
12134
  border-bottom-left-radius: 0px !important;
@@ -12338,6 +12384,9 @@ video {
12338
12384
  }.pl-bg-gray-300{
12339
12385
  --tw-bg-opacity: 1;
12340
12386
  background-color: rgb(212 212 212 / var(--tw-bg-opacity, 1));
12387
+ }.pl-bg-gray-500{
12388
+ --tw-bg-opacity: 1;
12389
+ background-color: rgb(115 115 115 / var(--tw-bg-opacity, 1));
12341
12390
  }.pl-bg-gray-800{
12342
12391
  --tw-bg-opacity: 1;
12343
12392
  background-color: rgb(21 21 21 / var(--tw-bg-opacity, 1));
@@ -12372,6 +12421,9 @@ video {
12372
12421
  background-color: rgb(101 31 255 / 0.1);
12373
12422
  }.pl-bg-orange-100\/\[0\.4\]{
12374
12423
  background-color: rgb(241 95 34 / 0.4);
12424
+ }.pl-bg-primary-500{
12425
+ --tw-bg-opacity: 1;
12426
+ background-color: rgb(80 165 255 / var(--tw-bg-opacity, 1));
12375
12427
  }.pl-bg-primary-600{
12376
12428
  --tw-bg-opacity: 1;
12377
12429
  background-color: rgb(124 142 255 / var(--tw-bg-opacity, 1));
@@ -12454,6 +12506,10 @@ video {
12454
12506
  }.pl-bg-z-secondary-100{
12455
12507
  --tw-bg-opacity: 1;
12456
12508
  background-color: rgb(219 221 222 / var(--tw-bg-opacity, 1));
12509
+ }.pl-bg-z-secondary-100\/\[0\.4\]{
12510
+ background-color: rgb(219 221 222 / 0.4);
12511
+ }.pl-bg-z-secondary-50\/\[0\.4\]{
12512
+ background-color: rgb(250 250 250 / 0.4);
12457
12513
  }.pl-bg-z-secondary-600{
12458
12514
  --tw-bg-opacity: 1;
12459
12515
  background-color: rgb(87 88 90 / var(--tw-bg-opacity, 1));
@@ -12541,6 +12597,8 @@ video {
12541
12597
  padding: 0px !important;
12542
12598
  }.pl-p-0{
12543
12599
  padding: 0px;
12600
+ }.pl-p-0\.5{
12601
+ padding: 0.125rem;
12544
12602
  }.pl-p-1{
12545
12603
  padding: 0.25rem;
12546
12604
  }.pl-p-1\.5{
@@ -12764,6 +12822,8 @@ video {
12764
12822
  padding-top: 2.5px;
12765
12823
  }.pl-pt-\[2px\]{
12766
12824
  padding-top: 2px;
12825
+ }.pl-pt-\[30px\]{
12826
+ padding-top: 30px;
12767
12827
  }.pl-pt-\[8px\]{
12768
12828
  padding-top: 8px;
12769
12829
  }.pl-text-left{
@@ -12810,6 +12870,9 @@ video {
12810
12870
  font-size: 8px;
12811
12871
  }.pl-text-\[9px\]{
12812
12872
  font-size: 9px;
12873
+ }.pl-text-xs{
12874
+ font-size: 0.75rem;
12875
+ line-height: 1rem;
12813
12876
  }.\!pl-font-medium{
12814
12877
  font-weight: 500 !important;
12815
12878
  }.pl-font-\[700\]{
@@ -13218,8 +13281,20 @@ video {
13218
13281
  margin-top: calc(0px * calc(1 - var(--tw-space-y-reverse)));
13219
13282
  margin-bottom: calc(0px * var(--tw-space-y-reverse));
13220
13283
  }
13221
- }@media (min-width: 1024px){.lg\:pl-w-\[40\%\]{
13284
+ }@media (min-width: 1024px){.lg\:pl-bottom-\[78px\]{
13285
+ bottom: 78px;
13286
+ }.lg\:pl-bottom-\[88px\]{
13287
+ bottom: 88px;
13288
+ }.lg\:pl-h-10{
13289
+ height: 2.5rem;
13290
+ }.lg\:pl-h-11{
13291
+ height: 2.75rem;
13292
+ }.lg\:pl-w-\[40\%\]{
13222
13293
  width: 40%;
13294
+ }.lg\:pl-pb-4{
13295
+ padding-bottom: 1rem;
13296
+ }.lg\:pl-text-\[14px\]{
13297
+ font-size: 14px;
13223
13298
  }
13224
13299
  }@media (min-width: 1280px){.xl\:pl-w-\[50\%\]{
13225
13300
  width: 50%;