@vkontakte/videoplayer 1.1.68-dev.e81175ee.0 → 1.1.68

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.68-dev.e81175ee.0",
3
+ "version": "1.1.68",
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.137-dev.750ffba6.0",
59
- "@vkontakte/videoplayer-interactive": "1.0.43-dev.e4c3b823.0",
60
- "@vkontakte/videoplayer-shared": "1.0.65-dev.e2951f05.0",
61
- "@vkontakte/videoplayer-statistics": "1.0.83-dev.b14dab0b.0"
58
+ "@vkontakte/videoplayer-core": "2.0.137",
59
+ "@vkontakte/videoplayer-interactive": "1.0.43",
60
+ "@vkontakte/videoplayer-shared": "1.0.65",
61
+ "@vkontakte/videoplayer-statistics": "1.0.83"
62
62
  }
63
63
  }
@@ -13,6 +13,7 @@ import { SlotsApi } from '../utils/webAPI/slotsApi';
13
13
  export declare class VKVideoPlayer extends HTMLElement {
14
14
  private svelteStubComponent?;
15
15
  private svelteRootComponent?;
16
+ private svelteErrorComponent?;
16
17
  private store?;
17
18
  private microStoresRoot?;
18
19
  private statistics?;
@@ -44,6 +45,7 @@ export declare class VKVideoPlayer extends HTMLElement {
44
45
  private isInited;
45
46
  private internalsExposure;
46
47
  private shadowDOMCallbacksDisabled;
48
+ private readonly fatalError$;
47
49
  constructor();
48
50
  private connectedCallback;
49
51
  private disconnectedCallback;
@@ -1,4 +1,4 @@
1
- import type { IExternalTextTrack, IOptionalTuningConfig, ISources, PlaybackRate } from '@vkontakte/videoplayer-core';
1
+ import type { IExternalTextTrack, ISources, PlaybackRate } from '@vkontakte/videoplayer-core';
2
2
  import type { IStore } from '../../store';
3
3
  import type { AdsParams, IMicroStoresRoot, IVideoLive, IVKVideoPlayerConfig } from '../../types';
4
4
  import type { IUIConfig } from '../../config';
@@ -11,7 +11,6 @@ export interface RootProps {
11
11
  microStoresRoot: IMicroStoresRoot;
12
12
  videoConfig: IVKVideoPlayerConfig;
13
13
  uiConfig: IUIConfig;
14
- coreConfig: IOptionalTuningConfig;
15
14
  title: string;
16
15
  thumbUrl: string | undefined;
17
16
  interactiveContainer: HTMLElement | undefined;
package/types/config.d.ts CHANGED
@@ -171,6 +171,11 @@ export interface IUIConfig {
171
171
  * Включает ранее выбранный язык субтитров при запуске видео
172
172
  */
173
173
  initSubtitles: boolean;
174
+ /**
175
+ * При запуске предыдущего/следующего видео из MediaSession
176
+ * вместо переключения на видео из конфига будут вызываться соответствубщие колбэки
177
+ */
178
+ useCallbackForMediaSessionNextPrevClick: boolean;
174
179
  };
175
180
  interactive: {
176
181
  historyMaxLength: number;
@@ -438,7 +438,7 @@ export interface IPictureInPictureApi {
438
438
  isActive: () => boolean;
439
439
  setContext: (svelteContext: Map<unknown, unknown>) => void;
440
440
  request: () => Promise<void>;
441
- remove: () => Promise<void>;
441
+ exit: () => Promise<void>;
442
442
  info: IPictureInPictureApiInfo;
443
443
  setEnabled: (enabled: boolean) => void;
444
444
  dispose: () => Promise<void>;
@@ -24,7 +24,7 @@ export declare class DocumentPictureInPictureApiSvelte implements IPictureInPict
24
24
  setPlayerDomElement(playerDomElement: HTMLElement, playerParentShadowRoot: ShadowRoot): void;
25
25
  setContext(svelteContext: Map<unknown, unknown>): void;
26
26
  request(): Promise<void>;
27
- remove(): Promise<void>;
27
+ exit(): Promise<void>;
28
28
  dispose(): Promise<void>;
29
29
  /**
30
30
  * Флаг определяет может ли пользователь переходить в dpip на уровне бизнес логике.
@@ -10,7 +10,6 @@ export declare class PictureInPictureApi implements IPictureInPictureApi {
10
10
  private isRequested;
11
11
  private videoElement;
12
12
  private playerContainer;
13
- private playerDummyElement;
14
13
  private svelteContext;
15
14
  private externalEventHandlers;
16
15
  private readonly eventHandlers;
@@ -31,12 +30,12 @@ export declare class PictureInPictureApi implements IPictureInPictureApi {
31
30
  setContext(svelteContext: Map<unknown, unknown>): void;
32
31
  revealPictureInPicture(): Promise<void>;
33
32
  request(): Promise<void>;
34
- remove(): Promise<void>;
33
+ exit(): Promise<void>;
35
34
  assignPlayerContainer(playerContainer: HTMLElement): void;
36
35
  updateVideoElement(): void;
37
- registryEventHandlers(): void;
38
- registryExternalEventHandlers(externalEventHandlers: Partial<PictureInPictureEventHandlers>): void;
39
- unregistryEventHandlers(): void;
36
+ private addEventHandlers;
37
+ setExternalEventHandlers(externalEventHandlers: Partial<PictureInPictureEventHandlers>): void;
38
+ private removeEventHandlers;
40
39
  dispose(): Promise<void>;
41
40
  private onEnterPictureInPicture;
42
41
  private onLeavePictureInPicture;