@vkontakte/videoplayer 1.1.38-dev.d2e560cb.0 → 1.1.38-dev.f9474f22.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 +16 -16
- package/es2015.esm.js +16 -16
- package/es2018.cjs.js +16 -16
- package/es2018.esm.js +16 -16
- 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/VKVideoPlayer/index.d.ts +1 -0
- package/types/config.d.ts +1 -0
- package/types/store/index.d.ts +3 -2
- package/types/types/index.d.ts +1 -0
- package/types/utils/userSettings.d.ts +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vkontakte/videoplayer",
|
|
3
|
-
"version": "1.1.38-dev.
|
|
3
|
+
"version": "1.1.38-dev.f9474f22.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.105-dev.
|
|
53
|
-
"@vkontakte/videoplayer-interactive": "1.0.13-dev.
|
|
54
|
-
"@vkontakte/videoplayer-shared": "1.0.37-dev.
|
|
55
|
-
"@vkontakte/videoplayer-statistics": "1.0.51-dev.
|
|
52
|
+
"@vkontakte/videoplayer-core": "2.0.105-dev.15db9323.0",
|
|
53
|
+
"@vkontakte/videoplayer-interactive": "1.0.13-dev.4b60ed40.0",
|
|
54
|
+
"@vkontakte/videoplayer-shared": "1.0.37-dev.d458b64b.0",
|
|
55
|
+
"@vkontakte/videoplayer-statistics": "1.0.51-dev.bbd1265d.0"
|
|
56
56
|
}
|
|
57
57
|
}
|
package/types/config.d.ts
CHANGED
package/types/store/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import type { LanguageConfig } from '../translation/types';
|
|
|
11
11
|
import type { AdditionalButton, ControlsKeys, HotKeyMapData, IAnnotationsApi, IControlInfo, IDisabledControls, IInteractiveData, IPictureInPictureApi, IPlayerPhase, ITimelinePreviewThumbsData, IVideoEpisode, IVKVideoPlayerCallbacks, IVKVideoPlayerUICallbacks, Position, VideoPlaybackRate, VideoQualityForRender, VideoQualityUI, VideoSubtitle, VideoSubtitleParsed } from '../types';
|
|
12
12
|
import { AdsPlaybackState, PictureInPictureType } from '../types';
|
|
13
13
|
import type { DebugData } from './utils';
|
|
14
|
-
import type
|
|
14
|
+
import { type PlayPrevChapterDisabledTooltipKey } from '../constans';
|
|
15
15
|
import { GridTypes } from '../constans';
|
|
16
16
|
import { UIOneStat } from '../services/statistics';
|
|
17
17
|
export interface IAdsState {
|
|
@@ -267,10 +267,11 @@ interface IStoreParams {
|
|
|
267
267
|
additionalButtons: AdditionalButton[];
|
|
268
268
|
looped?: boolean;
|
|
269
269
|
statistics: UIOneStat;
|
|
270
|
+
saveRate: boolean;
|
|
270
271
|
}
|
|
271
272
|
/**
|
|
272
273
|
* Store приложения.
|
|
273
274
|
* Если будет слишком большим - можно разделить его на модули
|
|
274
275
|
*/
|
|
275
|
-
export declare const createStore: ({ interfaceLanguage, videoId, isClip, isLiveCatchUpMode, statAuthToken, isAudioDisabled, canDownload, callbacks, webApi, videoEpisodes, previewThumbsData, uiConfig, coreConfig, player: playerInstance, disabledControls, isInteractive, interactiveRanges$, isInteractiveTime$, replayInteractive, hasInteractiveBranches, playPrevChapterDisabledTooltip, additionalButtons, looped, statistics: uiStatistics, }: IStoreParams) => IStore;
|
|
276
|
+
export declare const createStore: ({ interfaceLanguage, videoId, isClip, isLiveCatchUpMode, statAuthToken, isAudioDisabled, canDownload, callbacks, webApi, videoEpisodes, previewThumbsData, uiConfig, coreConfig, player: playerInstance, disabledControls, isInteractive, interactiveRanges$, isInteractiveTime$, replayInteractive, hasInteractiveBranches, playPrevChapterDisabledTooltip, additionalButtons, looped, statistics: uiStatistics, saveRate, }: IStoreParams) => IStore;
|
|
276
277
|
export {};
|
package/types/types/index.d.ts
CHANGED
|
@@ -214,6 +214,7 @@ export interface IVKVideoPlayerConfig {
|
|
|
214
214
|
callbacks?: IVKVideoPlayerCallbacks;
|
|
215
215
|
additionalButtons?: AdditionalButton[];
|
|
216
216
|
refDomain?: string;
|
|
217
|
+
saveRate?: boolean;
|
|
217
218
|
}
|
|
218
219
|
export interface IControlInfo {
|
|
219
220
|
/** @deprecated Используйте новое поле left */
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { VideoQuality } from '@vkontakte/videoplayer-shared';
|
|
2
|
+
import { type PlaybackRate } from '@vkontakte/videoplayer-core';
|
|
2
3
|
export declare const savePreferredVolume: (volume: number) => void;
|
|
3
4
|
export declare const getPreferredVolume: () => number | undefined;
|
|
4
5
|
export declare const savePreferredQuality: (videoId: number | undefined, value: VideoQuality) => void;
|
|
@@ -8,3 +9,5 @@ export declare const savePreferMute: (preferMute: boolean) => void;
|
|
|
8
9
|
export declare const getPreferMute: () => boolean;
|
|
9
10
|
export declare const savePreferTrafficSavingEnabled: (trafficSavingEnabled: boolean) => void;
|
|
10
11
|
export declare const getPreferTrafficSavingEnabled: () => boolean;
|
|
12
|
+
export declare const savePreferredRate: (rate: PlaybackRate) => void;
|
|
13
|
+
export declare const getPreferredRate: () => PlaybackRate | undefined;
|