@vkontakte/videoplayer 1.1.86 → 1.1.87-dev.04ce2cd1.0
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/es2015.cjs +423 -56
- package/es2015.esm.js +423 -56
- package/es2018.cjs +423 -56
- package/es2018.esm.js +423 -56
- package/es2024.cjs +423 -56
- package/es2024.esm.js +423 -56
- package/esnext.cjs +423 -56
- package/esnext.esm.js +423 -56
- package/evergreen.esm.js +423 -56
- package/package.json +5 -5
- package/types/VKVideoPlayer/HTMLElement.d.ts +1 -1
- package/types/VKVideoPlayer/index.svelte.d.ts +173 -173
- package/types/components/Ads/admanWrapper.d.ts +79 -75
- package/types/components/Ads/types.d.ts +27 -27
- package/types/components/Controls/contants/desktopButtonsLeftIds.d.ts +8 -8
- package/types/components/Controls/contants/desktopButtonsLeftWeights.d.ts +2 -4
- package/types/components/Controls/contants/desktopButtonsRightIds.d.ts +8 -8
- package/types/components/Controls/contants/desktopButtonsRightWeights.d.ts +2 -4
- package/types/components/Controls/types.d.ts +27 -27
- package/types/components/Controls/utils/isInnerButtonGuard.d.ts +1 -1
- package/types/components/Icons/constants.d.ts +5 -5
- package/types/components/Icons/utils.d.ts +1 -1
- package/types/components/Menus/constants/contextMenuItemIds.d.ts +10 -10
- package/types/components/Menus/constants/contextMenuItemWeights.d.ts +2 -4
- package/types/components/Menus/constants/index.d.ts +4 -4
- package/types/components/Menus/constants/openSubMenuItemsIds.d.ts +1 -1
- package/types/components/Menus/constants/settingsMenuItemIds.d.ts +10 -10
- package/types/components/Menus/constants/settingsMenuItemWeights.d.ts +2 -4
- package/types/components/Menus/constants/subMenuIds.d.ts +6 -6
- package/types/components/Menus/subMenuTabs/rootMenuItems.d.ts +26 -26
- package/types/components/Menus/subMenuTabs/sharedMenuItems.d.ts +7 -7
- package/types/components/Menus/subMenuTabs/subMenuItems.d.ts +4 -10
- package/types/components/Menus/subMenuTabs/types.d.ts +108 -108
- package/types/components/Menus/subMenuTabs/utils.d.ts +2 -2
- package/types/components/Menus/types.d.ts +64 -61
- package/types/components/Menus/utils/getCurrentQualityDisplayValue.d.ts +12 -12
- package/types/components/Menus/utils/getQualityIcon.d.ts +2 -2
- package/types/components/Menus/utils/getSubMenusStack.svelte.d.ts +7 -7
- package/types/components/Menus/utils/menuNavigation.d.ts +5 -5
- package/types/components/Root/types.d.ts +79 -79
- package/types/components/Root/utils.d.ts +2 -2
- package/types/components/Timeline/PreviewTrack/useTransitionToPreviewTrack.svelte.d.ts +15 -15
- package/types/components/Timeline/consts.d.ts +2 -2
- package/types/components/shared/interpolateUtils.d.ts +2 -2
- package/types/config.d.ts +270 -260
- package/types/constans/controls.d.ts +21 -21
- package/types/constans/grid.d.ts +9 -9
- package/types/constans/index.d.ts +8 -8
- package/types/constans/interactives.d.ts +4 -4
- package/types/constans/keyboard.d.ts +43 -48
- package/types/index.d.ts +16 -16
- package/types/services/statistics.d.ts +13 -13
- package/types/store/index.d.ts +391 -391
- package/types/store/micro/base.d.ts +6 -6
- package/types/store/micro/fakeIsPlaying.d.ts +8 -10
- package/types/store/micro/graphIsOpened.d.ts +11 -13
- package/types/store/micro/index.d.ts +1 -1
- package/types/store/micro/interactiveControlsOpacity.d.ts +8 -10
- package/types/store/micro/notifications.d.ts +7 -10
- package/types/store/micro/pictureInPicture.d.ts +6 -9
- package/types/store/micro/seekToInteractiveDisabledTooltip.d.ts +8 -7
- package/types/store/micro/showInteractiveTimeIndicatorTooltip.d.ts +13 -12
- package/types/store/utils.d.ts +36 -36
- package/types/translation/index.d.ts +2 -2
- package/types/translation/labels.d.ts +1 -1
- package/types/translation/packs/en.d.ts +1 -1
- package/types/translation/packs/ru.d.ts +1 -1
- package/types/translation/types.d.ts +5 -5
- package/types/types/index.d.ts +534 -516
- package/types/types/svg.d.d.ts +5 -0
- package/types/utils/CaptionsPrepared.d.ts +15 -15
- package/types/utils/WebVttParser.d.ts +11 -11
- package/types/utils/attachments/defferedDisableByCondition.d.ts +3 -3
- package/types/utils/changeVolume.d.ts +6 -6
- package/types/utils/elementHelpers.d.ts +2 -2
- package/types/utils/findCurrentSubtltlePhrase.d.ts +1 -1
- package/types/utils/fullscreen.d.ts +14 -14
- package/types/utils/getActualEpisode.d.ts +7 -7
- package/types/utils/getControlInfo.d.ts +5 -7
- package/types/utils/getHotKeyMapData.d.ts +1 -1
- package/types/utils/grid.d.ts +1 -1
- package/types/utils/hooks/useIosSafariFullscreen.d.ts +2 -2
- package/types/utils/hooks/useIosSafariFullscreenSubtitles.d.ts +3 -3
- package/types/utils/keyboardHandleCases.d.ts +1 -1
- package/types/utils/notificationShowManager.d.ts +7 -6
- package/types/utils/roundFps.d.ts +1 -1
- package/types/utils/sanitizeHtml.d.ts +3 -3
- package/types/utils/sorts.d.ts +2 -2
- package/types/utils/stack/index.d.ts +7 -7
- package/types/utils/stack/node.d.ts +3 -3
- package/types/utils/subtitles.d.ts +8 -8
- package/types/utils/timeout.d.ts +2 -2
- package/types/utils/updatePlayerControlBlocks.d.ts +2 -2
- package/types/utils/updatePlayerControlsInfo.d.ts +2 -2
- package/types/utils/userSettings.d.ts +26 -21
- package/types/utils/videoConfig.d.ts +6 -2
- package/types/utils/volumeChange.d.ts +1 -1
- package/types/utils/webAPI/annotationsApi/annotationsApi.d.ts +31 -31
- package/types/utils/webAPI/annotationsApi/errors.d.ts +1 -1
- package/types/utils/webAPI/focusLock.d.ts +30 -30
- package/types/utils/webAPI/focusManager.d.ts +15 -15
- package/types/utils/webAPI/language.d.ts +1 -1
- package/types/utils/webAPI/mediaSessionApi.d.ts +14 -14
- package/types/utils/webAPI/pictureInPictureApi/documentPictureInPictureApi.svelte.d.ts +41 -41
- package/types/utils/webAPI/pictureInPictureApi/factory.d.ts +2 -2
- package/types/utils/webAPI/pictureInPictureApi/index.d.ts +4 -4
- package/types/utils/webAPI/pictureInPictureApi/pictureInPictureApi.d.ts +46 -46
- package/types/utils/webAPI/pictureInPictureApi/types.d.ts +4 -4
- package/types/utils/webAPI/pictureInPictureApi/utils.d.ts +3 -3
- package/types/utils/webAPI/slotsApi.d.ts +41 -41
package/types/config.d.ts
CHANGED
|
@@ -1,275 +1,285 @@
|
|
|
1
|
-
import type { ExactVideoQuality, Seconds, IAppTracerOptions } from
|
|
2
|
-
import type { IOptionalTuningConfig as ICoreConfig } from
|
|
3
|
-
import { InterfaceLanguage } from
|
|
4
|
-
import type { RecursivePartial } from
|
|
5
|
-
import type { IOptionalConfig as IStatisticsConfig } from
|
|
6
|
-
import type { Milliseconds } from
|
|
7
|
-
import type { Size } from
|
|
1
|
+
import type { ExactVideoQuality, Seconds, IAppTracerOptions } from "@vkontakte/videoplayer-shared";
|
|
2
|
+
import type { IOptionalTuningConfig as ICoreConfig } from "@vkontakte/videoplayer-core";
|
|
3
|
+
import { InterfaceLanguage } from "@vkontakte/videoplayer-shared";
|
|
4
|
+
import type { RecursivePartial } from "@vkontakte/videoplayer-shared";
|
|
5
|
+
import type { IOptionalConfig as IStatisticsConfig } from "@vkontakte/videoplayer-statistics";
|
|
6
|
+
import type { Milliseconds } from "@vkontakte/videoplayer-shared";
|
|
7
|
+
import type { Size } from "./types";
|
|
8
8
|
type ForceOrRelay = boolean | undefined;
|
|
9
9
|
export declare enum LogoType {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
VK = "vk",
|
|
11
|
+
VK_VIDEO = "vk_video",
|
|
12
|
+
APP_STORE = "app_store",
|
|
13
|
+
PLAY_MARKET = "play_market",
|
|
14
|
+
VK_VIDEO_MOBILE = "vk_video_mobile"
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
export type TitleShowBehaviour =
|
|
17
|
+
* Определяет, когда показывать заголовок видео.
|
|
18
|
+
* fullscreen - только в фулскрине(дефолтное поведение)
|
|
19
|
+
* with-controls - показывается везде, когда контролы видны
|
|
20
|
+
* never - не показывать
|
|
21
|
+
* always - показыватьв всегда
|
|
22
|
+
*/
|
|
23
|
+
export type TitleShowBehaviour = "fullscreen" | "with-controls" | "never" | "always";
|
|
24
24
|
export interface IDpipConfig {
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
minimalView?: boolean;
|
|
26
|
+
initialSize?: Size;
|
|
27
27
|
}
|
|
28
28
|
export interface IUIConfig {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
29
|
+
isMobile: ForceOrRelay;
|
|
30
|
+
disableInvisibleComponentsTimeout: Milliseconds;
|
|
31
|
+
debugLog: boolean | {
|
|
32
|
+
tag?: string;
|
|
33
|
+
colors?: string[];
|
|
34
|
+
};
|
|
35
|
+
devNullLog: boolean;
|
|
36
|
+
isSmoothVideoRotate: boolean;
|
|
37
|
+
showSupport: boolean;
|
|
38
|
+
supportLink: string;
|
|
39
|
+
showLogo: ForceOrRelay;
|
|
40
|
+
logoLink: string;
|
|
41
|
+
logoType: LogoType;
|
|
42
|
+
defaultLanguage: InterfaceLanguage;
|
|
43
|
+
downloadVKLanguages: boolean;
|
|
44
|
+
updateBuiltinLanguages: boolean;
|
|
45
|
+
ads: {
|
|
46
|
+
enable: ForceOrRelay;
|
|
47
|
+
loadTimeout: Milliseconds;
|
|
48
|
+
initTimeout: Milliseconds;
|
|
49
|
+
runtimeTimeout: Milliseconds;
|
|
50
|
+
slot?: number;
|
|
51
|
+
/** @deprecated, Вместо этого используйте paramsOverride: { preview } */
|
|
52
|
+
preview?: number;
|
|
53
|
+
paramsOverride?: Record<string, unknown>;
|
|
54
|
+
isMobileGoToSiteButton: boolean;
|
|
55
|
+
useAdmanFromNPM: boolean;
|
|
56
|
+
volumeMultiplier: number;
|
|
57
|
+
isVsidOriginal: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Включает режим переиспользования видеоэлемента рекламы между инстансами плеера
|
|
60
|
+
* (нужно для передачи разрешений браузера от одного плеера другому, например: стартовать со звуком)
|
|
61
|
+
* (Врядли имеет смысл без такого же включенного флага в настройках ядра)
|
|
62
|
+
*/
|
|
63
|
+
reuseOwnVideoElement: boolean;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* Если нет ранее сохранённого значения громкости будет использовано это
|
|
67
|
+
*/
|
|
68
|
+
volumeDefault: number;
|
|
69
|
+
volumeMinRestore: number;
|
|
70
|
+
loaderDelay: Milliseconds;
|
|
71
|
+
allowChangingFullscreenTarget: boolean;
|
|
72
|
+
minSubtitlesFontSize: number;
|
|
73
|
+
autoSubtitlesTimeout: Milliseconds;
|
|
74
|
+
trafficSavingLimit: ExactVideoQuality;
|
|
75
|
+
highQualityLimit: ExactVideoQuality;
|
|
76
|
+
episodeMinWidthPc: number;
|
|
77
|
+
controls: {
|
|
78
|
+
showOnStartupAtAutoplay: boolean;
|
|
79
|
+
hideTimeout: Milliseconds;
|
|
80
|
+
hideTimeoutMobile: Milliseconds;
|
|
81
|
+
hideTimeoutInitial: Milliseconds;
|
|
82
|
+
hideTimeoutFullscreen: Milliseconds;
|
|
83
|
+
hideTimeoutCursor: Milliseconds;
|
|
84
|
+
hideTimeoutTooltips: Milliseconds;
|
|
85
|
+
collapseMobileUnmute: Milliseconds;
|
|
86
|
+
hide360IconTimeout: Milliseconds;
|
|
87
|
+
volumeBarTimeout: Milliseconds;
|
|
88
|
+
hideHotKeyHelpers: Milliseconds;
|
|
89
|
+
playbackRateMin: number;
|
|
90
|
+
playbackRateMax: number;
|
|
91
|
+
playbackRateStep: number;
|
|
92
|
+
seekStepKeyboard: Milliseconds;
|
|
93
|
+
seekStepMobile: Milliseconds;
|
|
94
|
+
seekStepFrame: Milliseconds;
|
|
95
|
+
volumeStepKeyboard: number;
|
|
96
|
+
volumeStepWheel: number;
|
|
97
|
+
};
|
|
98
|
+
hideThumbTimerAfterTouch: boolean;
|
|
99
|
+
preventPauseOnVideoClick: boolean;
|
|
100
|
+
features: {
|
|
101
|
+
autoplay: boolean;
|
|
102
|
+
statistics: boolean;
|
|
103
|
+
thinStatistics: boolean;
|
|
104
|
+
preload: boolean;
|
|
105
|
+
subtitles: boolean;
|
|
106
|
+
timelinePreview: boolean;
|
|
107
|
+
episodes: boolean;
|
|
108
|
+
fullscreen: boolean;
|
|
109
|
+
mediaSession: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* @deprecated Использовать slotsApi.
|
|
112
|
+
*/
|
|
113
|
+
annotations: boolean;
|
|
114
|
+
/**
|
|
115
|
+
* @deprecated Использовать slotsApi.
|
|
116
|
+
*/
|
|
117
|
+
annotationsInside: boolean;
|
|
118
|
+
slots: boolean;
|
|
119
|
+
download: boolean;
|
|
120
|
+
pip: boolean;
|
|
121
|
+
dpip: boolean | IDpipConfig;
|
|
122
|
+
liveRewind: boolean;
|
|
123
|
+
playbackRate: boolean;
|
|
124
|
+
trafficSaving: boolean;
|
|
125
|
+
episodesClustering: boolean;
|
|
126
|
+
copyVideoLink: boolean;
|
|
127
|
+
videoRotate: boolean;
|
|
128
|
+
tracer: boolean;
|
|
129
|
+
apptracer: IAppTracerOptions;
|
|
130
|
+
interactiveGraph: boolean;
|
|
131
|
+
interactiveResponsiveUi?: boolean;
|
|
132
|
+
seekToInteractive: boolean;
|
|
133
|
+
interactiveLastFrame: boolean;
|
|
134
|
+
interactiveTextPermanent: boolean;
|
|
135
|
+
interactiveHideTime: boolean;
|
|
136
|
+
interactivePlayPrevChapter: boolean;
|
|
137
|
+
interactiveTimeIndicator: boolean;
|
|
138
|
+
interactiveTimeOpenUri: boolean;
|
|
139
|
+
interactiveAreaControlShadow: boolean;
|
|
140
|
+
interactiveControlsExpectTimeBlinkAnimation: boolean;
|
|
141
|
+
interactiveControlsTapPlace: boolean;
|
|
142
|
+
interactiveControlsFillAnimation: boolean;
|
|
143
|
+
interactiveControlsHideAnimation: boolean;
|
|
144
|
+
interactiveHistoryEndChapterFix: boolean;
|
|
145
|
+
thumbTimer: boolean;
|
|
146
|
+
hotKeyMapModal: boolean;
|
|
147
|
+
hotKeyHelpers: boolean;
|
|
148
|
+
saveDebugInfoToFile: boolean;
|
|
149
|
+
saveTraceInfoToFile: boolean;
|
|
150
|
+
additionalButtons: boolean;
|
|
151
|
+
additionalButtonsDesktopControlPanelRight: boolean;
|
|
152
|
+
additionalSettingsMenuItems: boolean;
|
|
153
|
+
additionalContextMenuItems: boolean;
|
|
154
|
+
contextMenuButton: boolean;
|
|
155
|
+
audioLanguages: boolean;
|
|
156
|
+
saveRate: boolean;
|
|
157
|
+
fullscreenInternalTargetPlayerContainer: boolean;
|
|
158
|
+
endScreen: boolean;
|
|
159
|
+
autoplayNext: boolean;
|
|
160
|
+
nextPrevButtons: boolean;
|
|
161
|
+
previewNoEmptySpace: boolean;
|
|
162
|
+
exposeInternalsToGlobal: boolean;
|
|
163
|
+
qualityDetailsSubMenuEnabled: boolean;
|
|
164
|
+
forceAutoQualityWhenSevereStallHappens: boolean;
|
|
165
|
+
showSlowVideoNotification: boolean;
|
|
166
|
+
maxCountShowSlowVideoNotification: number;
|
|
167
|
+
timeoutShowSlowVideoNotification: number;
|
|
168
|
+
forcePlayerDisplayBlock: boolean;
|
|
169
|
+
/**
|
|
170
|
+
* Отображать ли анимацию смены статуса проигрывания.
|
|
171
|
+
*/
|
|
172
|
+
playbackStatusShow: boolean;
|
|
173
|
+
/**
|
|
174
|
+
* Отображать ли анимацию при переключении видео на следующее или предыдущее.
|
|
175
|
+
*/
|
|
176
|
+
playbackStatusNextVideoShow: boolean;
|
|
177
|
+
/**
|
|
178
|
+
* Включает ранее выбранный язык субтитров при запуске видео
|
|
179
|
+
*/
|
|
180
|
+
initSubtitles: boolean;
|
|
181
|
+
/**
|
|
182
|
+
* При запуске предыдущего/следующего видео из MediaSession
|
|
183
|
+
* вместо переключения на видео из конфига будут вызываться соответствубщие колбэки
|
|
184
|
+
*/
|
|
185
|
+
useCallbackForMediaSessionNextPrevClick: boolean;
|
|
186
|
+
/**
|
|
187
|
+
* Фикс производительности отрисовки.
|
|
188
|
+
*/
|
|
189
|
+
usePerformanceFix: boolean;
|
|
190
|
+
/**
|
|
191
|
+
* Включает восстановление выбранных настроек видео,
|
|
192
|
+
* например, звуковой дорожки и субтитров
|
|
193
|
+
*/
|
|
194
|
+
userVideoPrefs: boolean;
|
|
195
|
+
/**
|
|
196
|
+
* сохраняет выбранные состояния плеера в localStorage только от user actions
|
|
197
|
+
*/
|
|
198
|
+
savePreferredStatesOnUserActionOnly: boolean;
|
|
199
|
+
/**
|
|
200
|
+
* Если включен то за зацикливание одного видео будет отвечать флаг loop
|
|
201
|
+
*/
|
|
202
|
+
useLoopSetting: boolean;
|
|
203
|
+
doubleForwardAvailable: boolean;
|
|
204
|
+
/**
|
|
205
|
+
* Включает возможность точной перемотки.
|
|
206
|
+
*/
|
|
207
|
+
useRichSeek: boolean;
|
|
208
|
+
/**
|
|
209
|
+
* Выключает показ thumb перед запуском видео, если включен autoplay
|
|
210
|
+
*/
|
|
211
|
+
disableThumbUnstartedOnAutoplay: boolean;
|
|
212
|
+
/**
|
|
213
|
+
* При наведение на зону таймлайна таймлайн приподнимается от границ окна плеера.
|
|
214
|
+
*/
|
|
215
|
+
usePreviewTimelineWithHovering: boolean;
|
|
216
|
+
};
|
|
217
|
+
/**
|
|
218
|
+
* Отключает вызов колбэка uiInfo.onPlayerSizeChanged при ресайзе обычного pip
|
|
219
|
+
*/
|
|
220
|
+
disablePiPResizeHandling: boolean;
|
|
221
|
+
interactive: {
|
|
222
|
+
historyMaxLength: number;
|
|
223
|
+
noInteractionEventTimeout: number;
|
|
224
|
+
};
|
|
225
|
+
view: {
|
|
226
|
+
timelineSliderColor: string | null;
|
|
227
|
+
timelineSliderHandleColor: string | null;
|
|
228
|
+
timelineSliderFilledColor: string | null;
|
|
229
|
+
timelineSliderLoadedColor: string | null;
|
|
230
|
+
volumeSliderColor: string | null;
|
|
231
|
+
volumeSliderHandleColor: string | null;
|
|
232
|
+
volumeSliderFilledColor: string | null;
|
|
233
|
+
controlsTimeColor: string | null;
|
|
234
|
+
timelineSliderHandleActiveLiveColor: string | null;
|
|
235
|
+
timelineSliderFilledActiveLiveColor: string | null;
|
|
236
|
+
buttonColor: string | null;
|
|
237
|
+
buttonToggleOnColor: string | null;
|
|
238
|
+
focusedColor: string | null;
|
|
239
|
+
font: string | null;
|
|
240
|
+
focusedOutlineWidth: string | null;
|
|
241
|
+
focusedOutlineRadius: string | null;
|
|
242
|
+
controlsDesktopPaddingHorizontal: string | null;
|
|
243
|
+
controlsDesktopPaddingHorizontalMinimalView: string | null;
|
|
244
|
+
timelinePaddingHorizontal: string | null;
|
|
245
|
+
settingsBackgroundColor: string | null;
|
|
246
|
+
controlsGradientHeight: string | null;
|
|
247
|
+
controlsGradient: string | null;
|
|
248
|
+
};
|
|
249
|
+
/** уникальный идентификатор пользователя для сохранения настроек */
|
|
250
|
+
userSalt: string;
|
|
251
|
+
/**
|
|
252
|
+
* Время, которое нужно зажимать горячую клавишу, чтобы включилось х2 ускорение.
|
|
253
|
+
*/
|
|
254
|
+
doubleForwardActivationTime: number;
|
|
255
|
+
playbackStatusAnimationDuration: number;
|
|
256
|
+
/**
|
|
257
|
+
* Продолжительность анимации для переключения видео.
|
|
258
|
+
*/
|
|
259
|
+
playbackStatusNextVideoAnimationDuration: number;
|
|
260
|
+
/**
|
|
261
|
+
* Определяет подходящую длительность видео, после которой можно использовать точную перемотку.
|
|
262
|
+
* Передаются секунды.
|
|
263
|
+
*/
|
|
264
|
+
suitableDurationForUsingRichSeek: Seconds;
|
|
265
|
+
titleShowBehaviour: TitleShowBehaviour;
|
|
266
|
+
/**
|
|
267
|
+
* Отключаем слоты по идентификаторам.
|
|
268
|
+
*/
|
|
269
|
+
disabledSlotIds: string[];
|
|
270
|
+
/**
|
|
271
|
+
* Отключаем внешне переданные кнопки по идентификаторам.
|
|
272
|
+
*/
|
|
273
|
+
disabledAdditionalButtonIds: string[];
|
|
264
274
|
}
|
|
265
275
|
export declare const defaultConfig: IUIConfig;
|
|
266
276
|
export type IOptionalUIConfig = RecursivePartial<IUIConfig>;
|
|
267
277
|
export declare const fillDefault: (partial: IOptionalUIConfig) => IUIConfig;
|
|
268
278
|
export interface ISDKConfig {
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
279
|
+
ui: RecursivePartial<IUIConfig>;
|
|
280
|
+
core: ICoreConfig;
|
|
281
|
+
statistics: IStatisticsConfig;
|
|
282
|
+
meta?: string[];
|
|
273
283
|
}
|
|
274
284
|
export declare const setConfig: (config: IUIConfig) => IUIConfig;
|
|
275
285
|
export declare const getConfig: () => IUIConfig;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
export declare enum Controls {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
2
|
+
PLAY_BUTTON = "PLAY_BUTTON",
|
|
3
|
+
REPLAY_BUTTON = "REPLAY_BUTTON",
|
|
4
|
+
NEXT_BUTTON = "NEXT_BUTTON",
|
|
5
|
+
PREV_BUTTON = "PREV_BUTTON",
|
|
6
|
+
PICTURE_IN_PICTURE = "PICTURE_IN_PICTURE",
|
|
7
|
+
FULLSCREEN_BUTTON = "FULLSCREEN_BUTTON",
|
|
8
|
+
SETTINGS_BUTTON = "SETTINGS_BUTTON",
|
|
9
|
+
LIVE_BUTTON = "LIVE_BUTTON",
|
|
10
|
+
GRAPH_BUTTON = "GRAPH_BUTTON",
|
|
11
|
+
PLAY_PREV_CHAPTER_BUTTON = "PLAY_PREV_CHAPTER_BUTTON",
|
|
12
|
+
SEEK_TO_INTERACTIVE_BUTTON = "SEEK_TO_INTERACTIVE_BUTTON",
|
|
13
|
+
TIMELINE = "TIMELINE",
|
|
14
|
+
VOLUME_BAR = "VOLUME_BAR",
|
|
15
|
+
MUTE_BUTTON = "MUTE_BUTTON",
|
|
16
|
+
SUBTITLES_BUTTON = "SUBTITLES_BUTTON",
|
|
17
|
+
CHROMECAST_BUTTON = "CHROMECAST_BUTTON",
|
|
18
|
+
VK_BUTTON = "VK_BUTTON",
|
|
19
|
+
EPISODE_BUTTON = "EPISODE_BUTTON",
|
|
20
|
+
INCREMENT_PLAYBACK_RATE = "INCREMENT_PLAYBACK_RATE",
|
|
21
|
+
DECREMENT_PLAYBACK_RATE = "DECREMENT_PLAYBACK_RATE",
|
|
22
|
+
AUTOPLAY_NEXT_TOGGLE = "AUTOPLAY_NEXT_TOGGLE"
|
|
23
23
|
}
|
|
24
24
|
export declare const PLAYER_CONTROLS_HEIGHT = 40;
|
|
25
25
|
export declare const PLAYER_CONTROLS_DESKTOP_MARGIN_LEFT_ELEMENTS = 4;
|
package/types/constans/grid.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export declare enum GridBreakPoints {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
XS = 320,
|
|
3
|
+
S = 509,
|
|
4
|
+
M = 599,
|
|
5
|
+
L = 699
|
|
6
6
|
}
|
|
7
7
|
export declare enum GridTypes {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
XS = "xs",
|
|
9
|
+
S = "s",
|
|
10
|
+
M = "m",
|
|
11
|
+
L = "l",
|
|
12
|
+
XL = "xl"
|
|
13
13
|
}
|
|
14
14
|
export declare const gridWeights: Record<GridTypes, number>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
1
|
+
export * from "./storage-keys";
|
|
2
|
+
export * from "./throttle-timers";
|
|
3
|
+
export * from "./debounce-timers";
|
|
4
|
+
export * from "./lang";
|
|
5
|
+
export * from "./keyboard";
|
|
6
|
+
export * from "./controls";
|
|
7
|
+
export * from "./interactives";
|
|
8
|
+
export * from "./grid";
|