@vkontakte/videoplayer 1.1.97-dev.0bf203cc7.0 → 1.1.97-dev.1022d4dbd.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 +10 -10
- package/es2015.esm.js +10 -10
- package/esnext.cjs +11 -11
- package/esnext.esm.js +11 -11
- package/evergreen.esm.js +11 -11
- package/package.json +5 -5
- package/types/store/types.d.ts +1 -9
- package/types/store/utils.d.ts +1 -23
- package/types/types/index.d.ts +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vkontakte/videoplayer",
|
|
3
|
-
"version": "1.1.97-dev.
|
|
3
|
+
"version": "1.1.97-dev.1022d4dbd.0",
|
|
4
4
|
"author": "vk.com",
|
|
5
5
|
"description": "Videoplayer based on the vk.com platform",
|
|
6
6
|
"homepage": "https://vk.com",
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@adtech/rbadman": "2.2.57",
|
|
46
|
-
"@vkontakte/videoplayer-core": "2.0.166-dev.
|
|
47
|
-
"@vkontakte/videoplayer-interactive": "1.0.72-dev.
|
|
48
|
-
"@vkontakte/videoplayer-shared": "1.0.95-dev.
|
|
49
|
-
"@vkontakte/videoplayer-statistics": "1.0.112-dev.
|
|
46
|
+
"@vkontakte/videoplayer-core": "2.0.166-dev.1022d4dbd.0",
|
|
47
|
+
"@vkontakte/videoplayer-interactive": "1.0.72-dev.1022d4dbd.0",
|
|
48
|
+
"@vkontakte/videoplayer-shared": "1.0.95-dev.1022d4dbd.0",
|
|
49
|
+
"@vkontakte/videoplayer-statistics": "1.0.112-dev.1022d4dbd.0"
|
|
50
50
|
}
|
|
51
51
|
}
|
package/types/store/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ChromecastState, IAudioStream, IConfig as ICoreInitVideoConfig, IExternalTextTrack, IOptionalTuningConfig, IPlayer, ISources, IVideoStream, PlaybackState, VideoFormat } from "@vkontakte/videoplayer-core";
|
|
2
2
|
import type { InteractiveRange } from "@vkontakte/videoplayer-interactive";
|
|
3
|
-
import type { AppTracer, IError, ILogger, InternalsExposure, IRectangle, IRootTracer, ISubject, ITracer, IValueObservable, IValueSubject, QualityLimits, VideoQuality } from "@vkontakte/videoplayer-shared";
|
|
3
|
+
import type { AppTracer, IError, ILogger, InternalsExposure, IRectangle, IRootTracer, ISubject, ITracer, IValueObservable, IValueSubject, QualityLimits, VideoQuality, DebugData } from "@vkontakte/videoplayer-shared";
|
|
4
4
|
import type { SeekAction, ThinOneStat } from "@vkontakte/videoplayer-statistics";
|
|
5
5
|
import type { Readable, Writable } from "svelte/store";
|
|
6
6
|
import type { AdditionalButtonDeprecated, AdsPlaybackState, ControlBlocksRefs, ControlsKeys, HotKeyMapData, IAnnotationsApi, IControlInfo, IDisabledControls, IInteractiveData, IPictureInPictureApi, IPlayerControlsRef, IPlayerPhase, ITimelinePreviewThumbsData, IVideoEpisode, IVKVideoPlayerCallbacks, IVKVideoPlayerUICallbacks, Position, Size, VideoPlayerView, VideoQualityUI } from "../types";
|
|
@@ -13,7 +13,6 @@ import type { SlotsApi } from "../utils/webAPI/slotsApi";
|
|
|
13
13
|
import type { FocusManager } from "../utils/webAPI/focusManager";
|
|
14
14
|
import type { ISDKConfig, IUIConfig } from "../config";
|
|
15
15
|
import type { IUIStatistics } from "../services/statistics";
|
|
16
|
-
import type { DebugData } from "./utils";
|
|
17
16
|
import type { ICompositionResult } from "./composition";
|
|
18
17
|
export interface SetQualityInfo {
|
|
19
18
|
appliesTo?: QualitySettingsAppliesTo;
|
|
@@ -96,10 +95,8 @@ export interface IUIState {
|
|
|
96
95
|
playerSize: Writable<Size>;
|
|
97
96
|
isMobile: Readable<boolean>;
|
|
98
97
|
mobileNotReportControlHidden$: Readable<boolean>;
|
|
99
|
-
icon3DVideoVisible: Writable<boolean>;
|
|
100
98
|
scrubbingInProgress: Writable<boolean>;
|
|
101
99
|
volumeChangingInProgress: Writable<boolean>;
|
|
102
|
-
is3DVideo: Writable<boolean>;
|
|
103
100
|
currentGridType$: Readable<GridTypes>;
|
|
104
101
|
interactiveHideMobileControls: Writable<boolean>;
|
|
105
102
|
additionalButtonsDeprecated$: Readable<AdditionalButtonDeprecated[]>;
|
|
@@ -240,11 +237,6 @@ export interface IStoreInternalActions {
|
|
|
240
237
|
startLogging: () => void;
|
|
241
238
|
stopLogging: () => void;
|
|
242
239
|
videoRotate: (alphaDiff?: number) => void;
|
|
243
|
-
startCameraManualRotation(mx: number, my: number): void;
|
|
244
|
-
stopCameraManualRotation(immediate?: boolean): void;
|
|
245
|
-
moveCameraFocusPX(xpx: number, ypx: number, dt: number): void;
|
|
246
|
-
holdCamera(): void;
|
|
247
|
-
releaseCamera(): void;
|
|
248
240
|
downloadVideo: () => void;
|
|
249
241
|
nextMovie: (movieId: number) => void;
|
|
250
242
|
correctSeekTimeToInteractive: (time: number) => number;
|
package/types/store/utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Readable } from "svelte/store";
|
|
2
|
-
import type { IValueObservable } from "@vkontakte/videoplayer-shared";
|
|
2
|
+
import type { IValueObservable, DebugData } from "@vkontakte/videoplayer-shared";
|
|
3
3
|
import type { IPlayer, IConfig, IObservable } from "@vkontakte/videoplayer-core";
|
|
4
4
|
import type { EnrichedStore, IAdsStateValues, IStore } from "./types";
|
|
5
5
|
import { type AdditionalButtonDeprecated } from "../types";
|
|
@@ -13,28 +13,6 @@ export declare const getStore: () => EnrichedStore;
|
|
|
13
13
|
export declare const storeFromObservable: <T>(observable$: IValueObservable<T>, onNewValueEmitted?: (value: T) => void) => Readable<T>;
|
|
14
14
|
export declare const storeFromObservableWithInitValue: <T>(observable$: IObservable<T>, initValue: T, onNewValueEmitted?: (value: T) => void) => Readable<T>;
|
|
15
15
|
export declare const constructDebugTextData: (player: IPlayer, config: IConfig | undefined, store: IStore, traceId: string, metaConfig?: ISDKConfig["meta"]) => string;
|
|
16
|
-
export type DebugData = {
|
|
17
|
-
version: string;
|
|
18
|
-
viewport: string;
|
|
19
|
-
provider?: string;
|
|
20
|
-
cdn?: string;
|
|
21
|
-
id?: number;
|
|
22
|
-
volume: number;
|
|
23
|
-
videoSize?: string;
|
|
24
|
-
buffer?: number;
|
|
25
|
-
nativeBuffer?: number;
|
|
26
|
-
position?: number;
|
|
27
|
-
speed?: number;
|
|
28
|
-
bitrate?: number;
|
|
29
|
-
liveLatency?: number;
|
|
30
|
-
currentVideoSegmentLength?: number;
|
|
31
|
-
currentAudioSegmentLength?: number;
|
|
32
|
-
vsid?: string;
|
|
33
|
-
videoCodec?: string;
|
|
34
|
-
audioCodec?: string;
|
|
35
|
-
hdr?: boolean;
|
|
36
|
-
audioLanguage?: string;
|
|
37
|
-
};
|
|
38
16
|
export declare const constructDebugPanelData: (player: IPlayer, config: IConfig, store: IStore) => DebugData;
|
|
39
17
|
export declare const fetchVideoFile: (url: string, filename: string) => void;
|
|
40
18
|
export declare const isDeprecatedAdditionalButtonGuard: (btn: AdditionalButtonDeprecated | AdditionalDesktopControlPanelButton) => btn is AdditionalButtonDeprecated;
|
package/types/types/index.d.ts
CHANGED
|
@@ -316,7 +316,6 @@ export interface IVKVideoPlayerConfig {
|
|
|
316
316
|
fullScreenTarget?: HTMLElement;
|
|
317
317
|
failoverHosts?: string[];
|
|
318
318
|
showThumbTimer?: boolean;
|
|
319
|
-
is3DVideo?: boolean;
|
|
320
319
|
callbacks?: IVKVideoPlayerCallbacks;
|
|
321
320
|
additionalButtons?: (AdditionalButtonDeprecated | AdditionalDesktopControlPanelButton)[];
|
|
322
321
|
additionalSettingsMenuItems?: AdditionalSettingsMenuItem[];
|