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