@vkontakte/videoplayer 1.1.81 → 1.1.82-dev.0ce40db4.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.81",
3
+ "version": "1.1.82-dev.0ce40db4.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.150",
59
- "@vkontakte/videoplayer-interactive": "1.0.56",
60
- "@vkontakte/videoplayer-shared": "1.0.79",
61
- "@vkontakte/videoplayer-statistics": "1.0.96"
58
+ "@vkontakte/videoplayer-core": "2.0.151-dev.0ce40db4.0",
59
+ "@vkontakte/videoplayer-interactive": "1.0.57-dev.0ce40db4.0",
60
+ "@vkontakte/videoplayer-shared": "1.0.80-dev.0ce40db4.0",
61
+ "@vkontakte/videoplayer-statistics": "1.0.97-dev.0ce40db4.0"
62
62
  }
63
63
  }
@@ -23,6 +23,7 @@ export type AdmanInitParams = {
23
23
  adsVideoElement: HTMLVideoElement;
24
24
  paramsOverride?: AdsParams;
25
25
  externalApi?: IAdmanInitParamsExternalApi;
26
+ json?: Record<string, unknown>;
26
27
  };
27
28
  export type IPlayerState = {
28
29
  vsid: Readable<string | undefined>;
@@ -30,6 +30,7 @@ export interface RootProps {
30
30
  adsParams?: AdmanInitParams['params'];
31
31
  adsAutoplayParam?: boolean;
32
32
  adsExternalApi?: AdmanInitParams['externalApi'];
33
+ adsJson?: AdmanInitParams['json'];
33
34
  duration?: number | undefined;
34
35
  logoClickable: boolean;
35
36
  logoHidden: boolean;
@@ -207,6 +207,7 @@ export interface IVideoDataBase {
207
207
  duration?: AdmanInitParams['duration'];
208
208
  adsParams?: AdmanInitParams['params'];
209
209
  adsExternalApi?: AdmanInitParams['externalApi'];
210
+ adsJson?: AdmanInitParams['json'];
210
211
  videoEpisodes?: IVideoEpisode[];
211
212
  previewThumbsData?: ITimelinePreviewThumbsData;
212
213
  isClip?: boolean;
@@ -47,6 +47,12 @@ export declare class PictureInPictureApi implements IPictureInPictureApi {
47
47
  * Флаг определяет может ли пользователь переходить в pip на уровне бизнес логике.
48
48
  */
49
49
  setEnabled(enabled: boolean): void;
50
+ /**
51
+ * для сафари нужно корректно обновить состояние пипа, потому что если мы попали сюда
52
+ * из за креша провайдера + клика на выход из пип-а, то сафари может не успеть прислать
53
+ * leavepictureinpicture на старый элемент из за чего UI застрянет в неправильном состоянии
54
+ */
55
+ private waitForSafariLeavePictureInPicture;
50
56
  }
51
57
  export declare function isInstanceOfPictureInPictureApi(pictureInPictureApi?: IPictureInPictureApi): pictureInPictureApi is PictureInPictureApi;
52
58
  export {};