@vkontakte/videoplayer 1.1.73-dev.83e1418a.0 → 1.1.73-dev.ecbcbb4c.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.73-dev.83e1418a.0",
3
+ "version": "1.1.73-dev.ecbcbb4c.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.142-dev.83e1418a.0",
59
- "@vkontakte/videoplayer-interactive": "1.0.48-dev.83e1418a.0",
60
- "@vkontakte/videoplayer-shared": "1.0.70-dev.83e1418a.0",
61
- "@vkontakte/videoplayer-statistics": "1.0.88-dev.83e1418a.0"
58
+ "@vkontakte/videoplayer-core": "2.0.142-dev.ecbcbb4c.0",
59
+ "@vkontakte/videoplayer-interactive": "1.0.48-dev.ecbcbb4c.0",
60
+ "@vkontakte/videoplayer-shared": "1.0.70-dev.ecbcbb4c.0",
61
+ "@vkontakte/videoplayer-statistics": "1.0.88-dev.ecbcbb4c.0"
62
62
  }
63
63
  }
@@ -292,6 +292,7 @@ export interface IStore {
292
292
  nextVideoAnnouncementClick: () => void;
293
293
  nextVideoAnnouncementAuto: () => void;
294
294
  nextVideoAnnouncementCancel: () => void;
295
+ checkFullscreenSupport: () => boolean;
295
296
  };
296
297
  external: {
297
298
  firstStart: (showAds: boolean) => void;
@@ -1,9 +1,12 @@
1
1
  interface DocumentWithFullscreen extends HTMLDocument {
2
- mozFullScreenElement?: Element;
3
2
  msFullscreenElement?: Element;
4
- webkitFullscreenElement?: Element;
3
+ msFullscreenEnabled?: boolean;
5
4
  msExitFullscreen?: () => Promise<void>;
5
+ mozFullScreenElement?: Element;
6
+ mozFullscreenEnabled?: boolean;
6
7
  mozCancelFullScreen?: () => Promise<void>;
8
+ webkitFullscreenElement?: Element;
9
+ webkitFullscreenEnabled?: boolean;
7
10
  webkitExitFullscreen?: () => Promise<void>;
8
11
  }
9
12
  interface DocumentElementWithFullscreen extends HTMLElement {
@@ -11,8 +14,14 @@ interface DocumentElementWithFullscreen extends HTMLElement {
11
14
  mozRequestFullScreen?: () => Promise<void>;
12
15
  webkitRequestFullscreen?: () => Promise<void>;
13
16
  }
17
+ interface IosSafariVideoElementWithFullscreen extends HTMLVideoElement {
18
+ webkitSupportsFullscreen?: boolean;
19
+ webkitEnterFullscreen?: () => void;
20
+ webkitExitFullscreen?: () => void;
21
+ }
14
22
  export declare const requestFullscreen: (element: DocumentElementWithFullscreen) => Promise<void>;
15
23
  export declare const exitFullscreen: (doc: DocumentWithFullscreen) => Promise<void>;
24
+ export declare const isSupported: (doc: DocumentWithFullscreen, videoElement: IosSafariVideoElementWithFullscreen | null) => boolean;
16
25
  export declare const exitIosSafariVideoElementFullscreen: (videoElement: HTMLVideoElement) => void;
17
26
  export declare const getDocumentFullscreenElement: () => Element | undefined;
18
27
  export declare const checkIsFullscreen: () => boolean;