@vkontakte/videoplayer 1.1.65-dev.d779f3ab.0 → 1.1.65-dev.d880e71f.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 +56 -56
- package/es2015.esm.js +43 -43
- package/es2018.cjs.js +59 -59
- package/es2018.esm.js +47 -47
- package/es2024.cjs.js +57 -57
- package/es2024.esm.js +45 -45
- package/esnext.cjs.js +57 -57
- package/esnext.esm.js +45 -45
- package/evergreen.esm.js +45 -45
- package/package.json +5 -5
- package/types/VKVideoPlayer/index.svelte.d.ts +1 -5
- package/types/types/index.d.ts +4 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vkontakte/videoplayer",
|
|
3
|
-
"version": "1.1.65-dev.
|
|
3
|
+
"version": "1.1.65-dev.d880e71f.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.135-dev.
|
|
59
|
-
"@vkontakte/videoplayer-interactive": "1.0.40-dev.
|
|
60
|
-
"@vkontakte/videoplayer-shared": "1.0.63-dev.
|
|
61
|
-
"@vkontakte/videoplayer-statistics": "1.0.81-dev.
|
|
58
|
+
"@vkontakte/videoplayer-core": "2.0.135-dev.f94adb28.0",
|
|
59
|
+
"@vkontakte/videoplayer-interactive": "1.0.40-dev.f12d7744.0",
|
|
60
|
+
"@vkontakte/videoplayer-shared": "1.0.63-dev.cf1acdb1.0",
|
|
61
|
+
"@vkontakte/videoplayer-statistics": "1.0.81-dev.4fd96b1a.0"
|
|
62
62
|
}
|
|
63
63
|
}
|
|
@@ -96,11 +96,7 @@ export declare class VKVideoPlayer extends HTMLElement {
|
|
|
96
96
|
setLanguage(language: InterfaceLanguage | string): Promise<void>;
|
|
97
97
|
setLiveStart(videoData: IVideoData): void;
|
|
98
98
|
setLiveWaitingStart(): void;
|
|
99
|
-
|
|
100
|
-
* Идёт доигрывание трансляции
|
|
101
|
-
*/
|
|
102
|
-
private isLiveTailPlaying;
|
|
103
|
-
setLiveWaitingRecover(forceImmediate?: boolean): void;
|
|
99
|
+
setLiveWaitingRecover(): void;
|
|
104
100
|
setLiveWaitingRecord(): void;
|
|
105
101
|
setLiveEnd(videoData: IVideoData): void;
|
|
106
102
|
setLiveLowLatency(isLowLatency: boolean): void;
|
package/types/types/index.d.ts
CHANGED
|
@@ -182,9 +182,8 @@ export interface ITimelinePreviewThumbsData {
|
|
|
182
182
|
isUV: boolean;
|
|
183
183
|
links: string[];
|
|
184
184
|
}
|
|
185
|
-
export type VideoLiveStatus = 'started' | 'upcoming' | 'waiting' | 'finished' | 'postlive' | 'failed';
|
|
186
185
|
export interface IVideoLive {
|
|
187
|
-
status:
|
|
186
|
+
status: 'started' | 'upcoming' | 'waiting' | 'finished' | 'postlive' | 'failed';
|
|
188
187
|
startTime?: number;
|
|
189
188
|
}
|
|
190
189
|
export interface IVideoDataBase {
|
|
@@ -200,14 +199,14 @@ export interface IVideoDataBase {
|
|
|
200
199
|
previewThumbsData?: ITimelinePreviewThumbsData;
|
|
201
200
|
isClip?: boolean;
|
|
202
201
|
subtitles?: Array<Omit<IExternalTextTrack, 'type'>>;
|
|
203
|
-
sources?: ISources;
|
|
204
|
-
live?: IVideoLive;
|
|
205
202
|
}
|
|
206
203
|
export interface IVideoDataWithSources extends IVideoDataBase {
|
|
207
204
|
sources: ISources;
|
|
205
|
+
live?: never;
|
|
208
206
|
}
|
|
209
|
-
export interface IVideoDataWithLive extends
|
|
207
|
+
export interface IVideoDataWithLive extends IVideoDataBase {
|
|
210
208
|
live: IVideoLive;
|
|
209
|
+
sources?: never;
|
|
211
210
|
}
|
|
212
211
|
export type IVideoData = IVideoDataWithSources | IVideoDataWithLive;
|
|
213
212
|
export interface IInteractiveData extends Pick<IInteractiveOptions, 'initChapterId' | 'historyApi' | 'projectInfo'> {
|