@vkontakte/videoplayer 1.1.91-dev.fa864e67.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.fa864e67.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.fa864e67.0",
47
- "@vkontakte/videoplayer-interactive": "1.0.66-dev.fa864e67.0",
48
- "@vkontakte/videoplayer-shared": "1.0.89-dev.fa864e67.0",
49
- "@vkontakte/videoplayer-statistics": "1.0.106-dev.fa864e67.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
@@ -224,6 +224,8 @@ export interface IUIConfig {
224
224
  rootStopPropagation: boolean;
225
225
  /** расширяет высоту под-меню настроек в мобильной версии */
226
226
  mobileSubMenuStretchHeight: boolean;
227
+ /** перенос кнопки с логотипом вк из верхнего-левого угла в контролы около кнопки звука */
228
+ mobileVkLogoViewOnBottomControls: boolean;
227
229
  };
228
230
  /**
229
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;
@@ -328,7 +328,9 @@ export interface IVKVideoPlayerConfig {
328
328
  /**
329
329
  * Поля, которые можно обновить, сохранив итстанс плеера
330
330
  */
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" | "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
+ };
332
334
  export interface IControlInfo {
333
335
  left: number;
334
336
  right: number;