@vkontakte/videoplayer 1.1.67-dev.992eb225.0 → 1.1.67-dev.f850506b.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.67-dev.992eb225.0",
3
+ "version": "1.1.67-dev.f850506b.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.136-dev.d878e150.0",
59
- "@vkontakte/videoplayer-interactive": "1.0.42-dev.c8b35e5c.0",
60
- "@vkontakte/videoplayer-shared": "1.0.64-dev.81ee1034.0",
61
- "@vkontakte/videoplayer-statistics": "1.0.82-dev.70d67ade.0"
58
+ "@vkontakte/videoplayer-core": "2.0.136-dev.e1130126.0",
59
+ "@vkontakte/videoplayer-interactive": "1.0.42-dev.8d0315a2.0",
60
+ "@vkontakte/videoplayer-shared": "1.0.64-dev.7028aa89.0",
61
+ "@vkontakte/videoplayer-statistics": "1.0.82-dev.92d18b42.0"
62
62
  }
63
63
  }
@@ -97,7 +97,14 @@ export declare class VKVideoPlayer extends HTMLElement {
97
97
  setLanguage(language: InterfaceLanguage | string): Promise<void>;
98
98
  setLiveStart(videoData: IVideoData): void;
99
99
  setLiveWaitingStart(): void;
100
- setLiveWaitingRecover(): void;
100
+ /**
101
+ * Идёт доигрывание трансляции
102
+ */
103
+ private isLiveTailPlaying;
104
+ /**
105
+ * @param forceImmediate Позволяет немедленно показать состояние ожидания, не дожидаясь окончания доигрывания буффера и попыток получить поток
106
+ */
107
+ setLiveWaitingRecover(forceImmediate?: boolean): void;
101
108
  setLiveWaitingRecord(): void;
102
109
  setLiveEnd(videoData: IVideoData): void;
103
110
  setLiveLowLatency(isLowLatency: boolean): void;
@@ -35,6 +35,7 @@ export interface AdditionalDesktopControlPanelButton extends BaseAdditionalButto
35
35
  tooltipText?: string;
36
36
  disabledTooltipContent?: string;
37
37
  hideOnDesktopGridTypes?: GridTypes[];
38
+ disableMouseupTooltipShow?: boolean;
38
39
  }
39
40
  export type AdditionalButton = AdditionalDesktopControlPanelButton;
40
41
  export {};
