@vkontakte/videoplayer 1.1.62-beta.1 → 1.1.62-dev.92a4e8bb.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vkontakte/videoplayer",
3
- "version": "1.1.62-beta.1",
3
+ "version": "1.1.62-dev.92a4e8bb.0",
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.132-beta.1",
59
- "@vkontakte/videoplayer-interactive": "1.0.37-beta.1",
60
- "@vkontakte/videoplayer-shared": "1.0.60-beta.1",
61
- "@vkontakte/videoplayer-statistics": "1.0.78-beta.1"
58
+ "@vkontakte/videoplayer-core": "2.0.132-dev.c5952ae2.0",
59
+ "@vkontakte/videoplayer-interactive": "1.0.37-dev.9bbd6300.0",
60
+ "@vkontakte/videoplayer-shared": "1.0.60-dev.8dc1c861.0",
61
+ "@vkontakte/videoplayer-statistics": "1.0.78-dev.a96b8192.0"
62
62
  }
63
63
  }
@@ -177,10 +177,7 @@ export interface IVideoDataBase {
177
177
  title: string;
178
178
  thumbUrl?: string;
179
179
  unitedVideoId?: number;
180
- /**
181
- * duration используется только для инициализации адмана.
182
- */
183
- duration?: number;
180
+ duration: number;
184
181
  adsParams?: AdsParams;
185
182
  videoEpisodes?: IVideoEpisode[];
186
183
  previewThumbsData?: ITimelinePreviewThumbsData;
@@ -217,6 +214,12 @@ export interface AdditionalButtonDeprecated {
217
214
  hideOnDesktopGridTypes?: GridTypes[];
218
215
  hideOnMobile?: boolean;
219
216
  }
217
+ /**
218
+ * Определяет внешний вид плеера и его функциональность.
219
+ * compact - оставляется только таймлайн, все остальные элементы скрыты;
220
+ * full - полная функциональность плеера доступна.
221
+ */
222
+ export type VideoPlayerView = 'compact' | 'full';
220
223
  export interface IVKVideoPlayerConfig {
221
224
  videos: IVideoData[];
222
225
  videoIndex?: number;
@@ -271,6 +274,7 @@ export interface IVKVideoPlayerConfig {
271
274
  showAutoplayNext?: boolean;
272
275
  showNextPrevButtons?: boolean;
273
276
  pipEnabled?: boolean;
277
+ playerView?: VideoPlayerView;
274
278
  }
275
279
  export interface IControlInfo {
276
280
  left: number;