@vkontakte/videoplayer 1.1.82-dev.fbdd1f70.0 → 1.1.82

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vkontakte/videoplayer",
3
- "version": "1.1.82-dev.fbdd1f70.0",
3
+ "version": "1.1.82",
4
4
  "author": "vk.com",
5
5
  "description": "Videoplayer based on the vk.com platform",
6
6
  "homepage": "https://vk.com",
@@ -55,9 +55,9 @@
55
55
  ],
56
56
  "dependencies": {
57
57
  "@adtech/rbadman": "2.2.57",
58
- "@vkontakte/videoplayer-core": "2.0.151-dev.fbdd1f70.0",
59
- "@vkontakte/videoplayer-interactive": "1.0.57-dev.fbdd1f70.0",
60
- "@vkontakte/videoplayer-shared": "1.0.80-dev.fbdd1f70.0",
61
- "@vkontakte/videoplayer-statistics": "1.0.97-dev.fbdd1f70.0"
58
+ "@vkontakte/videoplayer-core": "2.0.151",
59
+ "@vkontakte/videoplayer-interactive": "1.0.57",
60
+ "@vkontakte/videoplayer-shared": "1.0.80",
61
+ "@vkontakte/videoplayer-statistics": "1.0.97"
62
62
  }
63
63
  }
package/types/config.d.ts CHANGED
@@ -207,6 +207,10 @@ export interface IUIConfig {
207
207
  */
208
208
  disableThumbUnstartedOnAutoplay: boolean;
209
209
  };
210
+ /**
211
+ * Отключает вызов колбэка uiInfo.onPlayerSizeChanged при ресайзе обычного pip
212
+ */
213
+ disablePiPResizeHandling: boolean;
210
214
  interactive: {
211
215
  historyMaxLength: number;
212
216
  noInteractionEventTimeout: number;
@@ -2,7 +2,7 @@ import type { IAudioStream, IConfig, IExternalTextTrack, IOptionalTuningConfig,
2
2
  import { ChromecastState, PlaybackState, VideoFormat } from '@vkontakte/videoplayer-core';
3
3
  import { type IError, type ILogger, InterfaceLanguage, type IRectangle, type IValueObservable, type QualityLimits, VideoQuality, type InternalsExposure } from '@vkontakte/videoplayer-shared';
4
4
  import type { ISDKConfig, IUIConfig } from '../config';
5
- import { SeekAction } from '@vkontakte/videoplayer-statistics';
5
+ import { SeekAction, ThinOneStat } from '@vkontakte/videoplayer-statistics';
6
6
  import type { InteractiveRange } from '@vkontakte/videoplayer-interactive';
7
7
  import type { Readable, Writable } from 'svelte/store';
8
8
  import { AdmanWrapper } from '../components/Ads/admanWrapper';
@@ -63,6 +63,7 @@ export interface IUIState {
63
63
  fullscreen: Writable<IControlInfo | undefined>;
64
64
  chromecast: Writable<IControlInfo | undefined>;
65
65
  pip: Writable<IControlInfo | undefined>;
66
+ 'theater-mode-button': Writable<IControlInfo | undefined>;
66
67
  vkLogo: Writable<IControlInfo | undefined>;
67
68
  interactiveTimeIndicator: Writable<IControlInfo | undefined>;
68
69
  timeline: Writable<IControlInfo | undefined>;
@@ -137,7 +138,6 @@ export interface IUIState {
137
138
  * Определяет, что двойное ускорение видео доступно.
138
139
  */
139
140
  doubleForwardAvailable$: Readable<false>;
140
- previewTrackNotificationVisible: Writable<boolean>;
141
141
  previewTrackActive: Writable<boolean>;
142
142
  previewTrackDragInProgress: Writable<boolean>;
143
143
  previewTrackAvailable: Readable<boolean>;
@@ -258,7 +258,7 @@ export interface IStore {
258
258
  togglePictureInPicture: () => void;
259
259
  startScrubbing: (progress: number) => void;
260
260
  progressScrubbing: (progress: number) => void;
261
- completeScrubbing: (progress: number, forcePrecise?: boolean) => void;
261
+ completeScrubbing: (progress: number, forcePrecise?: boolean, action?: ThinOneStat.ActionSeekType | SeekAction) => void;
262
262
  toggleChromecast: () => void;
263
263
  seekTime: (time: number, action: SeekAction, forcePrecise?: boolean) => void;
264
264
  seekEpisodeStartTime: (time: number) => void;
@@ -2,7 +2,7 @@ import type { VideoQuality, VideoFormat, ISources, IExternalTextTrack, IAudioStr
2
2
  import type { IValueObservable, InterfaceLanguage, Subscription, IRectangle, DevNullEntry } from '@vkontakte/videoplayer-shared';
3
3
  import type { Chapter, Manifest, ManifestVideo, VideoInfo, Interactives, IInteractiveOptions } from '@vkontakte/videoplayer-interactive';
4
4
  import { PlaybackState } from '@vkontakte/videoplayer-core';
5
- import type { MediascopePixelTypes } from '@vkontakte/videoplayer-statistics';
5
+ import type { MediascopePixelTypes, SeekAction, ThinOneStat } from '@vkontakte/videoplayer-statistics';
6
6
  import type { Writable, Readable } from 'svelte/store';
7
7
  import type { ISDKConfig, IUIConfig } from '../config';
8
8
  import type { IStore } from '../store';
@@ -44,7 +44,7 @@ export interface IVKVideoPlayerCallbacks {
44
44
  onEpisodeClicked?: (byKeyboard: boolean) => void;
45
45
  onEpisodeChanged?: (episode: IVideoEpisode) => void;
46
46
  onTimeupdate?: (duration: number, position: number) => void;
47
- onSeek?: (from: number, to: number) => void;
47
+ onSeek?: (from: number, to: number, type: ThinOneStat.ActionSeekType | SeekAction) => void;
48
48
  onCrashed?: (reason?: string) => void;
49
49
  onRecoverableError?: (reason?: string) => void;
50
50
  onCurrentFormatChanged?: (currentFormat: VideoFormat | undefined) => void;
@@ -117,6 +117,7 @@ export interface IVKVideoPlayerCallbacks {
117
117
  onFullscreenChanged?: (value?: IControlInfo) => void;
118
118
  onChromecastChanged?: (value?: IControlInfo) => void;
119
119
  onPipChanged?: (value?: IControlInfo) => void;
120
+ onTheaterModeChanged?: (value?: IControlInfo) => void;
120
121
  onVkLogoChanged?: (value?: IControlInfo) => void;
121
122
  onTimelineChanged?: (value?: IControlInfo) => void;
122
123
  onTimelineMouseEnter?: () => void;
@@ -345,6 +346,7 @@ export interface IPlayerControlsRef {
345
346
  fullscreen?: HTMLElement;
346
347
  chromecast?: HTMLButtonElement;
347
348
  pip?: HTMLButtonElement;
349
+ 'theater-mode-button'?: HTMLButtonElement;
348
350
  vkLogo?: HTMLButtonElement;
349
351
  interactiveTimeIndicator?: HTMLElement;
350
352
  timeline?: HTMLElement;