@vkontakte/videoplayer 1.1.41-dev.e79d1c66.0 → 1.1.41-dev.f5be3e7e.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.41-dev.e79d1c66.0",
3
+ "version": "1.1.41-dev.f5be3e7e.0",
4
4
  "author": "vk.com",
5
5
  "description": "Videoplayer based on the vk.com platform",
6
6
  "homepage": "https://vk.com",
@@ -49,9 +49,9 @@
49
49
  "**/*.d.ts"
50
50
  ],
51
51
  "dependencies": {
52
- "@vkontakte/videoplayer-core": "2.0.108-dev.8007a662.0",
53
- "@vkontakte/videoplayer-interactive": "1.0.16-dev.fce168eb.0",
54
- "@vkontakte/videoplayer-shared": "1.0.40-dev.ad436a1e.0",
55
- "@vkontakte/videoplayer-statistics": "1.0.54-dev.b4161a92.0"
52
+ "@vkontakte/videoplayer-core": "2.0.108-dev.0663cd2a.0",
53
+ "@vkontakte/videoplayer-interactive": "1.0.16-dev.64cbe1f7.0",
54
+ "@vkontakte/videoplayer-shared": "1.0.40-beta.0",
55
+ "@vkontakte/videoplayer-statistics": "1.0.54-dev.71e5a8e2.0"
56
56
  }
57
57
  }
@@ -10,7 +10,7 @@ export declare class VKVideoPlayer extends HTMLElement {
10
10
  private svelteRootComponent?;
11
11
  private store?;
12
12
  private microStoresRoot?;
13
- private statistics;
13
+ private statistics?;
14
14
  private sentry;
15
15
  private _shadowRoot;
16
16
  private playerContainer;
@@ -44,6 +44,7 @@ export declare class VKVideoPlayer extends HTMLElement {
44
44
  private isPrevButtonActive;
45
45
  private isControlDisabled;
46
46
  private getNextVideoInfo;
47
+ private createOneStat;
47
48
  private createPlayer;
48
49
  private addPlayerInfoSubscriptions;
49
50
  private playNextVideo;
@@ -54,7 +55,6 @@ export declare class VKVideoPlayer extends HTMLElement {
54
55
  private seekToInteractive;
55
56
  private toggleGraph;
56
57
  private initInteractives;
57
- private initInteractivesStatistics;
58
58
  initPlayer(videoConfig: IVKVideoPlayerConfig, sdkConfig?: Partial<ISDKConfig>): void;
59
59
  private isOneVideoPlaylist;
60
60
  /**
@@ -29,6 +29,7 @@ type IPlayerState = {
29
29
  interface IConfig {
30
30
  loadTimeout: Milliseconds;
31
31
  initTimeout: Milliseconds;
32
+ runtimeTimeout: Milliseconds;
32
33
  }
33
34
  export declare class AdmanWrapper {
34
35
  private adman;
@@ -42,6 +43,8 @@ export declare class AdmanWrapper {
42
43
  private readonly log;
43
44
  private loadTimeout;
44
45
  private initTimeout;
46
+ private runtimeTimeout;
47
+ private watchDogTimeout;
45
48
  events: {
46
49
  slotRequested$: Subject<void>;
47
50
  started$: Subject<AdsSection>;
@@ -74,6 +77,8 @@ export declare class AdmanWrapper {
74
77
  private onAdCompleted;
75
78
  private onAdClicked;
76
79
  private onAdError;
80
+ private startWatchDog;
81
+ private stopWatchDog;
77
82
  play(): void;
78
83
  pause(): void;
79
84
  skip(): void;
package/types/config.d.ts CHANGED
@@ -25,6 +25,7 @@ export interface IUIConfig {
25
25
  enable: ForceOrRelay;
26
26
  loadTimeout: Milliseconds;
27
27
  initTimeout: Milliseconds;
28
+ runtimeTimeout: Milliseconds;
28
29
  slot?: number;
29
30
  preview?: number;
30
31
  };
@@ -37,6 +38,7 @@ export interface IUIConfig {
37
38
  trafficSavingLimit: ExactVideoQuality;
38
39
  episodeMinWidthPc: number;
39
40
  controls: {
41
+ showOnStartupAtAutoplay: boolean;
40
42
  hideTimeout: Milliseconds;
41
43
  hideTimeoutMobile: Milliseconds;
42
44
  hideTimeoutInitial: Milliseconds;
@@ -76,6 +78,7 @@ export interface IUIConfig {
76
78
  fullscreen: boolean;
77
79
  mediaSession: boolean;
78
80
  annotations: boolean;
81
+ annotationsInside: boolean;
79
82
  download: boolean;
80
83
  pip: boolean;
81
84
  dpip: boolean;
@@ -1,5 +1,5 @@
1
1
  import { type ISubscription } from '@vkontakte/videoplayer-shared';
2
- import { type IConstructorParams, type IOneStat, type IStatContext } from '@vkontakte/videoplayer-statistics';
2
+ import { type IOneStat } from '@vkontakte/videoplayer-statistics';
3
3
  export interface IUIStatistics {
4
4
  statSubscription: ISubscription;
5
5
  oneStat: IOneStat;
@@ -8,6 +8,6 @@ export interface IUIStatistics {
8
8
  export declare class UIOneStat implements IUIStatistics {
9
9
  oneStat: IOneStat;
10
10
  statSubscription: ISubscription;
11
- constructor(statContext: IStatContext, params: IConstructorParams);
11
+ constructor(oneStat: IOneStat, statSubscription?: ISubscription);
12
12
  destroy(): void;
13
13
  }
@@ -276,7 +276,7 @@ interface IStoreParams {
276
276
  playPrevChapterDisabledTooltip: PlayPrevChapterDisabledTooltipKey;
277
277
  additionalButtons: AdditionalButton[];
278
278
  looped?: boolean;
279
- statistics: UIOneStat;
279
+ statistics?: UIOneStat;
280
280
  saveRate: boolean;
281
281
  }
282
282
  /**
@@ -359,6 +359,8 @@ export interface IAnnotationsApi {
359
359
  detach: () => void;
360
360
  /** @deprecated Больше нет необходимости переназначать контейнер для аннотаций в ходе работы плеера */
361
361
  reattach: () => void;
362
+ /** @private */
363
+ init: (container: HTMLElement) => void;
362
364
  add: (annotationName: string, annotation: HTMLElement) => void | never;
363
365
  get: (annotationName: string) => HTMLElement | never;
364
366
  remove: (annotationName: string) => void | never;
@@ -1,2 +1,2 @@
1
1
  import type { VideoSubtitle, VideoSubtitleParsed, VideoSubtitlesParsed } from '../types';
2
- export declare const findCurrentSubtitlePhrase: (position: number, currentSubtitle: Omit<VideoSubtitle, "selected">, availableSubtitlesParsed: VideoSubtitlesParsed) => VideoSubtitleParsed | undefined;
2
+ export declare const findCurrentSubtitlePhrase: (position: number, currentSubtitle: Omit<VideoSubtitle, "selected">, availableSubtitlesParsed: VideoSubtitlesParsed, isLive?: boolean) => VideoSubtitleParsed | undefined;
@@ -5,7 +5,7 @@ export declare class AnnotationsApi implements IAnnotationsApi {
5
5
  private subscriptions;
6
6
  private mutationObserver;
7
7
  private playerSize;
8
- constructor(container: HTMLElement);
8
+ init(container: HTMLElement): void;
9
9
  add(annotationName: string, annotation: HTMLElement): void | never;
10
10
  get(annotationName: string): HTMLElement | never;
11
11
  remove(annotationName: string): void | never;