@vkontakte/videoplayer 1.1.70 → 1.1.71-dev.0256cbec.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 +66 -66
- package/es2015.esm.js +66 -66
- package/es2018.cjs.js +66 -66
- package/es2018.esm.js +65 -65
- package/es2024.cjs.js +68 -68
- package/es2024.esm.js +67 -67
- package/esnext.cjs.js +68 -68
- package/esnext.esm.js +67 -67
- package/evergreen.esm.js +67 -67
- package/package.json +5 -5
- package/types/config.d.ts +4 -0
- package/types/index.d.ts +2 -2
- package/types/store/index.d.ts +1 -0
- package/types/types/index.d.ts +10 -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.
|
|
3
|
+
"version": "1.1.71-dev.0256cbec.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.
|
|
59
|
-
"@vkontakte/videoplayer-interactive": "1.0.
|
|
60
|
-
"@vkontakte/videoplayer-shared": "1.0.
|
|
61
|
-
"@vkontakte/videoplayer-statistics": "1.0.
|
|
58
|
+
"@vkontakte/videoplayer-core": "2.0.140-dev.4c27f703.0",
|
|
59
|
+
"@vkontakte/videoplayer-interactive": "1.0.46-dev.b3dcc1c6.0",
|
|
60
|
+
"@vkontakte/videoplayer-shared": "1.0.68-dev.f4546f31.0",
|
|
61
|
+
"@vkontakte/videoplayer-statistics": "1.0.86-dev.1d1548a7.0"
|
|
62
62
|
}
|
|
63
63
|
}
|
package/types/config.d.ts
CHANGED
|
@@ -186,6 +186,10 @@ export interface IUIConfig {
|
|
|
186
186
|
* например, звуковой дорожки и субтитров
|
|
187
187
|
*/
|
|
188
188
|
userVideoPrefs: boolean;
|
|
189
|
+
/**
|
|
190
|
+
* сохраняет muted флаг в localStorage только от user actions
|
|
191
|
+
*/
|
|
192
|
+
savePreferMuteOnUserActionOnly: boolean;
|
|
189
193
|
};
|
|
190
194
|
interactive: {
|
|
191
195
|
historyMaxLength: number;
|
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/store/index.d.ts
CHANGED
|
@@ -230,6 +230,7 @@ export interface IStore {
|
|
|
230
230
|
setTrafficSavingEnabled: (trafficSavingEnabled: boolean, appliesTo?: QualitySettingsAppliesTo) => void;
|
|
231
231
|
setHighQualityEnabled: (highQualityEnabled: boolean, appliesTo?: QualitySettingsAppliesTo) => void;
|
|
232
232
|
setVolume: (volume: number) => void;
|
|
233
|
+
setMuted: (muted: boolean) => void;
|
|
233
234
|
startVolumeChanging: () => void;
|
|
234
235
|
stopVolumeChanging: () => void;
|
|
235
236
|
setAudioStream: (stream: IAudioStream) => void;
|
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,15 @@ 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
|
+
type: 'default' | 'expired';
|
|
314
|
+
size: 's' | 'm' | 'l';
|
|
315
|
+
}
|
|
306
316
|
export interface IPlayerControlsRef {
|
|
307
317
|
prevButton?: HTMLButtonElement;
|
|
308
318
|
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;
|