@vkontakte/videoplayer 1.1.46-dev.bf8cc5be.0 → 1.1.46-dev.c704d5be.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 +17 -17
- package/es2015.esm.js +17 -17
- package/es2018.cjs.js +17 -17
- package/es2018.esm.js +17 -17
- package/esnext.cjs.js +16 -16
- package/esnext.esm.js +16 -16
- package/evergreen.esm.js +16 -16
- package/package.json +5 -5
- package/types/config.d.ts +0 -1
- package/types/store/index.d.ts +1 -4
- package/types/store/utils.d.ts +11 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vkontakte/videoplayer",
|
|
3
|
-
"version": "1.1.46-dev.
|
|
3
|
+
"version": "1.1.46-dev.c704d5be.0",
|
|
4
4
|
"author": "vk.com",
|
|
5
5
|
"description": "Videoplayer based on the vk.com platform",
|
|
6
6
|
"homepage": "https://vk.com",
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
"**/*.d.ts"
|
|
50
50
|
],
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@vkontakte/videoplayer-core": "2.0.113-
|
|
53
|
-
"@vkontakte/videoplayer-interactive": "1.0.21-dev.
|
|
54
|
-
"@vkontakte/videoplayer-shared": "1.0.45-
|
|
55
|
-
"@vkontakte/videoplayer-statistics": "1.0.60-
|
|
52
|
+
"@vkontakte/videoplayer-core": "2.0.113-dev.564b86a8.0",
|
|
53
|
+
"@vkontakte/videoplayer-interactive": "1.0.21-dev.3edff5e5.0",
|
|
54
|
+
"@vkontakte/videoplayer-shared": "1.0.45-dev.c2ce204d.0",
|
|
55
|
+
"@vkontakte/videoplayer-statistics": "1.0.60-dev.0dd54e7c.0"
|
|
56
56
|
}
|
|
57
57
|
}
|
package/types/config.d.ts
CHANGED
package/types/store/index.d.ts
CHANGED
|
@@ -231,7 +231,6 @@ export interface IStore {
|
|
|
231
231
|
nextMovie: (movieId: number) => void;
|
|
232
232
|
correctSeekTimeToInteractive: (time: number) => number;
|
|
233
233
|
replayInteractive?: () => void;
|
|
234
|
-
stopPlayer?: () => void;
|
|
235
234
|
setLooped: (isLooped: boolean) => void;
|
|
236
235
|
reportProblem: () => void;
|
|
237
236
|
};
|
|
@@ -239,7 +238,6 @@ export interface IStore {
|
|
|
239
238
|
firstStart: (showAds: boolean) => void;
|
|
240
239
|
play: () => void;
|
|
241
240
|
pause: () => void;
|
|
242
|
-
stop: () => void;
|
|
243
241
|
seekTime: (time: number) => void;
|
|
244
242
|
seekEpisodeStartTime: (time: number) => void;
|
|
245
243
|
setPlaybackRate: (playbackRate: PlaybackRate) => void;
|
|
@@ -281,7 +279,6 @@ interface IStoreParams {
|
|
|
281
279
|
interactiveRanges$?: IValueObservable<InteractiveRange[]>;
|
|
282
280
|
isInteractiveTime$?: IValueObservable<boolean>;
|
|
283
281
|
replayInteractive?: () => void;
|
|
284
|
-
stopPlayer?: () => void;
|
|
285
282
|
hasInteractiveBranches?: boolean;
|
|
286
283
|
disabledControls: ControlsKeys;
|
|
287
284
|
playPrevChapterDisabledTooltip: PlayPrevChapterDisabledTooltipKey;
|
|
@@ -296,5 +293,5 @@ interface IStoreParams {
|
|
|
296
293
|
* Store приложения.
|
|
297
294
|
* Если будет слишком большим - можно разделить его на модули
|
|
298
295
|
*/
|
|
299
|
-
export declare const createStore: ({ interfaceLanguage, isCyrillicRelatedInterface, videoId, isClip, isLiveCatchUpMode, statAuthToken, isAudioDisabled, canDownload, callbacks, webApi, videoEpisodes, previewThumbsData, uiConfig, coreConfig, player: playerInstance, disabledControls, isInteractive, interactiveRanges$, isInteractiveTime$, replayInteractive,
|
|
296
|
+
export declare const createStore: ({ interfaceLanguage, isCyrillicRelatedInterface, videoId, isClip, isLiveCatchUpMode, statAuthToken, isAudioDisabled, canDownload, callbacks, webApi, videoEpisodes, previewThumbsData, uiConfig, coreConfig, player: playerInstance, disabledControls, isInteractive, interactiveRanges$, isInteractiveTime$, replayInteractive, hasInteractiveBranches, playPrevChapterDisabledTooltip, additionalButtons, additionalSettingsMenuItems, additionalContextMenuItems, looped, statistics: uiStatistics, saveRate, }: IStoreParams) => IStore;
|
|
300
297
|
export {};
|
package/types/store/utils.d.ts
CHANGED
|
@@ -33,3 +33,14 @@ export type DebugData = {
|
|
|
33
33
|
};
|
|
34
34
|
export declare const constructDebugPanelData: (player: IPlayer, config: IConfig, store: IStore) => DebugData;
|
|
35
35
|
export declare const fetchVideoFile: (url: string, filename: string) => void;
|
|
36
|
+
export declare const createDequeCache: <T>() => {
|
|
37
|
+
add: (key: string, value: T) => void;
|
|
38
|
+
find: (key: string) => [string, T] | undefined;
|
|
39
|
+
};
|
|
40
|
+
export declare class SubtitlesDownloader {
|
|
41
|
+
private destroyController;
|
|
42
|
+
private pendingDownloads;
|
|
43
|
+
download(url: string): Promise<string | null>;
|
|
44
|
+
destroy(): void;
|
|
45
|
+
isDestroyed(): boolean;
|
|
46
|
+
}
|