@vkontakte/videoplayer 1.1.67-dev.992eb225.0 → 1.1.67-dev.f850506b.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 +54 -54
- package/es2015.esm.js +56 -56
- package/es2018.cjs.js +62 -62
- package/es2018.esm.js +61 -61
- package/es2024.cjs.js +63 -63
- package/es2024.esm.js +59 -59
- package/esnext.cjs.js +63 -63
- package/esnext.esm.js +59 -59
- package/evergreen.esm.js +59 -59
- package/package.json +5 -5
- package/types/VKVideoPlayer/index.svelte.d.ts +8 -1
- package/types/components/Controls/types.d.ts +1 -0
- package/types/components/Root/types.d.ts +4 -3
- package/types/services/statistics.d.ts +4 -2
- package/types/types/index.d.ts +6 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vkontakte/videoplayer",
|
|
3
|
-
"version": "1.1.67-dev.
|
|
3
|
+
"version": "1.1.67-dev.f850506b.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.136-dev.
|
|
59
|
-
"@vkontakte/videoplayer-interactive": "1.0.42-dev.
|
|
60
|
-
"@vkontakte/videoplayer-shared": "1.0.64-dev.
|
|
61
|
-
"@vkontakte/videoplayer-statistics": "1.0.82-dev.
|
|
58
|
+
"@vkontakte/videoplayer-core": "2.0.136-dev.e1130126.0",
|
|
59
|
+
"@vkontakte/videoplayer-interactive": "1.0.42-dev.8d0315a2.0",
|
|
60
|
+
"@vkontakte/videoplayer-shared": "1.0.64-dev.7028aa89.0",
|
|
61
|
+
"@vkontakte/videoplayer-statistics": "1.0.82-dev.92d18b42.0"
|
|
62
62
|
}
|
|
63
63
|
}
|
|
@@ -97,7 +97,14 @@ export declare class VKVideoPlayer extends HTMLElement {
|
|
|
97
97
|
setLanguage(language: InterfaceLanguage | string): Promise<void>;
|
|
98
98
|
setLiveStart(videoData: IVideoData): void;
|
|
99
99
|
setLiveWaitingStart(): void;
|
|
100
|
-
|
|
100
|
+
/**
|
|
101
|
+
* Идёт доигрывание трансляции
|
|
102
|
+
*/
|
|
103
|
+
private isLiveTailPlaying;
|
|
104
|
+
/**
|
|
105
|
+
* @param forceImmediate Позволяет немедленно показать состояние ожидания, не дожидаясь окончания доигрывания буффера и попыток получить поток
|
|
106
|
+
*/
|
|
107
|
+
setLiveWaitingRecover(forceImmediate?: boolean): void;
|
|
101
108
|
setLiveWaitingRecord(): void;
|
|
102
109
|
setLiveEnd(videoData: IVideoData): void;
|
|
103
110
|
setLiveLowLatency(isLowLatency: boolean): void;
|
|
@@ -35,6 +35,7 @@ export interface AdditionalDesktopControlPanelButton extends BaseAdditionalButto
|
|
|
35
35
|
tooltipText?: string;
|
|
36
36
|
disabledTooltipContent?: string;
|
|
37
37
|
hideOnDesktopGridTypes?: GridTypes[];
|
|
38
|
+
disableMouseupTooltipShow?: boolean;
|
|
38
39
|
}
|
|
39
40
|
export type AdditionalButton = AdditionalDesktopControlPanelButton;
|
|
40
41
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IExternalTextTrack, ISources, PlaybackRate } from '@vkontakte/videoplayer-core';
|
|
1
|
+
import type { IExternalTextTrack, IOptionalTuningConfig, ISources, PlaybackRate } from '@vkontakte/videoplayer-core';
|
|
2
2
|
import type { IStore } from '../../store';
|
|
3
3
|
import type { AdsParams, IMicroStoresRoot, IVideoLive, IVKVideoPlayerConfig } from '../../types';
|
|
4
4
|
import type { IUIConfig } from '../../config';
|
|
@@ -11,6 +11,7 @@ export interface RootProps {
|
|
|
11
11
|
microStoresRoot: IMicroStoresRoot;
|
|
12
12
|
videoConfig: IVKVideoPlayerConfig;
|
|
13
13
|
uiConfig: IUIConfig;
|
|
14
|
+
coreConfig: IOptionalTuningConfig;
|
|
14
15
|
title: string;
|
|
15
16
|
thumbUrl: string | undefined;
|
|
16
17
|
interactiveContainer: HTMLElement | undefined;
|
|
@@ -39,8 +40,8 @@ export interface RootProps {
|
|
|
39
40
|
endScreenVideoThumb?: string | undefined;
|
|
40
41
|
isOneVideoPlaylist?: boolean;
|
|
41
42
|
supportLink: string;
|
|
42
|
-
shadowRootContainer
|
|
43
|
-
outerContainerRef
|
|
43
|
+
shadowRootContainer?: HTMLElement | undefined;
|
|
44
|
+
outerContainerRef?: HTMLElement | undefined;
|
|
44
45
|
fullScreenTarget?: HTMLElement | undefined;
|
|
45
46
|
failoverHosts?: string[] | undefined;
|
|
46
47
|
showMiniTimer?: boolean;
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { type ISubscription } from '@vkontakte/videoplayer-shared';
|
|
2
|
-
import { type IOneStat, type ThinOneStat } from '@vkontakte/videoplayer-statistics';
|
|
2
|
+
import { type IOneStat, type ThinOneStat, type IMediascopePixel } from '@vkontakte/videoplayer-statistics';
|
|
3
3
|
export interface IUIStatistics {
|
|
4
4
|
statSubscription: ISubscription;
|
|
5
5
|
oneStat?: IOneStat;
|
|
6
6
|
thinOneStat?: ThinOneStat.IThinOneStat;
|
|
7
|
+
mediascopePixel?: IMediascopePixel;
|
|
7
8
|
destroy: () => void;
|
|
8
9
|
}
|
|
9
10
|
export declare class UIOneStat implements IUIStatistics {
|
|
10
11
|
oneStat?: IOneStat | undefined;
|
|
11
12
|
thinOneStat?: ThinOneStat.IThinOneStat | undefined;
|
|
13
|
+
mediascopePixel?: IMediascopePixel | undefined;
|
|
12
14
|
statSubscription: ISubscription;
|
|
13
|
-
constructor(oneStat?: IOneStat | undefined, thinOneStat?: ThinOneStat.IThinOneStat | undefined, statSubscription?: ISubscription);
|
|
15
|
+
constructor(oneStat?: IOneStat | undefined, thinOneStat?: ThinOneStat.IThinOneStat | undefined, mediascopePixel?: IMediascopePixel | undefined, statSubscription?: ISubscription);
|
|
14
16
|
destroy(): void;
|
|
15
17
|
}
|
package/types/types/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import type { VideoQuality, VideoFormat, ISources, IExternalTextTrack } from '@v
|
|
|
2
2
|
import type { IValueObservable, InterfaceLanguage, Subscription, IRectangle, DevNullEntry } from '@vkontakte/videoplayer-shared';
|
|
3
3
|
import type { Chapter, Manifest, ManifestVideo, VideoInfo, Interactives, IInteractiveOptions } from '@vkontakte/videoplayer-interactive';
|
|
4
4
|
import { PlaybackState } from '@vkontakte/videoplayer-core';
|
|
5
|
+
import type { MediascopePixelTypes } from '@vkontakte/videoplayer-statistics';
|
|
5
6
|
import type { Writable, Readable } from 'svelte/store';
|
|
6
7
|
import type { ISDKConfig, IUIConfig } from '../config';
|
|
7
8
|
import type { IStore } from '../store';
|
|
@@ -183,8 +184,9 @@ export interface ITimelinePreviewThumbsData {
|
|
|
183
184
|
isUV: boolean;
|
|
184
185
|
links: string[];
|
|
185
186
|
}
|
|
187
|
+
export type VideoLiveStatus = 'started' | 'upcoming' | 'waiting' | 'finished' | 'postlive' | 'failed';
|
|
186
188
|
export interface IVideoLive {
|
|
187
|
-
status:
|
|
189
|
+
status: VideoLiveStatus;
|
|
188
190
|
startTime?: number;
|
|
189
191
|
}
|
|
190
192
|
export interface IVideoDataBase {
|
|
@@ -200,14 +202,14 @@ export interface IVideoDataBase {
|
|
|
200
202
|
previewThumbsData?: ITimelinePreviewThumbsData;
|
|
201
203
|
isClip?: boolean;
|
|
202
204
|
subtitles?: Array<Omit<IExternalTextTrack, 'type'>>;
|
|
205
|
+
sources?: ISources;
|
|
206
|
+
live?: IVideoLive;
|
|
203
207
|
}
|
|
204
208
|
export interface IVideoDataWithSources extends IVideoDataBase {
|
|
205
209
|
sources: ISources;
|
|
206
|
-
live?: never;
|
|
207
210
|
}
|
|
208
211
|
export interface IVideoDataWithLive extends IVideoDataBase {
|
|
209
212
|
live: IVideoLive;
|
|
210
|
-
sources?: never;
|
|
211
213
|
}
|
|
212
214
|
export type IVideoData = IVideoDataWithSources | IVideoDataWithLive;
|
|
213
215
|
export interface IInteractiveData extends Pick<IInteractiveOptions, 'initChapterId' | 'historyApi' | 'projectInfo'> {
|
|
@@ -292,6 +294,7 @@ export interface IVKVideoPlayerConfig {
|
|
|
292
294
|
showNextPrevButtons?: boolean;
|
|
293
295
|
pipEnabled?: boolean;
|
|
294
296
|
playerView?: VideoPlayerView;
|
|
297
|
+
mediascopePixels?: MediascopePixelTypes.Pixel[];
|
|
295
298
|
}
|
|
296
299
|
export interface IControlInfo {
|
|
297
300
|
left: number;
|