@@ -1,4 +1,4 @@
1
- import type { IExternalTextTrack, ISources, PlaybackRate } from '@vkontakte/videoplayer-core';
1
+ import type { IExternalTextTrack, IOptionalTuningConfig, 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,6 +11,7 @@ export interface RootProps {
11
11
  microStoresRoot: IMicroStoresRoot;
12
12
  videoConfig: IVKVideoPlayerConfig;
13
13
  uiConfig: IUIConfig;
14
+ coreConfig: IOptionalTuningConfig;
14
15
  title: string;
15
16
  thumbUrl: string | undefined;
16
17
  interactiveContainer: HTMLElement | undefined;
@@ -39,8 +40,8 @@ export interface RootProps {
39
40
  endScreenVideoThumb?: string | undefined;
40
41
  isOneVideoPlaylist?: boolean;
41
42
  supportLink: string;
42
- shadowRootContainer: HTMLElement;
43
- outerContainerRef: HTMLElement;
43
+ shadowRootContainer?: HTMLElement | undefined;
44
+ outerContainerRef?: HTMLElement | undefined;
44
45
  fullScreenTarget?: HTMLElement | undefined;
45
46
  failoverHosts?: string[] | undefined;
46
47
  showMiniTimer?: boolean;
@@ -1,15 +1,17 @@
1
1
  import { type ISubscription } from '@vkontakte/videoplayer-shared';
2
- import { type IOneStat, type ThinOneStat } from '@vkontakte/videoplayer-statistics';
2
+ import { type IOneStat, type ThinOneStat, type IMediascopePixel } from '@vkontakte/videoplayer-statistics';
3
3
  export interface IUIStatistics {
4
4
  statSubscription: ISubscription;
5
5
  oneStat?: IOneStat;
6
6
  thinOneStat?: ThinOneStat.IThinOneStat;
7
+ mediascopePixel?: IMediascopePixel;
7
8
  destroy: () => void;
8
9
  }
9
10
  export declare class UIOneStat implements IUIStatistics {
10
11
  oneStat?: IOneStat | undefined;
11
12
  thinOneStat?: ThinOneStat.IThinOneStat | undefined;
13
+ mediascopePixel?: IMediascopePixel | undefined;
12
14
  statSubscription: ISubscription;
13
- constructor(oneStat?: IOneStat | undefined, thinOneStat?: ThinOneStat.IThinOneStat | undefined, statSubscription?: ISubscription);
15
+ constructor(oneStat?: IOneStat | undefined, thinOneStat?: ThinOneStat.IThinOneStat | undefined, mediascopePixel?: IMediascopePixel | undefined, statSubscription?: ISubscription);
14
16
  destroy(): void;
15
17
  }
@@ -2,6 +2,7 @@ import type { VideoQuality, VideoFormat, ISources, IExternalTextTrack } from '@v
2
2
  import type { IValueObservable, InterfaceLanguage, Subscription, IRectangle, DevNullEntry } from '@vkontakte/videoplayer-shared';
3
3
  import type { Chapter, Manifest, ManifestVideo, VideoInfo, Interactives, IInteractiveOptions } from '@vkontakte/videoplayer-interactive';
4
4
  import { PlaybackState } from '@vkontakte/videoplayer-core';
5
+ import type { MediascopePixelTypes } from '@vkontakte/videoplayer-statistics';
5
6
  import type { Writable, Readable } from 'svelte/store';
6
7
  import type { ISDKConfig, IUIConfig } from '../config';
7
8
  import type { IStore } from '../store';
@@ -183,8 +184,9 @@ export interface ITimelinePreviewThumbsData {
183
184
  isUV: boolean;
184
185
  links: string[];
185
186
  }
187
+ export type VideoLiveStatus = 'started' | 'upcoming' | 'waiting' | 'finished' | 'postlive' | 'failed';
186
188
  export interface IVideoLive {
187
- status: 'started' | 'upcoming' | 'waiting' | 'finished' | 'postlive' | 'failed';
189
+ status: VideoLiveStatus;
188
190
  startTime?: number;
189
191
  }
190
192
  export interface IVideoDataBase {
@@ -200,14 +202,14 @@ export interface IVideoDataBase {
200
202
  previewThumbsData?: ITimelinePreviewThumbsData;
201
203
  isClip?: boolean;
202
204
  subtitles?: Array<Omit<IExternalTextTrack, 'type'>>;
205
+ sources?: ISources;
206
+ live?: IVideoLive;
203
207
  }
204
208
  export interface IVideoDataWithSources extends IVideoDataBase {
205
209
  sources: ISources;
206
- live?: never;
207
210
  }
208
211
  export interface IVideoDataWithLive extends IVideoDataBase {
209
212
  live: IVideoLive;
210
- sources?: never;
211
213
  }
212
214
  export type IVideoData = IVideoDataWithSources | IVideoDataWithLive;
213
215
  export interface IInteractiveData extends Pick<IInteractiveOptions, 'initChapterId' | 'historyApi' | 'projectInfo'> {
@@ -292,6 +294,7 @@ export interface IVKVideoPlayerConfig {
292
294
  showNextPrevButtons?: boolean;
293
295
  pipEnabled?: boolean;
294
296
  playerView?: VideoPlayerView;
297
+ mediascopePixels?: MediascopePixelTypes.Pixel[];
295
298
  }
296
299
  export interface IControlInfo {
297
300
  left: number;