@vkontakte/videoplayer 1.1.96-dev.cd28586c7.0 → 1.1.96
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 +9 -9
- package/es2015.esm.js +10 -10
- package/esnext.cjs +9 -9
- package/esnext.esm.js +10 -10
- package/evergreen.esm.js +10 -10
- package/package.json +5 -5
- package/types/VKVideoPlayer/index.svelte.d.ts +1 -0
- package/types/components/Ads/admanWrapper.d.ts +2 -1
- package/types/components/Ads/types.d.ts +1 -1
- package/types/config.d.ts +14 -3
- package/types/index.d.ts +2 -2
- package/types/store/composition.d.ts +9 -1
- package/types/store/connectors/statisticsConnector.d.ts +15 -0
- package/types/store/index.d.ts +1 -1
- package/types/store/modules/index.d.ts +10 -3
- package/types/store/modules/infrastructure/index.d.ts +1 -1
- package/types/store/modules/infrastructure/infrastructure.module.d.ts +6 -1
- package/types/store/modules/infrastructure/infrastructure.token.d.ts +5 -1
- package/types/store/modules/languageStore/index.d.ts +9 -0
- package/types/store/modules/languageStore/languageStore.module.d.ts +3 -0
- package/types/store/modules/languageStore/languageStore.store.d.ts +51 -0
- package/types/store/modules/languageStore/languageStore.token.d.ts +6 -0
- package/types/store/modules/playbackRateStore/index.d.ts +6 -0
- package/types/store/modules/playbackRateStore/playbackRateStore.module.d.ts +8 -0
- package/types/store/modules/playbackRateStore/playbackRateStore.store.d.ts +61 -0
- package/types/store/modules/playbackRateStore/playbackRateStore.token.d.ts +6 -0
- package/types/store/modules/qualityStore/index.d.ts +6 -0
- package/types/store/modules/qualityStore/qualityStore.module.d.ts +8 -0
- package/types/store/modules/qualityStore/qualityStore.store.d.ts +37 -0
- package/types/store/modules/qualityStore/qualityStore.token.d.ts +6 -0
- package/types/store/modules/subtitlesStore/index.d.ts +9 -0
- package/types/store/modules/subtitlesStore/subtitlesStore.module.d.ts +8 -0
- package/types/store/modules/subtitlesStore/subtitlesStore.store.d.ts +130 -0
- package/types/store/modules/subtitlesStore/subtitlesStore.token.d.ts +6 -0
- package/types/store/types.d.ts +15 -9
- package/types/translation/types.d.ts +1 -0
- package/types/types/index.d.ts +1 -4
package/types/store/types.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { ChromecastState, IAudioStream, IConfig as ICoreInitVideoConfig, IExternalTextTrack, IOptionalTuningConfig, IPlayer, ISources, ITextTrack, IVideoStream, PlaybackRate, PlaybackState, VideoFormat } from "@vkontakte/videoplayer-core";
|
|
2
2
|
import type { InteractiveRange } from "@vkontakte/videoplayer-interactive";
|
|
3
|
-
import type { AppTracer, IError, ILogger, InterfaceLanguage, InternalsExposure, IRectangle, IValueObservable, QualityLimits, VideoQuality } from "@vkontakte/videoplayer-shared";
|
|
3
|
+
import type { AppTracer, IError, ILogger, InterfaceLanguage, InternalsExposure, IRectangle, ISubject, IValueObservable, IValueSubject, QualityLimits, VideoQuality } from "@vkontakte/videoplayer-shared";
|
|
4
4
|
import type { SeekAction, ThinOneStat } from "@vkontakte/videoplayer-statistics";
|
|
5
5
|
import type { Readable, Writable } from "svelte/store";
|
|
6
|
-
import type { AdditionalButtonDeprecated, AdsPlaybackState, ControlBlocksRefs, ControlsKeys, HotKeyMapData, IAnnotationsApi, IControlInfo, IDisabledControls, IInteractiveData, IPictureInPictureApi, IPlayerControlsRef, IPlayerPhase, ITimelinePreviewThumbsData, IVideoEpisode, IVKVideoPlayerCallbacks, IVKVideoPlayerUICallbacks,
|
|
6
|
+
import type { AdditionalButtonDeprecated, AdsPlaybackState, ControlBlocksRefs, ControlsKeys, HotKeyMapData, IAnnotationsApi, IControlInfo, IDisabledControls, IInteractiveData, IPictureInPictureApi, IPlayerControlsRef, IPlayerPhase, ITimelinePreviewThumbsData, IVideoEpisode, IVKVideoPlayerCallbacks, IVKVideoPlayerUICallbacks, Position, Size, VideoPlaybackRate, VideoPlayerView, VideoQualityForRender, VideoQualityUI, VideoSubtitle, VideoSubtitleParsed } from "../types";
|
|
7
7
|
import type { AdmanWrapper } from "../components/Ads/admanWrapper";
|
|
8
|
-
import type { Key
|
|
8
|
+
import type { Key } from "../translation/types";
|
|
9
9
|
import type { QualitySettingsAppliesTo } from "../utils/userSettings";
|
|
10
10
|
import type { GridTypes, PlayPrevChapterDisabledTooltipKey } from "../constans";
|
|
11
11
|
import type { AdditionalButton, AdditionalDesktopControlPanelButton } from "../components/Controls/types";
|
|
@@ -62,6 +62,7 @@ export interface IUIState {
|
|
|
62
62
|
fullscreen: Writable<IControlInfo | undefined>;
|
|
63
63
|
chromecast: Writable<IControlInfo | undefined>;
|
|
64
64
|
pip: Writable<IControlInfo | undefined>;
|
|
65
|
+
qoe: Writable<IControlInfo | undefined>;
|
|
65
66
|
"theater-mode-button": Writable<IControlInfo | undefined>;
|
|
66
67
|
vkLogo: Writable<IControlInfo | undefined>;
|
|
67
68
|
interactiveTimeIndicator: Writable<IControlInfo | undefined>;
|
|
@@ -153,7 +154,7 @@ export interface IPlayerState {
|
|
|
153
154
|
positionWithScrubbing$: Readable<number>;
|
|
154
155
|
duration$: Readable<number>;
|
|
155
156
|
playbackState$: Readable<PlaybackState | undefined>;
|
|
156
|
-
|
|
157
|
+
isBuffering$: Readable<boolean>;
|
|
157
158
|
isPlaying$: Readable<boolean>;
|
|
158
159
|
isLoaderVisible: Readable<boolean>;
|
|
159
160
|
bufferedProgress$: Readable<number>;
|
|
@@ -272,8 +273,7 @@ export interface IStoreInternalActions {
|
|
|
272
273
|
holdCamera(): void;
|
|
273
274
|
releaseCamera(): void;
|
|
274
275
|
downloadVideo: () => void;
|
|
275
|
-
|
|
276
|
-
setLanguage: (language: InterfaceLanguage | string) => void;
|
|
276
|
+
setLanguage: (language: InterfaceLanguage | string) => Promise<void>;
|
|
277
277
|
nextMovie: (movieId: number) => void;
|
|
278
278
|
correctSeekTimeToInteractive: (time: number) => number;
|
|
279
279
|
replayInteractive?: () => void;
|
|
@@ -334,18 +334,25 @@ export interface IStoreInitVideoConfig extends ICoreInitVideoConfig {
|
|
|
334
334
|
canDownload?: boolean;
|
|
335
335
|
previewThumbsData?: ITimelinePreviewThumbsData;
|
|
336
336
|
subtitles?: Omit<IExternalTextTrack, "type">[];
|
|
337
|
-
subtitlesForcedLanguage?: string;
|
|
338
337
|
unitedVideoId?: number;
|
|
339
338
|
videoEpisodes?: IVideoEpisode[];
|
|
340
339
|
}
|
|
340
|
+
export interface IStoreEvents {
|
|
341
|
+
actionRewind$: ISubject<void>;
|
|
342
|
+
actionSeek$: IValueSubject<SeekAction | ThinOneStat.ActionSeekType>;
|
|
343
|
+
actionQuality$: ISubject<ThinOneStat.ActionQualityType>;
|
|
344
|
+
nextMovie$: ISubject<number>;
|
|
345
|
+
}
|
|
341
346
|
export interface IStore {
|
|
342
347
|
initVideo: (config: IStoreInitVideoConfig) => void;
|
|
343
348
|
videoId$: Writable<number | undefined>;
|
|
344
349
|
playerPhase: IPlayerPhase;
|
|
345
350
|
interfaceLanguage$: Readable<InterfaceLanguage | string>;
|
|
351
|
+
interfaceLanguageUpdated$: ISubject<void>;
|
|
346
352
|
isCyrillicRelatedInterface$: Readable<boolean>;
|
|
347
353
|
interactiveData?: IInteractiveData;
|
|
348
|
-
vsid$:
|
|
354
|
+
vsid$: Writable<string | undefined>;
|
|
355
|
+
events: IStoreEvents;
|
|
349
356
|
state: IPlayerState;
|
|
350
357
|
ui: IUIState;
|
|
351
358
|
ads: IAdsState;
|
|
@@ -360,7 +367,6 @@ export interface IStore {
|
|
|
360
367
|
initOnFinishedCallback: VoidFunction;
|
|
361
368
|
resetAdsState: VoidFunction;
|
|
362
369
|
updateAdmanWrapperSubscriptions: VoidFunction;
|
|
363
|
-
updateStatisticsSubscriptions: VoidFunction;
|
|
364
370
|
updateAppTracerSubscriptions: VoidFunction;
|
|
365
371
|
updateTracerSubscriptions: VoidFunction;
|
|
366
372
|
getLogger: () => ILogger;
|
package/types/types/index.d.ts
CHANGED
|
@@ -381,6 +381,7 @@ export interface IPlayerControlsRef {
|
|
|
381
381
|
interactiveTimeIndicator?: HTMLElement;
|
|
382
382
|
timeline?: HTMLElement;
|
|
383
383
|
autoplayNextToggle?: HTMLButtonElement;
|
|
384
|
+
qoe?: HTMLElement;
|
|
384
385
|
}
|
|
385
386
|
export interface IPlayerDesktopControlsWidth {
|
|
386
387
|
prevButton: number;
|
|
@@ -628,7 +629,3 @@ export interface Caption {
|
|
|
628
629
|
value: string;
|
|
629
630
|
}
|
|
630
631
|
export type NotificationId = "slow_video";
|
|
631
|
-
export declare enum PlaybackStateExtended {
|
|
632
|
-
BUFFERING = "buffering"
|
|
633
|
-
}
|
|
634
|
-
export type PlaybackStateRealistic = PlaybackState | PlaybackStateExtended;
|