@vkontakte/videoplayer 1.1.68-dev.102bdf41.0 → 1.1.68-dev.26d8ec66.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.js +63 -63
- package/es2015.esm.js +64 -64
- package/es2018.cjs.js +65 -65
- package/es2018.esm.js +65 -65
- package/es2024.cjs.js +58 -58
- package/es2024.esm.js +59 -59
- package/esnext.cjs.js +58 -58
- package/esnext.esm.js +59 -59
- package/evergreen.esm.js +59 -59
- package/package.json +5 -5
- package/types/index.d.ts +2 -2
- package/types/types/index.d.ts +9 -0
- package/types/utils/getControlInfo.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vkontakte/videoplayer",
|
|
3
|
-
"version": "1.1.68-dev.
|
|
3
|
+
"version": "1.1.68-dev.26d8ec66.0",
|
|
4
4
|
"author": "vk.com",
|
|
5
5
|
"description": "Videoplayer based on the vk.com platform",
|
|
6
6
|
"homepage": "https://vk.com",
|
|
@@ -55,9 +55,9 @@
|
|
|
55
55
|
],
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"@adtech/rbadman": "2.2.57",
|
|
58
|
-
"@vkontakte/videoplayer-core": "2.0.137-dev.
|
|
59
|
-
"@vkontakte/videoplayer-interactive": "1.0.43-dev.
|
|
60
|
-
"@vkontakte/videoplayer-shared": "1.0.65-dev.
|
|
61
|
-
"@vkontakte/videoplayer-statistics": "1.0.83-dev.
|
|
58
|
+
"@vkontakte/videoplayer-core": "2.0.137-dev.72e4ba0c.0",
|
|
59
|
+
"@vkontakte/videoplayer-interactive": "1.0.43-dev.580dafa9.0",
|
|
60
|
+
"@vkontakte/videoplayer-shared": "1.0.65-dev.2c821a29.0",
|
|
61
|
+
"@vkontakte/videoplayer-statistics": "1.0.83-dev.711925bb.0"
|
|
62
62
|
}
|
|
63
63
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VKVideoPlayer } from './VKVideoPlayer/index.svelte';
|
|
2
|
-
import type { IVKVideoPlayerConfig, IControlInfo, IVKVideoPlayerCallbacks, IVideoData, AdsParams, HotKeyMapData, HotKeyMapItem, HotKeyMapGroup, IVideoLive, IInteractiveData, AdditionalButtonDeprecated, IVideoEpisode, VideoPlayerView } from './types';
|
|
2
|
+
import type { IVKVideoPlayerConfig, IControlInfo, IUpcomingLiveViewControlInfo, IVKVideoPlayerCallbacks, IVideoData, AdsParams, HotKeyMapData, HotKeyMapItem, HotKeyMapGroup, IVideoLive, IInteractiveData, AdditionalButtonDeprecated, IVideoEpisode, VideoPlayerView } from './types';
|
|
3
3
|
import type { LanguagePack, LanguageConfig } from './translation/types';
|
|
4
4
|
import type { ISDKConfig } from './config';
|
|
5
5
|
import type { ISources, IDashSource, URLSource, RawSource, URLSourceWithSeek } from '@vkontakte/videoplayer-core';
|
|
@@ -8,7 +8,7 @@ export { VERSION } from './env';
|
|
|
8
8
|
export declare const registerPlayerWebComponent: () => void;
|
|
9
9
|
export { type AdditionalSettingsMenuItem, MenuItemType, type AdditionalClickSettingsMenuItem, type AdditionalSwitchSettingsMenuItem, type AdditionalContextMenuItem, } from './components/Menus/subMenuTabs/types';
|
|
10
10
|
export { type AdditionalButton, ControlButtonType, } from './components/Controls/types';
|
|
11
|
-
export type { VKVideoPlayer, IVKVideoPlayerConfig, IControlInfo, IVKVideoPlayerCallbacks, IVideoData, AdsParams, HotKeyMapData, HotKeyMapItem, HotKeyMapGroup, ISources, IDashSource, URLSource, RawSource, URLSourceWithSeek, LanguagePack, LanguageConfig, Milliseconds, IVideoLive, IInteractiveData, AdditionalButtonDeprecated, QualityLimits, IVideoEpisode, ISDKConfig, VideoPlayerView, };
|
|
11
|
+
export type { VKVideoPlayer, IVKVideoPlayerConfig, IControlInfo, IUpcomingLiveViewControlInfo, IVKVideoPlayerCallbacks, IVideoData, AdsParams, HotKeyMapData, HotKeyMapItem, HotKeyMapGroup, ISources, IDashSource, URLSource, RawSource, URLSourceWithSeek, LanguagePack, LanguageConfig, Milliseconds, IVideoLive, IInteractiveData, AdditionalButtonDeprecated, QualityLimits, IVideoEpisode, ISDKConfig, VideoPlayerView, };
|
|
12
12
|
export { GridTypes, } from './constans';
|
|
13
13
|
export { PlayerPhase, } from './types';
|
|
14
14
|
export { InterfaceLanguage, VKNumericLanguage, loadVKLangPack, } from '@vkontakte/videoplayer-shared';
|
package/types/types/index.d.ts
CHANGED
|
@@ -86,6 +86,7 @@ export interface IVKVideoPlayerCallbacks {
|
|
|
86
86
|
onAutoplaySoundProhibited?: () => void;
|
|
87
87
|
onDevNullLog?: (entry: DevNullEntry) => void;
|
|
88
88
|
uiInfo?: {
|
|
89
|
+
onUpcomingLiveViewStateChanged?: (value: IUpcomingLiveViewControlInfo) => void;
|
|
89
90
|
onControlsVisibleChanged?: (value?: boolean) => void;
|
|
90
91
|
onIsMobileChanged?: (value?: boolean) => void;
|
|
91
92
|
onPrevButtonChanged?: (value?: IControlInfo) => void;
|
|
@@ -303,6 +304,14 @@ export interface IControlInfo {
|
|
|
303
304
|
bottom: number;
|
|
304
305
|
isDisplayed: boolean;
|
|
305
306
|
}
|
|
307
|
+
/**
|
|
308
|
+
* Информация о upcoming live view.
|
|
309
|
+
* `default` — это view, когда показывается таймер обратного отсчёта до начала трансляции.
|
|
310
|
+
* `expired` — это view, когда таймер истёк, но трансляцию так и не начали (ожидаем поток).
|
|
311
|
+
*/
|
|
312
|
+
export interface IUpcomingLiveViewControlInfo extends IControlInfo {
|
|
313
|
+
view: 'default' | 'expired';
|
|
314
|
+
}
|
|
306
315
|
export interface IPlayerControlsRef {
|
|
307
316
|
prevButton?: HTMLButtonElement;
|
|
308
317
|
playButton?: HTMLButtonElement;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare function getControlInfo<TRefKey extends string, Refs extends Record<TRefKey, HTMLElement | undefined>>(
|
|
1
|
+
export declare function getControlInfo<TRefKey extends string, Refs extends Record<TRefKey, HTMLElement | undefined>>(parentElement: HTMLElement | null, refs: Refs, key: TRefKey, show: boolean): {
|
|
2
2
|
left: number;
|
|
3
3
|
right: number;
|
|
4
4
|
top: number;
|