unified-video-framework 1.4.444 → 1.4.446
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/package.json +1 -1
- package/packages/core/dist/version.d.ts +1 -1
- package/packages/core/dist/version.js +1 -1
- package/packages/core/src/version.ts +1 -1
- package/packages/web/dist/WebPlayer.d.ts.map +1 -1
- package/packages/web/dist/WebPlayer.js +53 -20
- package/packages/web/dist/WebPlayer.js.map +1 -1
- package/packages/web/dist/drm.js +1 -1
- package/packages/web/src/WebPlayer.ts +62 -19
- package/scripts/fix-imports.js +61 -23
- package/packages/web/dist/WebPlayer.d.ts +0 -350
- package/packages/web/dist/ads/GoogleAdsManager.d.ts +0 -57
- package/packages/web/dist/ads/LiveStreamAdsManager.d.ts +0 -29
- package/packages/web/dist/ads/LiveStreamAdsManager.d.ts.map +0 -1
- package/packages/web/dist/ads/LiveStreamAdsManager.js +0 -168
- package/packages/web/dist/ads/LiveStreamAdsManager.js.map +0 -1
- package/packages/web/dist/chapters/ChapterManager.d.ts +0 -42
- package/packages/web/dist/chapters/CreditsButtonController.d.ts +0 -46
- package/packages/web/dist/chapters/SkipButtonController.d.ts +0 -31
- package/packages/web/dist/chapters/UserPreferencesManager.d.ts +0 -25
- package/packages/web/dist/chapters/index.d.ts +0 -12
- package/packages/web/dist/chapters/types/ChapterTypes.d.ts +0 -136
- package/packages/web/dist/drm.d.ts +0 -4
- package/packages/web/dist/index.d.ts +0 -7
- package/packages/web/dist/paywall/EmailAuthController.d.ts +0 -60
- package/packages/web/dist/paywall/PaywallController.d.ts +0 -74
- package/packages/web/dist/react/EPG.d.ts +0 -8
- package/packages/web/dist/react/WebPlayerView.d.ts +0 -397
- package/packages/web/dist/react/WebPlayerViewWithEPG.d.ts +0 -97
- package/packages/web/dist/react/components/ChapterProgress.d.ts +0 -22
- package/packages/web/dist/react/components/EPGNavigationControls.d.ts +0 -15
- package/packages/web/dist/react/components/EPGOverlay-improved-positioning.d.ts +0 -5
- package/packages/web/dist/react/components/EPGOverlay.d.ts +0 -5
- package/packages/web/dist/react/components/EPGProgramDetails.d.ts +0 -13
- package/packages/web/dist/react/components/EPGProgramGrid.d.ts +0 -19
- package/packages/web/dist/react/components/EPGTimelineHeader.d.ts +0 -16
- package/packages/web/dist/react/components/SkipButton.d.ts +0 -18
- package/packages/web/dist/react/components/commerce/ProductBadge.d.ts +0 -10
- package/packages/web/dist/react/components/commerce/ProductPanel.d.ts +0 -13
- package/packages/web/dist/react/examples/google-ads-example.d.ts +0 -4
- package/packages/web/dist/react/examples/live-stream-ads-example.d.ts +0 -8
- package/packages/web/dist/react/examples/live-stream-ads-example.d.ts.map +0 -1
- package/packages/web/dist/react/examples/live-stream-ads-example.js +0 -177
- package/packages/web/dist/react/examples/live-stream-ads-example.js.map +0 -1
- package/packages/web/dist/react/hooks/useChapters.d.ts +0 -29
- package/packages/web/dist/react/hooks/useCommerceSync.d.ts +0 -8
- package/packages/web/dist/react/types/EPGTypes.d.ts +0 -101
- package/packages/web/dist/react/types/FlashNewsTickerTypes.d.ts +0 -146
- package/packages/web/dist/react/types/VideoCommerceTypes.d.ts +0 -109
- package/packages/web/dist/react/utils/EPGUtils.d.ts +0 -21
- package/packages/web/dist/test/epg-test.d.ts +0 -3
- package/packages/web/dist/utils/YouTubeExtractor.d.ts +0 -38
|
@@ -1,397 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { CSSProperties } from 'react';
|
|
3
|
-
import type { SubtitleTrack, VideoMetadata } from '../../core/dist';
|
|
4
|
-
import { WebPlayer } from '../WebPlayer';
|
|
5
|
-
import type { EPGData, EPGConfig, EPGProgram, EPGProgramRow } from './types/EPGTypes';
|
|
6
|
-
import type { VCManifest, VCProduct, VCEvent } from './types/VideoCommerceTypes';
|
|
7
|
-
import type { FlashNewsTickerConfig } from './types/FlashNewsTickerTypes';
|
|
8
|
-
export interface ChapterAPI {
|
|
9
|
-
loadChapters: (chapters: any) => Promise<void>;
|
|
10
|
-
loadChaptersFromUrl: (url: string) => Promise<void>;
|
|
11
|
-
getCurrentSegment: () => any | null;
|
|
12
|
-
skipToSegment: (segmentId: string) => void;
|
|
13
|
-
getSegments: () => any[];
|
|
14
|
-
updateChapterConfig: (config: any) => void;
|
|
15
|
-
hasChapters: () => boolean;
|
|
16
|
-
getChapters: () => any | null;
|
|
17
|
-
getCoreChapters: () => any[];
|
|
18
|
-
getCoreSegments: () => any[];
|
|
19
|
-
getCurrentChapterInfo: () => any | null;
|
|
20
|
-
seekToChapter: (chapterId: string) => void;
|
|
21
|
-
getNextChapter: () => any | null;
|
|
22
|
-
getPreviousChapter: () => any | null;
|
|
23
|
-
}
|
|
24
|
-
export interface QualityAPI {
|
|
25
|
-
getQualities: () => any[];
|
|
26
|
-
getCurrentQuality: () => any | null;
|
|
27
|
-
setQuality: (index: number) => void;
|
|
28
|
-
setAutoQuality: (enabled: boolean) => void;
|
|
29
|
-
}
|
|
30
|
-
export interface EPGControlAPI {
|
|
31
|
-
setEPGData: (data: any) => void;
|
|
32
|
-
showEPGButton: () => void;
|
|
33
|
-
hideEPGButton: () => void;
|
|
34
|
-
isEPGButtonVisible: () => boolean;
|
|
35
|
-
}
|
|
36
|
-
export interface UIHelperAPI {
|
|
37
|
-
focusPlayer: () => void;
|
|
38
|
-
showFullscreenTip: () => void;
|
|
39
|
-
triggerFullscreenButton: () => void;
|
|
40
|
-
showTemporaryMessage: (message: string) => void;
|
|
41
|
-
showFullscreenInstructions: () => void;
|
|
42
|
-
enterFullscreenSynchronously: () => void;
|
|
43
|
-
}
|
|
44
|
-
export interface FullscreenAPI {
|
|
45
|
-
enterFullscreen: () => Promise<void>;
|
|
46
|
-
exitFullscreen: () => Promise<void>;
|
|
47
|
-
toggleFullscreen: () => Promise<void>;
|
|
48
|
-
enterPictureInPicture: () => Promise<void>;
|
|
49
|
-
exitPictureInPicture: () => Promise<void>;
|
|
50
|
-
}
|
|
51
|
-
export interface PlaybackAPI {
|
|
52
|
-
play: () => Promise<void>;
|
|
53
|
-
pause: () => void;
|
|
54
|
-
requestPause: () => void;
|
|
55
|
-
seek: (time: number) => void;
|
|
56
|
-
setVolume: (level: number) => void;
|
|
57
|
-
mute: () => void;
|
|
58
|
-
unmute: () => void;
|
|
59
|
-
toggleMute: () => void;
|
|
60
|
-
setPlaybackRate: (rate: number) => void;
|
|
61
|
-
getPlaybackRate: () => number;
|
|
62
|
-
getCurrentTime: () => number;
|
|
63
|
-
getDuration: () => number;
|
|
64
|
-
getState: () => any;
|
|
65
|
-
}
|
|
66
|
-
export type WebPlayerViewProps = {
|
|
67
|
-
autoPlay?: boolean;
|
|
68
|
-
muted?: boolean;
|
|
69
|
-
volume?: number;
|
|
70
|
-
controls?: boolean;
|
|
71
|
-
loop?: boolean;
|
|
72
|
-
preload?: 'none' | 'metadata' | 'auto';
|
|
73
|
-
crossOrigin?: 'anonymous' | 'use-credentials';
|
|
74
|
-
playsInline?: boolean;
|
|
75
|
-
defaultQuality?: number;
|
|
76
|
-
enableAdaptiveBitrate?: boolean;
|
|
77
|
-
debug?: boolean;
|
|
78
|
-
startTime?: number;
|
|
79
|
-
freeDuration?: number;
|
|
80
|
-
isLive?: boolean;
|
|
81
|
-
commerce?: {
|
|
82
|
-
manifest?: VCManifest;
|
|
83
|
-
manifestUrl?: string;
|
|
84
|
-
autoOpenPanel?: boolean;
|
|
85
|
-
onEvent?: (evt: VCEvent) => void;
|
|
86
|
-
onProductClick?: (p: VCProduct) => void;
|
|
87
|
-
};
|
|
88
|
-
customControls?: boolean;
|
|
89
|
-
youtubeNativeControls?: boolean;
|
|
90
|
-
settings?: {
|
|
91
|
-
enabled?: boolean;
|
|
92
|
-
speed?: boolean;
|
|
93
|
-
quality?: boolean;
|
|
94
|
-
subtitles?: boolean;
|
|
95
|
-
};
|
|
96
|
-
qualityFilter?: {
|
|
97
|
-
allowedHeights?: number[];
|
|
98
|
-
allowedLabels?: string[];
|
|
99
|
-
minHeight?: number;
|
|
100
|
-
maxHeight?: number;
|
|
101
|
-
};
|
|
102
|
-
premiumQualities?: {
|
|
103
|
-
enabled?: boolean;
|
|
104
|
-
requiredHeights?: number[];
|
|
105
|
-
requiredLabels?: string[];
|
|
106
|
-
minPremiumHeight?: number;
|
|
107
|
-
isPremiumUser?: boolean;
|
|
108
|
-
premiumLabel?: string;
|
|
109
|
-
onPremiumQualityClick?: (quality: {
|
|
110
|
-
height: number;
|
|
111
|
-
label: string;
|
|
112
|
-
}) => void;
|
|
113
|
-
unlockUrl?: string;
|
|
114
|
-
};
|
|
115
|
-
showFrameworkBranding?: boolean;
|
|
116
|
-
share?: {
|
|
117
|
-
enabled?: boolean;
|
|
118
|
-
url?: string;
|
|
119
|
-
title?: string;
|
|
120
|
-
text?: string;
|
|
121
|
-
generateUrl?: (videoData: {
|
|
122
|
-
videoId?: string;
|
|
123
|
-
metadata?: any;
|
|
124
|
-
}) => string;
|
|
125
|
-
};
|
|
126
|
-
watermark?: boolean | {
|
|
127
|
-
enabled?: boolean;
|
|
128
|
-
text?: string;
|
|
129
|
-
showTime?: boolean;
|
|
130
|
-
updateInterval?: number;
|
|
131
|
-
randomPosition?: boolean;
|
|
132
|
-
position?: {
|
|
133
|
-
x?: number | 'left' | 'center' | 'right' | 'random';
|
|
134
|
-
y?: number | 'top' | 'center' | 'bottom' | 'random';
|
|
135
|
-
};
|
|
136
|
-
style?: {
|
|
137
|
-
fontSize?: number;
|
|
138
|
-
fontFamily?: string;
|
|
139
|
-
opacity?: number;
|
|
140
|
-
color?: string;
|
|
141
|
-
gradientColors?: [string, string];
|
|
142
|
-
};
|
|
143
|
-
};
|
|
144
|
-
paywall?: import('../../core/dist').PaywallConfig;
|
|
145
|
-
paywallConfigUrl?: string;
|
|
146
|
-
emailAuth?: {
|
|
147
|
-
enabled?: boolean;
|
|
148
|
-
skipIfAuthenticated?: boolean;
|
|
149
|
-
apiEndpoints?: {
|
|
150
|
-
requestOtp?: string;
|
|
151
|
-
verifyOtp?: string;
|
|
152
|
-
refreshToken?: string;
|
|
153
|
-
logout?: string;
|
|
154
|
-
};
|
|
155
|
-
sessionStorage?: {
|
|
156
|
-
tokenKey?: string;
|
|
157
|
-
refreshTokenKey?: string;
|
|
158
|
-
userIdKey?: string;
|
|
159
|
-
};
|
|
160
|
-
ui?: {
|
|
161
|
-
title?: string;
|
|
162
|
-
description?: string;
|
|
163
|
-
emailPlaceholder?: string;
|
|
164
|
-
otpPlaceholder?: string;
|
|
165
|
-
submitButtonText?: string;
|
|
166
|
-
resendButtonText?: string;
|
|
167
|
-
resendCooldown?: number;
|
|
168
|
-
};
|
|
169
|
-
validation?: {
|
|
170
|
-
otpLength?: number;
|
|
171
|
-
otpTimeout?: number;
|
|
172
|
-
rateLimiting?: {
|
|
173
|
-
maxAttempts?: number;
|
|
174
|
-
windowMinutes?: number;
|
|
175
|
-
};
|
|
176
|
-
};
|
|
177
|
-
};
|
|
178
|
-
url: string;
|
|
179
|
-
type?: 'mp4' | 'hls' | 'dash' | 'webm' | 'auto';
|
|
180
|
-
subtitles?: SubtitleTrack[];
|
|
181
|
-
metadata?: VideoMetadata;
|
|
182
|
-
fallbackSources?: Array<{
|
|
183
|
-
url: string;
|
|
184
|
-
type?: 'mp4' | 'hls' | 'dash' | 'webm' | 'auto';
|
|
185
|
-
priority?: number;
|
|
186
|
-
}>;
|
|
187
|
-
fallbackPoster?: string;
|
|
188
|
-
fallbackShowErrorMessage?: boolean;
|
|
189
|
-
fallbackRetryDelay?: number;
|
|
190
|
-
fallbackRetryAttempts?: number;
|
|
191
|
-
onAllSourcesFailed?: (errors: Array<{
|
|
192
|
-
url: string;
|
|
193
|
-
error: any;
|
|
194
|
-
}>) => void;
|
|
195
|
-
cast?: boolean;
|
|
196
|
-
className?: string;
|
|
197
|
-
style?: CSSProperties;
|
|
198
|
-
playerTheme?: string | {
|
|
199
|
-
accent?: string;
|
|
200
|
-
accent2?: string;
|
|
201
|
-
iconColor?: string;
|
|
202
|
-
textPrimary?: string;
|
|
203
|
-
textSecondary?: string;
|
|
204
|
-
};
|
|
205
|
-
responsive?: {
|
|
206
|
-
enabled?: boolean;
|
|
207
|
-
aspectRatio?: number;
|
|
208
|
-
maxWidth?: string;
|
|
209
|
-
maxHeight?: string;
|
|
210
|
-
breakpoints?: {
|
|
211
|
-
mobile?: number;
|
|
212
|
-
tablet?: number;
|
|
213
|
-
};
|
|
214
|
-
mobilePortrait?: {
|
|
215
|
-
maxHeight?: string;
|
|
216
|
-
aspectRatio?: number;
|
|
217
|
-
};
|
|
218
|
-
mobileLandscape?: {
|
|
219
|
-
maxHeight?: string;
|
|
220
|
-
aspectRatio?: number;
|
|
221
|
-
};
|
|
222
|
-
tablet?: {
|
|
223
|
-
maxWidth?: string;
|
|
224
|
-
maxHeight?: string;
|
|
225
|
-
};
|
|
226
|
-
};
|
|
227
|
-
settingsScrollbar?: {
|
|
228
|
-
style?: 'default' | 'compact' | 'overlay';
|
|
229
|
-
widthPx?: number;
|
|
230
|
-
intensity?: number;
|
|
231
|
-
};
|
|
232
|
-
autoFocusPlayer?: boolean;
|
|
233
|
-
showFullscreenTipOnMount?: boolean;
|
|
234
|
-
playerRef?: React.RefObject<WebPlayer>;
|
|
235
|
-
onChapterAPI?: (api: ChapterAPI) => void;
|
|
236
|
-
onQualityAPI?: (api: QualityAPI) => void;
|
|
237
|
-
onEPGAPI?: (api: EPGControlAPI) => void;
|
|
238
|
-
onUIHelperAPI?: (api: UIHelperAPI) => void;
|
|
239
|
-
onFullscreenAPI?: (api: FullscreenAPI) => void;
|
|
240
|
-
onPlaybackAPI?: (api: PlaybackAPI) => void;
|
|
241
|
-
onReady?: (player: WebPlayer) => void;
|
|
242
|
-
onError?: (error: unknown) => void;
|
|
243
|
-
onPlay?: () => void;
|
|
244
|
-
onPause?: () => void;
|
|
245
|
-
onEnded?: () => void;
|
|
246
|
-
onTimeUpdate?: (data: {
|
|
247
|
-
currentTime: number;
|
|
248
|
-
duration: number;
|
|
249
|
-
}) => void;
|
|
250
|
-
onProgress?: (data: {
|
|
251
|
-
buffered: number;
|
|
252
|
-
}) => void;
|
|
253
|
-
onVolumeChange?: (data: {
|
|
254
|
-
volume: number;
|
|
255
|
-
muted: boolean;
|
|
256
|
-
}) => void;
|
|
257
|
-
onQualityChange?: (quality: any) => void;
|
|
258
|
-
onBuffering?: (isBuffering: boolean) => void;
|
|
259
|
-
onFullscreenChange?: (isFullscreen: boolean) => void;
|
|
260
|
-
onPictureInPictureChange?: (isPiP: boolean) => void;
|
|
261
|
-
epg?: EPGData;
|
|
262
|
-
epgConfig?: Partial<EPGConfig>;
|
|
263
|
-
showEPG?: boolean;
|
|
264
|
-
onToggleEPG?: (visible: boolean) => void;
|
|
265
|
-
onEPGFavorite?: (program: EPGProgram, channel: EPGProgramRow) => void | Promise<void>;
|
|
266
|
-
onEPGRecord?: (program: EPGProgram, channel: EPGProgramRow) => void | Promise<void>;
|
|
267
|
-
onEPGSetReminder?: (program: EPGProgram, channel: EPGProgramRow) => void | Promise<void>;
|
|
268
|
-
onEPGCatchup?: (program: EPGProgram, channel: EPGProgramRow) => void | Promise<void>;
|
|
269
|
-
onEPGProgramSelect?: (program: EPGProgram, channel: EPGProgramRow) => void;
|
|
270
|
-
onEPGChannelSelect?: (channel: EPGProgramRow) => void;
|
|
271
|
-
chapters?: {
|
|
272
|
-
enabled?: boolean;
|
|
273
|
-
data?: {
|
|
274
|
-
videoId: string;
|
|
275
|
-
duration: number;
|
|
276
|
-
segments: Array<{
|
|
277
|
-
id: string;
|
|
278
|
-
type: 'intro' | 'recap' | 'content' | 'credits' | 'ad' | 'sponsor' | 'offensive';
|
|
279
|
-
startTime: number;
|
|
280
|
-
endTime: number;
|
|
281
|
-
title: string;
|
|
282
|
-
skipLabel?: string;
|
|
283
|
-
description?: string;
|
|
284
|
-
thumbnail?: string;
|
|
285
|
-
autoSkip?: boolean;
|
|
286
|
-
autoSkipDelay?: number;
|
|
287
|
-
metadata?: Record<string, any>;
|
|
288
|
-
}>;
|
|
289
|
-
};
|
|
290
|
-
dataUrl?: string;
|
|
291
|
-
autoHide?: boolean;
|
|
292
|
-
autoHideDelay?: number;
|
|
293
|
-
showChapterMarkers?: boolean;
|
|
294
|
-
skipButtonPosition?: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
|
|
295
|
-
customStyles?: {
|
|
296
|
-
skipButton?: {
|
|
297
|
-
backgroundColor?: string;
|
|
298
|
-
borderColor?: string;
|
|
299
|
-
textColor?: string;
|
|
300
|
-
fontSize?: string;
|
|
301
|
-
borderRadius?: string;
|
|
302
|
-
padding?: string;
|
|
303
|
-
fontWeight?: string;
|
|
304
|
-
};
|
|
305
|
-
progressMarkers?: {
|
|
306
|
-
intro?: string;
|
|
307
|
-
recap?: string;
|
|
308
|
-
credits?: string;
|
|
309
|
-
ad?: string;
|
|
310
|
-
};
|
|
311
|
-
};
|
|
312
|
-
userPreferences?: {
|
|
313
|
-
autoSkipIntro?: boolean;
|
|
314
|
-
autoSkipRecap?: boolean;
|
|
315
|
-
autoSkipCredits?: boolean;
|
|
316
|
-
showSkipButtons?: boolean;
|
|
317
|
-
skipButtonTimeout?: number;
|
|
318
|
-
rememberChoices?: boolean;
|
|
319
|
-
resumePlaybackAfterSkip?: boolean;
|
|
320
|
-
};
|
|
321
|
-
};
|
|
322
|
-
navigation?: {
|
|
323
|
-
backButton?: {
|
|
324
|
-
enabled?: boolean;
|
|
325
|
-
icon?: 'arrow' | 'chevron' | 'custom';
|
|
326
|
-
customIcon?: string;
|
|
327
|
-
title?: string;
|
|
328
|
-
ariaLabel?: string;
|
|
329
|
-
onClick?: () => void | Promise<void>;
|
|
330
|
-
href?: string;
|
|
331
|
-
replace?: boolean;
|
|
332
|
-
};
|
|
333
|
-
closeButton?: {
|
|
334
|
-
enabled?: boolean;
|
|
335
|
-
icon?: 'x' | 'close' | 'custom';
|
|
336
|
-
customIcon?: string;
|
|
337
|
-
title?: string;
|
|
338
|
-
ariaLabel?: string;
|
|
339
|
-
onClick?: () => void | Promise<void>;
|
|
340
|
-
exitFullscreen?: boolean;
|
|
341
|
-
closeModal?: boolean;
|
|
342
|
-
};
|
|
343
|
-
};
|
|
344
|
-
onNavigationBackClicked?: () => void;
|
|
345
|
-
onNavigationCloseClicked?: () => void;
|
|
346
|
-
googleAds?: {
|
|
347
|
-
adTagUrl: string;
|
|
348
|
-
midrollTimes?: number[];
|
|
349
|
-
liveAdBreakMode?: 'periodic' | 'manual';
|
|
350
|
-
periodicAdInterval?: number;
|
|
351
|
-
syncToLiveEdge?: boolean;
|
|
352
|
-
pauseStreamDuringAd?: boolean;
|
|
353
|
-
liveEdgeOffset?: number;
|
|
354
|
-
companionAdSlots?: Array<{
|
|
355
|
-
containerId: string;
|
|
356
|
-
width: number;
|
|
357
|
-
height: number;
|
|
358
|
-
}>;
|
|
359
|
-
onAdStart?: () => void;
|
|
360
|
-
onAdEnd?: () => void;
|
|
361
|
-
onAdError?: (error: any) => void;
|
|
362
|
-
onAllAdsComplete?: () => void;
|
|
363
|
-
};
|
|
364
|
-
onChapterChange?: (chapter: any) => void;
|
|
365
|
-
onSegmentEntered?: (segment: any) => void;
|
|
366
|
-
onSegmentExited?: (segment: any) => void;
|
|
367
|
-
onSegmentSkipped?: (segment: any) => void;
|
|
368
|
-
onChapterSegmentEntered?: (data: {
|
|
369
|
-
segment: any;
|
|
370
|
-
timestamp: number;
|
|
371
|
-
}) => void;
|
|
372
|
-
onChapterSegmentSkipped?: (data: {
|
|
373
|
-
fromSegment: any;
|
|
374
|
-
toSegment?: any;
|
|
375
|
-
timestamp: number;
|
|
376
|
-
}) => void;
|
|
377
|
-
onChapterSkipButtonShown?: (data: {
|
|
378
|
-
segment: any;
|
|
379
|
-
position: string;
|
|
380
|
-
}) => void;
|
|
381
|
-
onChapterSkipButtonHidden?: (data: {
|
|
382
|
-
segment: any;
|
|
383
|
-
reason: string;
|
|
384
|
-
}) => void;
|
|
385
|
-
onChaptersLoaded?: (data: {
|
|
386
|
-
segmentCount: number;
|
|
387
|
-
chapters: any[];
|
|
388
|
-
}) => void;
|
|
389
|
-
onChaptersLoadError?: (data: {
|
|
390
|
-
error: Error;
|
|
391
|
-
url?: string;
|
|
392
|
-
}) => void;
|
|
393
|
-
flashNewsTicker?: FlashNewsTickerConfig;
|
|
394
|
-
};
|
|
395
|
-
export declare const WebPlayerView: React.FC<WebPlayerViewProps>;
|
|
396
|
-
export default WebPlayerView;
|
|
397
|
-
//# sourceMappingURL=WebPlayerView.d.ts.map
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { CSSProperties } from 'react';
|
|
3
|
-
import type { SubtitleTrack, VideoMetadata } from '../../core/dist';
|
|
4
|
-
import { WebPlayer } from '../WebPlayer';
|
|
5
|
-
import type { EPGData, EPGConfig, EPGProgram, EPGProgramRow } from './types/EPGTypes';
|
|
6
|
-
export interface WebPlayerViewWithEPGProps {
|
|
7
|
-
autoPlay?: boolean;
|
|
8
|
-
muted?: boolean;
|
|
9
|
-
enableAdaptiveBitrate?: boolean;
|
|
10
|
-
debug?: boolean;
|
|
11
|
-
freeDuration?: number;
|
|
12
|
-
paywall?: import('../../core/dist').PaywallConfig;
|
|
13
|
-
paywallConfigUrl?: string;
|
|
14
|
-
emailAuth?: {
|
|
15
|
-
enabled?: boolean;
|
|
16
|
-
skipIfAuthenticated?: boolean;
|
|
17
|
-
apiEndpoints?: {
|
|
18
|
-
requestOtp?: string;
|
|
19
|
-
verifyOtp?: string;
|
|
20
|
-
refreshToken?: string;
|
|
21
|
-
logout?: string;
|
|
22
|
-
};
|
|
23
|
-
sessionStorage?: {
|
|
24
|
-
tokenKey?: string;
|
|
25
|
-
refreshTokenKey?: string;
|
|
26
|
-
userIdKey?: string;
|
|
27
|
-
};
|
|
28
|
-
ui?: {
|
|
29
|
-
title?: string;
|
|
30
|
-
description?: string;
|
|
31
|
-
emailPlaceholder?: string;
|
|
32
|
-
otpPlaceholder?: string;
|
|
33
|
-
submitButtonText?: string;
|
|
34
|
-
resendButtonText?: string;
|
|
35
|
-
resendCooldown?: number;
|
|
36
|
-
};
|
|
37
|
-
validation?: {
|
|
38
|
-
otpLength?: number;
|
|
39
|
-
otpTimeout?: number;
|
|
40
|
-
rateLimiting?: {
|
|
41
|
-
maxAttempts?: number;
|
|
42
|
-
windowMinutes?: number;
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
url: string;
|
|
47
|
-
type?: 'mp4' | 'hls' | 'dash' | 'webm' | 'auto';
|
|
48
|
-
subtitles?: SubtitleTrack[];
|
|
49
|
-
metadata?: VideoMetadata;
|
|
50
|
-
cast?: boolean;
|
|
51
|
-
className?: string;
|
|
52
|
-
style?: CSSProperties;
|
|
53
|
-
playerTheme?: string | {
|
|
54
|
-
accent?: string;
|
|
55
|
-
accent2?: string;
|
|
56
|
-
iconColor?: string;
|
|
57
|
-
textPrimary?: string;
|
|
58
|
-
textSecondary?: string;
|
|
59
|
-
};
|
|
60
|
-
responsive?: {
|
|
61
|
-
enabled?: boolean;
|
|
62
|
-
aspectRatio?: number;
|
|
63
|
-
maxWidth?: string;
|
|
64
|
-
maxHeight?: string;
|
|
65
|
-
breakpoints?: {
|
|
66
|
-
mobile?: number;
|
|
67
|
-
tablet?: number;
|
|
68
|
-
};
|
|
69
|
-
mobilePortrait?: {
|
|
70
|
-
maxHeight?: string;
|
|
71
|
-
aspectRatio?: number;
|
|
72
|
-
};
|
|
73
|
-
mobileLandscape?: {
|
|
74
|
-
maxHeight?: string;
|
|
75
|
-
aspectRatio?: number;
|
|
76
|
-
};
|
|
77
|
-
tablet?: {
|
|
78
|
-
maxWidth?: string;
|
|
79
|
-
maxHeight?: string;
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
onReady?: (player: WebPlayer) => void;
|
|
83
|
-
onError?: (error: unknown) => void;
|
|
84
|
-
epg?: EPGData;
|
|
85
|
-
epgConfig?: Partial<EPGConfig>;
|
|
86
|
-
showEPG?: boolean;
|
|
87
|
-
onToggleEPG?: (visible: boolean) => void;
|
|
88
|
-
onEPGFavorite?: (program: EPGProgram, channel: EPGProgramRow) => void | Promise<void>;
|
|
89
|
-
onEPGRecord?: (program: EPGProgram, channel: EPGProgramRow) => void | Promise<void>;
|
|
90
|
-
onEPGSetReminder?: (program: EPGProgram, channel: EPGProgramRow) => void | Promise<void>;
|
|
91
|
-
onEPGCatchup?: (program: EPGProgram, channel: EPGProgramRow) => void | Promise<void>;
|
|
92
|
-
onEPGProgramSelect?: (program: EPGProgram, channel: EPGProgramRow) => void;
|
|
93
|
-
onEPGChannelSelect?: (channel: EPGProgramRow) => void;
|
|
94
|
-
}
|
|
95
|
-
export declare const WebPlayerViewWithEPG: React.FC<WebPlayerViewWithEPGProps>;
|
|
96
|
-
export default WebPlayerViewWithEPG;
|
|
97
|
-
//# sourceMappingURL=WebPlayerViewWithEPG.d.ts.map
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { VideoSegment, VideoChapters, SEGMENT_COLORS } from '../../chapters/types/ChapterTypes';
|
|
3
|
-
export interface ChapterMarker {
|
|
4
|
-
segment: VideoSegment;
|
|
5
|
-
position: number;
|
|
6
|
-
color: string;
|
|
7
|
-
label: string;
|
|
8
|
-
}
|
|
9
|
-
export interface ChapterProgressProps {
|
|
10
|
-
chapters: VideoChapters | null;
|
|
11
|
-
progress?: number;
|
|
12
|
-
buffered?: number;
|
|
13
|
-
showMarkers?: boolean;
|
|
14
|
-
markerColors?: Partial<typeof SEGMENT_COLORS>;
|
|
15
|
-
onMarkerClick?: (segment: VideoSegment) => void;
|
|
16
|
-
onProgressClick?: (percentage: number) => void;
|
|
17
|
-
className?: string;
|
|
18
|
-
style?: React.CSSProperties;
|
|
19
|
-
interactive?: boolean;
|
|
20
|
-
}
|
|
21
|
-
export declare const ChapterProgress: React.FC<ChapterProgressProps>;
|
|
22
|
-
//# sourceMappingURL=ChapterProgress.d.ts.map
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { EPGComponentProps } from '../types/EPGTypes';
|
|
3
|
-
interface EPGNavigationControlsProps extends EPGComponentProps {
|
|
4
|
-
onNavigate: (direction: 'left' | 'right' | 'today') => void;
|
|
5
|
-
onTimeRangeChange?: (hours: number) => void;
|
|
6
|
-
canNavigateLeft?: boolean;
|
|
7
|
-
canNavigateRight?: boolean;
|
|
8
|
-
currentTime?: number;
|
|
9
|
-
timelineStart?: number;
|
|
10
|
-
timelineEnd?: number;
|
|
11
|
-
visibleHours?: number;
|
|
12
|
-
}
|
|
13
|
-
export declare const EPGNavigationControls: React.FC<EPGNavigationControlsProps>;
|
|
14
|
-
export default EPGNavigationControls;
|
|
15
|
-
//# sourceMappingURL=EPGNavigationControls.d.ts.map
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { EPGComponentProps, EPGProgram, EPGProgramRow, EPGAction } from '../types/EPGTypes';
|
|
3
|
-
interface EPGProgramDetailsProps extends EPGComponentProps {
|
|
4
|
-
program: EPGProgram | null;
|
|
5
|
-
channel?: EPGProgramRow;
|
|
6
|
-
onClose: () => void;
|
|
7
|
-
onAction: (action: EPGAction) => void | Promise<void>;
|
|
8
|
-
isModal?: boolean;
|
|
9
|
-
currentTime?: number;
|
|
10
|
-
}
|
|
11
|
-
export declare const EPGProgramDetails: React.FC<EPGProgramDetailsProps>;
|
|
12
|
-
export default EPGProgramDetails;
|
|
13
|
-
//# sourceMappingURL=EPGProgramDetails.d.ts.map
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { EPGComponentProps, EPGProgramRow, EPGProgram } from '../types/EPGTypes';
|
|
3
|
-
interface EPGProgramGridProps extends EPGComponentProps {
|
|
4
|
-
data: EPGProgramRow[];
|
|
5
|
-
timelineStart: number;
|
|
6
|
-
timelineEnd: number;
|
|
7
|
-
containerWidth: number;
|
|
8
|
-
currentTime?: number;
|
|
9
|
-
selectedProgram?: EPGProgram | null;
|
|
10
|
-
onProgramSelect?: (program: EPGProgram, channel: EPGProgramRow) => void;
|
|
11
|
-
onChannelSelect?: (channel: EPGProgramRow) => void;
|
|
12
|
-
onTimelineScroll?: (scrollLeft: number) => void;
|
|
13
|
-
timelineScrollLeft?: number;
|
|
14
|
-
channelHeight?: number;
|
|
15
|
-
visibleChannels?: number;
|
|
16
|
-
}
|
|
17
|
-
export declare const EPGProgramGrid: React.FC<EPGProgramGridProps>;
|
|
18
|
-
export default EPGProgramGrid;
|
|
19
|
-
//# sourceMappingURL=EPGProgramGrid.d.ts.map
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { EPGComponentProps } from '../types/EPGTypes';
|
|
3
|
-
interface EPGTimelineHeaderProps extends EPGComponentProps {
|
|
4
|
-
timelineStart: number;
|
|
5
|
-
timelineEnd: number;
|
|
6
|
-
containerWidth: number;
|
|
7
|
-
currentTime?: number;
|
|
8
|
-
visibleHours?: number;
|
|
9
|
-
slotDuration?: number;
|
|
10
|
-
onTimeClick?: (timestamp: number) => void;
|
|
11
|
-
scrollLeft?: number;
|
|
12
|
-
onScroll?: (scrollLeft: number) => void;
|
|
13
|
-
}
|
|
14
|
-
export declare const EPGTimelineHeader: React.FC<EPGTimelineHeaderProps>;
|
|
15
|
-
export default EPGTimelineHeader;
|
|
16
|
-
//# sourceMappingURL=EPGTimelineHeader.d.ts.map
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { VideoSegment, SkipButtonPosition } from '../../chapters/types/ChapterTypes';
|
|
3
|
-
export interface SkipButtonProps {
|
|
4
|
-
segment: VideoSegment | null;
|
|
5
|
-
visible?: boolean;
|
|
6
|
-
position?: SkipButtonPosition;
|
|
7
|
-
autoHideDelay?: number;
|
|
8
|
-
skipLabel?: string;
|
|
9
|
-
onSkip?: (segment: VideoSegment) => void;
|
|
10
|
-
onShow?: (segment: VideoSegment) => void;
|
|
11
|
-
onHide?: (segment: VideoSegment, reason: string) => void;
|
|
12
|
-
className?: string;
|
|
13
|
-
style?: React.CSSProperties;
|
|
14
|
-
enableAutoSkip?: boolean;
|
|
15
|
-
autoSkipDelay?: number;
|
|
16
|
-
}
|
|
17
|
-
export declare const SkipButton: React.FC<SkipButtonProps>;
|
|
18
|
-
//# sourceMappingURL=SkipButton.d.ts.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { VCProduct, VCOverlayInstruction } from "../../types/VideoCommerceTypes";
|
|
3
|
-
type Props = {
|
|
4
|
-
product: VCProduct;
|
|
5
|
-
overlay: VCOverlayInstruction;
|
|
6
|
-
onClick: (p: VCProduct) => void;
|
|
7
|
-
};
|
|
8
|
-
export default function ProductBadge({ product, overlay, onClick }: Props): React.JSX.Element;
|
|
9
|
-
export {};
|
|
10
|
-
//# sourceMappingURL=ProductBadge.d.ts.map
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { VCProduct } from "../../types/VideoCommerceTypes";
|
|
3
|
-
type Props = {
|
|
4
|
-
products: VCProduct[];
|
|
5
|
-
visible: boolean;
|
|
6
|
-
position?: "right" | "left" | "bottom";
|
|
7
|
-
width?: number;
|
|
8
|
-
onProductClick: (p: VCProduct) => void;
|
|
9
|
-
onClose: () => void;
|
|
10
|
-
};
|
|
11
|
-
export default function ProductPanel({ products, visible, position, width, onProductClick, onClose }: Props): React.JSX.Element;
|
|
12
|
-
export {};
|
|
13
|
-
//# sourceMappingURL=ProductPanel.d.ts.map
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare const LiveStreamAdsExample: React.FC;
|
|
3
|
-
export declare const MetadataLiveAdsExample: React.FC;
|
|
4
|
-
export declare const PeriodicLiveAdsExample: React.FC;
|
|
5
|
-
export declare const HybridLiveAdsExample: React.FC;
|
|
6
|
-
export declare const BackendControlledLiveAdsExample: React.FC;
|
|
7
|
-
export default LiveStreamAdsExample;
|
|
8
|
-
//# sourceMappingURL=live-stream-ads-example.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"live-stream-ads-example.d.ts","sourceRoot":"","sources":["../../../src/react/examples/live-stream-ads-example.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAYxC,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EA0MxC,CAAC;AAOF,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EA6B1C,CAAC;AAOF,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAwB1C,CAAC;AAOF,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAmCxC,CAAC;AAQF,eAAO,MAAM,+BAA+B,EAAE,KAAK,CAAC,EA4BnD,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|