@vkontakte/videoplayer 1.1.38-dev.86ff1ced.0 → 1.1.38-dev.8a0d35a6.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.38-dev.86ff1ced.0",
3
+ "version": "1.1.38-dev.8a0d35a6.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.105-dev.65651c8b.0",
53
- "@vkontakte/videoplayer-interactive": "1.0.13-dev.9724d3bc.0",
54
- "@vkontakte/videoplayer-shared": "^1.0.36",
55
- "@vkontakte/videoplayer-statistics": "1.0.51-dev.790f01a4.0"
52
+ "@vkontakte/videoplayer-core": "2.0.105-dev.f796a830.0",
53
+ "@vkontakte/videoplayer-interactive": "1.0.13-beta.0",
54
+ "@vkontakte/videoplayer-shared": "1.0.37-dev.ce3d9a69.0",
55
+ "@vkontakte/videoplayer-statistics": "1.0.51-dev.12b5a4b1.0"
56
56
  }
57
57
  }
@@ -82,4 +82,5 @@ export declare class VKVideoPlayer extends HTMLElement {
82
82
  getDeviceId(): string | undefined;
83
83
  replayInteractiveVideo(): void;
84
84
  showInteractiveIndicatorTooltip(newValue: boolean, useTimeout?: boolean): void;
85
+ switchToActiveLive(): void;
85
86
  }
package/types/config.d.ts CHANGED
@@ -98,6 +98,7 @@ export interface IUIConfig {
98
98
  saveDebugInfoToFile: boolean;
99
99
  additionalButtons: boolean;
100
100
  contextMenuButton: boolean;
101
+ saveRate: boolean;
101
102
  };
102
103
  interactive: {
103
104
  historyMaxLength: number;
@@ -11,7 +11,7 @@ import type { LanguageConfig } from '../translation/types';
11
11
  import type { AdditionalButton, ControlsKeys, HotKeyMapData, IAnnotationsApi, IControlInfo, IDisabledControls, IInteractiveData, IPictureInPictureApi, IPlayerPhase, ITimelinePreviewThumbsData, IVideoEpisode, IVKVideoPlayerCallbacks, IVKVideoPlayerUICallbacks, Position, VideoPlaybackRate, VideoQualityForRender, VideoQualityUI, VideoSubtitle, VideoSubtitleParsed } from '../types';
12
12
  import { AdsPlaybackState, PictureInPictureType } from '../types';
13
13
  import type { DebugData } from './utils';
14
- import type { PlayPrevChapterDisabledTooltipKey } from '../constans';
14
+ import { type PlayPrevChapterDisabledTooltipKey } from '../constans';
15
15
  import { GridTypes } from '../constans';
16
16
  import { UIOneStat } from '../services/statistics';
17
17
  export interface IAdsState {
@@ -267,10 +267,11 @@ interface IStoreParams {
267
267
  additionalButtons: AdditionalButton[];
268
268
  looped?: boolean;
269
269
  statistics: UIOneStat;
270
+ saveRate: boolean;
270
271
  }
271
272
  /**
272
273
  * Store приложения.
273
274
  * Если будет слишком большим - можно разделить его на модули
274
275
  */
275
- export declare const createStore: ({ interfaceLanguage, videoId, isClip, isLiveCatchUpMode, statAuthToken, isAudioDisabled, canDownload, callbacks, webApi, videoEpisodes, previewThumbsData, uiConfig, coreConfig, player: playerInstance, disabledControls, isInteractive, interactiveRanges$, isInteractiveTime$, replayInteractive, hasInteractiveBranches, playPrevChapterDisabledTooltip, additionalButtons, looped, statistics: uiStatistics, }: IStoreParams) => IStore;
276
+ export declare const createStore: ({ interfaceLanguage, videoId, isClip, isLiveCatchUpMode, statAuthToken, isAudioDisabled, canDownload, callbacks, webApi, videoEpisodes, previewThumbsData, uiConfig, coreConfig, player: playerInstance, disabledControls, isInteractive, interactiveRanges$, isInteractiveTime$, replayInteractive, hasInteractiveBranches, playPrevChapterDisabledTooltip, additionalButtons, looped, statistics: uiStatistics, saveRate, }: IStoreParams) => IStore;
276
277
  export {};
@@ -25,6 +25,7 @@ export type DebugData = {
25
25
  bitrate?: number;
26
26
  currentVideoSegmentLength?: number;
27
27
  currentAudioSegmentLength?: number;
28
+ vsid?: string;
28
29
  };
29
30
  export declare const constructDebugPanelData: (player: IPlayer, config: IConfig, store: IStore) => DebugData;
30
31
  export declare const fetchVideoFile: (url: string, filename: string) => void;
@@ -85,6 +85,10 @@ export interface IVKVideoPlayerCallbacks {
85
85
  height: number;
86
86
  }) => void;
87
87
  };
88
+ adsInfo?: {
89
+ onStarted?: () => void;
90
+ onCompleted?: () => void;
91
+ };
88
92
  }
89
93
  export interface IVKVideoPlayerUICallbacks {
90
94
  onStarted?: (isMuted: boolean) => void;
@@ -211,6 +215,7 @@ export interface IVKVideoPlayerConfig {
211
215
  additionalButtons?: AdditionalButton[];
212
216
  refDomain?: string;
213
217
  volumeMultiplier?: number;
218
+ saveRate?: boolean;
214
219
  }
215
220
  export interface IControlInfo {
216
221
  /** @deprecated Используйте новое поле left */
@@ -1,3 +1,2 @@
1
1
  import type { VideoQualityUI } from '../types';
2
- import Quality4KIcon from '../components/Icons/Qualities/Quality4KIcon.svelte';
3
- export declare const getQualityLabel: (quality?: VideoQualityUI) => typeof Quality4KIcon | undefined;
2
+ export declare const getQualityLabel: (quality?: VideoQualityUI) => any;
@@ -1,4 +1,5 @@
1
1
  import { VideoQuality } from '@vkontakte/videoplayer-shared';
2
+ import { type PlaybackRate } from '@vkontakte/videoplayer-core';
2
3
  export declare const savePreferredVolume: (volume: number) => void;
3
4
  export declare const getPreferredVolume: () => number | undefined;
4
5
  export declare const savePreferredQuality: (videoId: number | undefined, value: VideoQuality) => void;
@@ -8,3 +9,5 @@ export declare const savePreferMute: (preferMute: boolean) => void;
8
9
  export declare const getPreferMute: () => boolean;
9
10
  export declare const savePreferTrafficSavingEnabled: (trafficSavingEnabled: boolean) => void;
10
11
  export declare const getPreferTrafficSavingEnabled: () => boolean;
12
+ export declare const savePreferredRate: (rate: PlaybackRate) => void;
13
+ export declare const getPreferredRate: () => PlaybackRate | undefined;