@vkontakte/videoplayer 1.1.91-dev.ff8ccb48.0 → 1.1.91

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.91-dev.ff8ccb48.0",
3
+ "version": "1.1.91",
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.160-dev.ff8ccb48.0",
47
- "@vkontakte/videoplayer-interactive": "1.0.66-dev.ff8ccb48.0",
48
- "@vkontakte/videoplayer-shared": "1.0.89-dev.ff8ccb48.0",
49
- "@vkontakte/videoplayer-statistics": "1.0.106-dev.ff8ccb48.0"
46
+ "@vkontakte/videoplayer-core": "2.0.160",
47
+ "@vkontakte/videoplayer-interactive": "1.0.66",
48
+ "@vkontakte/videoplayer-shared": "1.0.89",
49
+ "@vkontakte/videoplayer-statistics": "1.0.106"
50
50
  }
51
51
  }
@@ -84,6 +84,7 @@ export declare class VKVideoPlayer extends HTMLElement {
84
84
  private addPlayerInfoSubscriptions;
85
85
  playNextVideo(): void;
86
86
  playPrevVideo(): void;
87
+ toggleFullscreen(): void;
87
88
  /**
88
89
  * !!! Сейчас нее будет полноценно работать,
89
90
  * потому что часть полей которые реально относятся к видео передаются в videoConfig
package/types/config.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { ExactVideoQuality, Seconds, IAppTracerOptions } from "@vkontakte/videoplayer-shared";
1
+ import type { ExactVideoQuality, Seconds, IAppTracerConfig } from "@vkontakte/videoplayer-shared";
2
2
  import type { IOptionalTuningConfig as ICoreConfig } from "@vkontakte/videoplayer-core";
3
3
  import { InterfaceLanguage } from "@vkontakte/videoplayer-shared";
4
4
  import type { RecursivePartial } from "@vkontakte/videoplayer-shared";
@@ -133,7 +133,7 @@ export interface IUIConfig {
133
133
  copyVideoLink: boolean;
134
134
  videoRotate: boolean;
135
135
  tracer: boolean;
136
- apptracer: IAppTracerOptions;
136
+ apptracer: IAppTracerConfig;
137
137
  interactiveGraph: boolean;
138
138
  interactiveResponsiveUi?: boolean;
139
139
  seekToInteractive: boolean;
@@ -222,6 +222,10 @@ export interface IUIConfig {
222
222
  usePreviewTimelineWithHovering: boolean;
223
223
  /** добавляет перехват кликов (`event.stopPropagation()`) на уровне Root компонента плеера */
224
224
  rootStopPropagation: boolean;
225
+ /** расширяет высоту под-меню настроек в мобильной версии */
226
+ mobileSubMenuStretchHeight: boolean;
227
+ /** перенос кнопки с логотипом вк из верхнего-левого угла в контролы около кнопки звука */
228
+ mobileVkLogoViewOnBottomControls: boolean;
225
229
  };
226
230
  /**
227
231
  * Отключает вызов колбэка uiInfo.onPlayerSizeChanged при ресайзе обычного pip
@@ -293,6 +293,7 @@ export interface IStoreInternalActions {
293
293
  previewTrackOpened: () => void;
294
294
  previewTrackDragStarted: () => void;
295
295
  previewTrackDragFinished: () => void;
296
+ setFullscreenHandler: (cb: (() => void) | null) => void;
296
297
  }
297
298
  export interface IStoreExternalActions {
298
299
  firstStart: (showAds: boolean) => void;
@@ -325,6 +326,7 @@ export interface IStoreExternalActions {
325
326
  setHighQualityEnabled: (highQualityEnabled: boolean) => void;
326
327
  changeAudioStream: (id: string) => void;
327
328
  setMinimalView: (enabled: boolean) => void;
329
+ toggleFullscreen: () => void;
328
330
  }
329
331
  export interface IStoreInitVideoConfig extends ICoreInitVideoConfig {
330
332
  autoplay?: boolean;
@@ -323,11 +323,14 @@ export interface IVKVideoPlayerConfig {
323
323
  playerView?: VideoPlayerView;
324
324
  mediascopePixels?: MediascopePixelTypes.Pixel[];
325
325
  getVideoDeeplink?: (timestamp: number) => string;
326
+ apptracerUserId?: string | number;
326
327
  }
327
328
  /**
328
329
  * Поля, которые можно обновить, сохранив итстанс плеера
329
330
  */
330
- export type IUpdatableVKVideoPlayerConfig = Pick<Omit<IVKVideoPlayerConfig, "callbacks" | "interactiveData">, "adsSlotId" | "adsParams" | "albumId" | "canDownload" | "canRewindLive" | "failoverHosts" | "fromTime" | "isAudioDisabled" | "mediascopePixels" | "loop" | "muted" | "repeat" | "preload" | "showAutoplayNext" | "showNextPrevButtons" | "statTrackCode" | "videos" | "videoIndex" | "volumeMultiplier">;
331
+ export type IUpdatableVKVideoPlayerConfig = Pick<Omit<IVKVideoPlayerConfig, "callbacks" | "interactiveData">, "adsSlotId" | "adsParams" | "albumId" | "canDownload" | "canRewindLive" | "failoverHosts" | "fromTime" | "isAudioDisabled" | "mediascopePixels" | "loop" | "muted" | "repeat" | "preload" | "showAutoplayNext" | "showNextPrevButtons" | "statTrackCode" | "videoIndex" | "volumeMultiplier"> & {
332
+ videos?: IVideoData[];
333
+ };
331
334
  export interface IControlInfo {
332
335
  left: number;
333
336
  right: number;