@vkontakte/videoplayer 1.1.38-dev.5decff27.0 → 1.1.38-dev.6f70836c.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 +3 -0
- package/types/store/index.d.ts +1 -1
- package/types/types/index.d.ts +6 -0
- package/types/utils/fullscreen.d.ts +1 -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.6f70836c.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.8ee45bd1.0",
|
|
53
|
+
"@vkontakte/videoplayer-interactive": "1.0.13-dev.9c3f69e2.0",
|
|
54
|
+
"@vkontakte/videoplayer-shared": "1.0.37-dev.511f8223.0",
|
|
55
|
+
"@vkontakte/videoplayer-statistics": "1.0.51-dev.3f45fe25.0"
|
|
56
56
|
}
|
|
57
57
|
}
|
|
@@ -15,6 +15,7 @@ export declare class VKVideoPlayer extends HTMLElement {
|
|
|
15
15
|
private _shadowRoot;
|
|
16
16
|
private playerContainer;
|
|
17
17
|
private rootContainer;
|
|
18
|
+
private shadowRootContainer;
|
|
18
19
|
private uiConfig;
|
|
19
20
|
private coreConfig;
|
|
20
21
|
private statisticsConfig;
|
|
@@ -81,5 +82,7 @@ export declare class VKVideoPlayer extends HTMLElement {
|
|
|
81
82
|
setLiveEnd(videoData: IVideoData): void;
|
|
82
83
|
getDeviceId(): string | undefined;
|
|
83
84
|
replayInteractiveVideo(): void;
|
|
85
|
+
replayInteractiveChapter(callback?: () => void): Promise<void>;
|
|
84
86
|
showInteractiveIndicatorTooltip(newValue: boolean, useTimeout?: boolean): void;
|
|
87
|
+
switchToActiveLive(): void;
|
|
85
88
|
}
|
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 {
|
package/types/types/index.d.ts
CHANGED
|
@@ -53,6 +53,7 @@ export interface IVKVideoPlayerCallbacks {
|
|
|
53
53
|
onDisabledSeekToInteractiveClick?: (message: string | undefined) => void;
|
|
54
54
|
onInteractiveTimeIndicatorClick?: () => void;
|
|
55
55
|
onInteractiveTimeIndicatorHintDeactivated?: () => void;
|
|
56
|
+
onExternalFullscreenExit?: () => void;
|
|
56
57
|
onPrevVideoClick?: () => boolean;
|
|
57
58
|
onNextVideoClick?: () => boolean;
|
|
58
59
|
onTrafficSavingEnabledChanged?: (isEnabled: boolean) => void;
|
|
@@ -85,6 +86,10 @@ export interface IVKVideoPlayerCallbacks {
|
|
|
85
86
|
height: number;
|
|
86
87
|
}) => void;
|
|
87
88
|
};
|
|
89
|
+
adsInfo?: {
|
|
90
|
+
onStarted?: () => void;
|
|
91
|
+
onCompleted?: () => void;
|
|
92
|
+
};
|
|
88
93
|
}
|
|
89
94
|
export interface IVKVideoPlayerUICallbacks {
|
|
90
95
|
onStarted?: (isMuted: boolean) => void;
|
|
@@ -210,6 +215,7 @@ export interface IVKVideoPlayerConfig {
|
|
|
210
215
|
callbacks?: IVKVideoPlayerCallbacks;
|
|
211
216
|
additionalButtons?: AdditionalButton[];
|
|
212
217
|
refDomain?: string;
|
|
218
|
+
volumeMultiplier?: number;
|
|
213
219
|
saveRate?: boolean;
|
|
214
220
|
}
|
|
215
221
|
export interface IControlInfo {
|
|
@@ -14,6 +14,7 @@ interface DocumentElementWithFullscreen extends HTMLElement {
|
|
|
14
14
|
export declare const requestFullscreen: (element: DocumentElementWithFullscreen) => Promise<void>;
|
|
15
15
|
export declare const exitFullscreen: (doc: DocumentWithFullscreen) => Promise<void>;
|
|
16
16
|
export declare const exitIosSafariVideoElementFullscreen: (videoElement: HTMLVideoElement) => Promise<void>;
|
|
17
|
+
export declare const getDocumentFullscreenElement: () => Element | undefined;
|
|
17
18
|
export declare const checkIsFullscreen: () => boolean;
|
|
18
19
|
export declare const registerFullscreenChangeEvent: (callback: () => void) => void;
|
|
19
20
|
export declare const removeFullscreenChangeEvent: (callback: () => void) => void;
|