@vkontakte/videoplayer 1.1.39 → 1.1.40-dev.5a62b023.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.39",
3
+ "version": "1.1.40-dev.5a62b023.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.106",
53
- "@vkontakte/videoplayer-interactive": "^1.0.14",
54
- "@vkontakte/videoplayer-shared": "^1.0.38",
55
- "@vkontakte/videoplayer-statistics": "^1.0.52"
52
+ "@vkontakte/videoplayer-core": "2.0.107-dev.0b62b52b.0",
53
+ "@vkontakte/videoplayer-interactive": "1.0.15-dev.cdca0fbd.0",
54
+ "@vkontakte/videoplayer-shared": "1.0.39-dev.cc731078.0",
55
+ "@vkontakte/videoplayer-statistics": "1.0.53-dev.07a23d13.0"
56
56
  }
57
57
  }
@@ -2,8 +2,8 @@ import type { ISDKConfig } from '../config';
2
2
  import type { LanguageConfig } from '../translation/types';
3
3
  import type { IVideoData, IVKVideoPlayerConfig } from '../types';
4
4
  import { InterfaceLanguage, type QualityLimits } from '@vkontakte/videoplayer-shared';
5
- import type { ISources } from '@vkontakte/videoplayer-core';
6
5
  import { type PlaybackRate } from '@vkontakte/videoplayer-core';
6
+ import type { IStatContext } from '@vkontakte/videoplayer-statistics';
7
7
  import { AnnotationsApi } from '../utils/webAPI/annotationsApi/annotationsApi';
8
8
  export declare class VKVideoPlayer extends HTMLElement {
9
9
  private svelteStubComponent?;
@@ -77,12 +77,14 @@ export declare class VKVideoPlayer extends HTMLElement {
77
77
  setAutoQualityLimits(limits: QualityLimits): void;
78
78
  addLanguage(config: LanguageConfig): void;
79
79
  setLanguage(language: InterfaceLanguage | string): Promise<void>;
80
- setLiveStart(sources: ISources): void;
81
- setWaitRecord(): void;
80
+ setLiveStart(videoData: IVideoData): void;
81
+ setLiveWaitingRecover(): void;
82
+ setLiveWaitingRecord(): void;
82
83
  setLiveEnd(videoData: IVideoData): void;
83
84
  getDeviceId(): string | undefined;
84
85
  replayInteractiveVideo(): void;
85
86
  replayInteractiveChapter(callback?: () => void): Promise<void>;
86
87
  showInteractiveIndicatorTooltip(newValue: boolean, useTimeout?: boolean): void;
87
88
  switchToActiveLive(): void;
89
+ updateStatContext(statContext: Partial<IStatContext>): void;
88
90
  }
@@ -1,6 +1,6 @@
1
1
  import type { IConfig, IExternalTextTrack, IOptionalTuningConfig, IPlayer, ISources, PlaybackRate, IAudioStream, IVideoStream } from '@vkontakte/videoplayer-core';
2
2
  import { ChromecastState, PlaybackState, VideoFormat } from '@vkontakte/videoplayer-core';
3
- import { type ICurrentBrowserInfo, type IError, type ILogger, type IRectangle, type IValueObservable, type QualityLimits } from '@vkontakte/videoplayer-shared';
3
+ import { type IError, type ILogger, type IRectangle, type IValueObservable, type QualityLimits } from '@vkontakte/videoplayer-shared';
4
4
  import { InterfaceLanguage, VideoQuality } from '@vkontakte/videoplayer-shared';
5
5
  import type { IUIConfig } from '../config';
6
6
  import { SeekAction } from '@vkontakte/videoplayer-statistics';
@@ -45,6 +45,7 @@ export interface IUIState {
45
45
  pip: Writable<IControlInfo | undefined>;
46
46
  vkLogo: Writable<IControlInfo | undefined>;
47
47
  interactiveTimeIndicator: Writable<IControlInfo | undefined>;
48
+ timeline: Writable<IControlInfo | undefined>;
48
49
  disabledControls$: IDisabledControls;
49
50
  additionalButtons: Writable<IControlInfo | undefined>[];
50
51
  };
@@ -86,7 +87,6 @@ export interface IUIState {
86
87
  is3DVideo: Writable<boolean>;
87
88
  isPictureInPictureActive$: Readable<boolean>;
88
89
  pictureInPictureType$: Readable<PictureInPictureType>;
89
- clientInfo$: Readable<ICurrentBrowserInfo>;
90
90
  currentGridType$: Readable<GridTypes>;
91
91
  interactiveHideMobileControls: Writable<boolean>;
92
92
  additionalButtons$: Readable<AdditionalButton[]>;
@@ -165,7 +165,7 @@ export interface IStore {
165
165
  hasInteractiveBranches?: boolean;
166
166
  playPrevChapterDisabledTooltip: PlayPrevChapterDisabledTooltipKey;
167
167
  looped$: Writable<boolean>;
168
- isFirstBytes$: Writable<boolean>;
168
+ loadedMetadata$: Writable<boolean>;
169
169
  };
170
170
  ui: IUIState;
171
171
  ads: IAdsState;
@@ -206,8 +206,9 @@ export interface IStore {
206
206
  switchFromAdsToVideo: (callPlay?: boolean) => void;
207
207
  switchFromVideoToAds: () => void;
208
208
  skipAd: () => void;
209
- setWaitingLive: (state: boolean) => void;
210
- setWaitingRecord: (state: boolean) => void;
209
+ setLiveWaitingStart: (state: boolean) => void;
210
+ setLiveWaitingRecover: (state: boolean) => void;
211
+ setLiveWaitingRecord: (state: boolean) => void;
211
212
  clearDelayedBufferingCheckTimeout: () => void;
212
213
  getDebugTextData: () => string;
213
214
  getDebugPanelData: () => DebugData;
@@ -1,4 +1,3 @@
1
- /// <reference types="svelte" />
2
1
  import { BaseMicroStore } from './base';
3
2
  import type { InitMicroStoreParams } from '../../types';
4
3
  export default class FakeIsPlaying extends BaseMicroStore {
@@ -1,4 +1,3 @@
1
- /// <reference types="svelte" />
2
1
  import { BaseMicroStore } from './base';
3
2
  import type { InitMicroStoreParams } from '../../types';
4
3
  export default class InteractiveControlsOpacity extends BaseMicroStore {
@@ -1,4 +1,3 @@
1
- /// <reference types="svelte" />
2
1
  import { BaseMicroStore } from './base';
3
2
  import type { InitMicroStoreParams } from '../../types';
4
3
  export default class ShowInteractiveTimeIndicatorTooltip extends BaseMicroStore {
@@ -9,8 +9,8 @@ export declare const getMicroStores: () => IMicroStores;
9
9
  /**
10
10
  * Создаёт readable store svelte'а из `IObservableValue` sdk
11
11
  */
12
- export declare const storeFromObservable: <T>(observable$: IValueObservable<T>, onNewValueEmitted?: ((value: T) => void) | undefined) => Readable<T>;
13
- export declare const storeFromObservableWithInitValue: <T>(observable$: IObservable<T>, initValue: T, onNewValueEmitted?: ((value: T) => void) | undefined) => Readable<T>;
12
+ export declare const storeFromObservable: <T>(observable$: IValueObservable<T>, onNewValueEmitted?: (value: T) => void) => Readable<T>;
13
+ export declare const storeFromObservableWithInitValue: <T>(observable$: IObservable<T>, initValue: T, onNewValueEmitted?: (value: T) => void) => Readable<T>;
14
14
  export declare const constructDebugTextData: (player: IPlayer, config: IConfig, store: IStore) => string;
15
15
  export type DebugData = {
16
16
  version: string;
@@ -1,5 +1,5 @@
1
1
  import { InterfaceLanguage } from '@vkontakte/videoplayer-shared';
2
- export type Key = 'auto_quality_invariant' | 'auto_quality' | 'menu_quality' | 'menu_playback_rate' | 'menu_traffic_saving' | 'menu_report' | 'menu_pip' | 'menu_copy_video_link' | 'menu_copy_video_link_with_timestamp' | 'menu_video_rotate' | 'menu_video_loop_on' | 'menu_video_loop_off' | 'menu_chromecast' | 'menu_copy_debug' | 'menu_save_debug' | 'menu_debug_overlay' | 'menu_copy_embed_code' | 'pip_dummy_title' | 'submenu_traffic_saving' | 'submenu_quality' | 'submenu_playback_rate' | 'submenu_settings' | 'submenu_audio_languages' | 'auto_quality_option' | 'mobile_unmute' | 'playing_ads' | 'skip_ads_now' | 'skip_ads_after' | 'visit_advertiser' | 'aria_timeline' | 'aria_open_settings' | 'aria_timeline_value' | 'doubletap_seek_step' | 'playback_rate_1' | 'playback_rate' | 'video360' | 'subtitles_caption' | 'subtitles_auto' | 'subtitles_off' | 'subtitles_auto_caption' | 'subtitles_turn_on' | 'subtitles_turn_off' | 'traffic_saving_off' | 'traffic_saving_on' | 'traffic_saving_disable' | 'traffic_saving_enable' | 'traffic_saving_helper_text' | 'tooltip_previous' | 'tooltip_restart' | 'tooltip_play' | 'tooltip_pause' | 'tooltip_next' | 'tooltip_button_disabled' | 'tooltip_interactive_go_back' | 'tooltip_interactive_go_back_disabled' | 'tooltip_interactive_go_back_disabled_first' | 'tooltip_interactive_go_back_disabled_limit' | 'tooltip_chapter_without_interactive' | 'tooltip_interactive_of_chapter_completed' | 'tooltip_interactive_seek' | 'tooltip_interactive_graph_off' | 'tooltip_interactive_graph_on' | 'tooltip_live' | 'tooltip_episodes' | 'tooltip_volume' | 'tooltip_volume_muted' | 'tooltip_settings_on' | 'tooltip_subtitles_off' | 'tooltip_settings_off' | 'tooltip_subtitles_on' | 'tooltip_fullscreen_off' | 'tooltip_fullscreen_on' | 'tooltip_chromecast_off' | 'tooltip_chromecast_on' | 'tooltip_episode_finished' | 'tooltip_episode_unfinished' | 'tooltip_disabled_when_interactive' | 'tooltip_disabled_when_graph_on' | 'tooltip_interactive_interaction_time_indicator' | 'tooltip_vk_logo' | 'tooltip_vk_video_logo' | 'download_video_caption' | 'hotkey_helper_current_volume' | 'hotkey_map_modal_title' | 'hotkey_map_modal_close_btn_text' | 'hotkey_map_group_title_common' | 'hotkey_map_group_title_playback' | 'hotkey_map_group_title_subtitles' | 'hotkey_map_group_title_episodes' | 'hotkey_map_item_mute_description' | 'hotkey_map_item_mute_value' | 'hotkey_map_item_volume_down_description' | 'hotkey_map_item_volume_down_value' | 'hotkey_map_item_volume_up_description' | 'hotkey_map_item_volume_up_value' | 'hotkey_map_item_pip_description' | 'hotkey_map_item_pip_value' | 'hotkey_map_item_full_screen_description' | 'hotkey_map_item_full_screen_value' | 'hotkey_map_item_show_context_menu_description' | 'hotkey_map_item_show_context_menu_value' | 'hotkey_map_item_show_hotkey_map_description' | 'hotkey_map_item_show_hotkey_map_value' | 'hotkey_map_item_play_toggle_description' | 'hotkey_map_item_play_toggle_value' | 'hotkey_map_item_seek_backward_description' | 'hotkey_map_item_seek_backward_value' | 'hotkey_map_item_seek_forward_description' | 'hotkey_map_item_seek_forward_value' | 'hotkey_map_item_fast_seek_backward_description' | 'hotkey_map_item_fast_seek_backward_value' | 'hotkey_map_item_fast_seek_forward_description' | 'hotkey_map_item_fast_seek_forward_value' | 'hotkey_map_item_rate_down_description' | 'hotkey_map_item_rate_down_value' | 'hotkey_map_item_rate_up_description' | 'hotkey_map_item_rate_up_value' | 'hotkey_map_item_prev_frame_description' | 'hotkey_map_item_prev_frame_value' | 'hotkey_map_item_next_frame_description' | 'hotkey_map_item_next_frame_value' | 'hotkey_map_item_jump_seek_description' | 'hotkey_map_item_jump_seek_value' | 'hotkey_map_item_subtitles_toggle_description' | 'hotkey_map_item_subtitles_toggle_value' | 'hotkey_map_item_prev_episode_description' | 'hotkey_map_item_prev_episode_pc_value' | 'hotkey_map_item_prev_episode_mac_value' | 'hotkey_map_item_next_episode_description' | 'hotkey_map_item_next_episode_pc_value' | 'hotkey_map_item_next_episode_mac_value' | 'waiting_live_day_value' | 'waiting_live_hour_value' | 'waiting_live_minute_value' | 'waiting_live_second_value' | 'waiting_live_colon' | 'waiting_live_upcoming_title' | 'waiting_live_timer_title' | 'waiting_record_title' | 'aria_label_menu_traffic_saving' | 'aria_label_submenu_traffic_saving_off' | 'aria_label_submenu_traffic_saving_on' | 'aria_label_submenu_back' | 'aria_label_menu_quality' | 'aria_label_menu_rate' | 'aria_label_menu_subtitle' | 'aria_label_menu_download' | 'aria_label_new_tab_alert' | 'aria_label_menu_debug_overlay_enable' | 'aria_label_menu_debug_overlay_disable' | 'aria_label_menu_rotate' | 'aria_label_menu_loop' | 'aria_label_debug_panel' | 'aria_label_context_menu_open' | 'aria_label_context_menu_close' | 'aria_label_video_player' | 'aria_label_spherical_control' | 'aria_label_menu_audio_languages' | 'menu_audio_languages' | 'audio_stream_display_language_label' | 'audio_stream_display_language_label_index' | 'audio_stream_display_label_index' | 'audio_stream_display_language_index' | 'audio_stream_display_unknown';
2
+ export type Key = 'auto_quality_invariant' | 'auto_quality' | 'menu_quality' | 'menu_playback_rate' | 'menu_traffic_saving' | 'menu_report' | 'menu_pip' | 'menu_copy_video_link' | 'menu_copy_video_link_with_timestamp' | 'menu_video_rotate' | 'menu_video_loop_on' | 'menu_video_loop_off' | 'menu_chromecast' | 'menu_copy_debug' | 'menu_save_debug' | 'menu_debug_overlay' | 'menu_copy_embed_code' | 'pip_dummy_title' | 'submenu_traffic_saving' | 'submenu_quality' | 'submenu_playback_rate' | 'submenu_settings' | 'submenu_audio_languages' | 'auto_quality_option' | 'mobile_unmute' | 'playing_ads' | 'skip_ads_now' | 'skip_ads_after' | 'visit_advertiser' | 'aria_timeline' | 'aria_open_settings' | 'aria_timeline_value' | 'doubletap_seek_step' | 'playback_rate_1' | 'playback_rate' | 'video360' | 'subtitles_caption' | 'subtitles_auto' | 'subtitles_off' | 'subtitles_auto_caption' | 'subtitles_turn_on' | 'subtitles_turn_off' | 'traffic_saving_off' | 'traffic_saving_on' | 'traffic_saving_disable' | 'traffic_saving_enable' | 'traffic_saving_helper_text' | 'tooltip_previous' | 'tooltip_restart' | 'tooltip_play' | 'tooltip_pause' | 'tooltip_next' | 'tooltip_button_disabled' | 'tooltip_interactive_go_back' | 'tooltip_interactive_go_back_disabled' | 'tooltip_interactive_go_back_disabled_first' | 'tooltip_interactive_go_back_disabled_limit' | 'tooltip_chapter_without_interactive' | 'tooltip_interactive_of_chapter_completed' | 'tooltip_interactive_seek' | 'tooltip_interactive_graph_off' | 'tooltip_interactive_graph_on' | 'tooltip_live' | 'tooltip_episodes' | 'tooltip_volume' | 'tooltip_volume_muted' | 'tooltip_settings_on' | 'tooltip_subtitles_off' | 'tooltip_settings_off' | 'tooltip_subtitles_on' | 'tooltip_fullscreen_off' | 'tooltip_fullscreen_on' | 'tooltip_chromecast_off' | 'tooltip_chromecast_on' | 'tooltip_episode_finished' | 'tooltip_episode_unfinished' | 'tooltip_disabled_when_interactive' | 'tooltip_disabled_when_graph_on' | 'tooltip_interactive_interaction_time_indicator' | 'tooltip_vk_logo' | 'tooltip_vk_video_logo' | 'download_video_caption' | 'hotkey_helper_current_volume' | 'hotkey_map_modal_title' | 'hotkey_map_modal_close_btn_text' | 'hotkey_map_group_title_common' | 'hotkey_map_group_title_playback' | 'hotkey_map_group_title_subtitles' | 'hotkey_map_group_title_episodes' | 'hotkey_map_item_mute_description' | 'hotkey_map_item_mute_value' | 'hotkey_map_item_volume_down_description' | 'hotkey_map_item_volume_down_value' | 'hotkey_map_item_volume_up_description' | 'hotkey_map_item_volume_up_value' | 'hotkey_map_item_pip_description' | 'hotkey_map_item_pip_value' | 'hotkey_map_item_full_screen_description' | 'hotkey_map_item_full_screen_value' | 'hotkey_map_item_show_context_menu_description' | 'hotkey_map_item_show_context_menu_value' | 'hotkey_map_item_show_hotkey_map_description' | 'hotkey_map_item_show_hotkey_map_value' | 'hotkey_map_item_play_toggle_description' | 'hotkey_map_item_play_toggle_value' | 'hotkey_map_item_seek_backward_description' | 'hotkey_map_item_seek_backward_value' | 'hotkey_map_item_seek_forward_description' | 'hotkey_map_item_seek_forward_value' | 'hotkey_map_item_fast_seek_backward_description' | 'hotkey_map_item_fast_seek_backward_value' | 'hotkey_map_item_fast_seek_forward_description' | 'hotkey_map_item_fast_seek_forward_value' | 'hotkey_map_item_rate_down_description' | 'hotkey_map_item_rate_down_value' | 'hotkey_map_item_rate_up_description' | 'hotkey_map_item_rate_up_value' | 'hotkey_map_item_prev_frame_description' | 'hotkey_map_item_prev_frame_value' | 'hotkey_map_item_next_frame_description' | 'hotkey_map_item_next_frame_value' | 'hotkey_map_item_jump_seek_description' | 'hotkey_map_item_jump_seek_value' | 'hotkey_map_item_subtitles_toggle_description' | 'hotkey_map_item_subtitles_toggle_value' | 'hotkey_map_item_prev_episode_description' | 'hotkey_map_item_prev_episode_pc_value' | 'hotkey_map_item_prev_episode_mac_value' | 'hotkey_map_item_next_episode_description' | 'hotkey_map_item_next_episode_pc_value' | 'hotkey_map_item_next_episode_mac_value' | 'waiting_live_day_value' | 'waiting_live_hour_value' | 'waiting_live_minute_value' | 'waiting_live_second_value' | 'waiting_live_colon' | 'waiting_live_upcoming_title' | 'waiting_live_timer_title' | 'waiting_live_recover_title' | 'waiting_record_title' | 'aria_label_menu_traffic_saving' | 'aria_label_submenu_traffic_saving_off' | 'aria_label_submenu_traffic_saving_on' | 'aria_label_submenu_back' | 'aria_label_menu_quality' | 'aria_label_menu_rate' | 'aria_label_menu_subtitle' | 'aria_label_menu_download' | 'aria_label_new_tab_alert' | 'aria_label_menu_debug_overlay_enable' | 'aria_label_menu_debug_overlay_disable' | 'aria_label_menu_rotate' | 'aria_label_menu_loop' | 'aria_label_debug_panel' | 'aria_label_context_menu_open' | 'aria_label_context_menu_close' | 'aria_label_video_player' | 'aria_label_spherical_control' | 'aria_label_menu_audio_languages' | 'menu_audio_languages' | 'audio_stream_display_language_label' | 'audio_stream_display_language_label_index' | 'audio_stream_display_label_index' | 'audio_stream_display_language_index' | 'audio_stream_display_unknown';
3
3
  export type LanguagePack = Record<Key, string>;
4
4
  export type LanguageConfig = {
5
5
  language: string;
@@ -52,6 +52,7 @@ export interface IVKVideoPlayerCallbacks {
52
52
  onDisabledInteractiveClick?: () => void;
53
53
  onDisabledPlayPrevChapterClick?: (message: string | undefined) => void;
54
54
  onDisabledSeekToInteractiveClick?: (message: string | undefined) => void;
55
+ onDisabledTimelineClick?: (position: number) => void;
55
56
  onInteractiveTimeIndicatorClick?: () => void;
56
57
  onInteractiveTimeIndicatorHintDeactivated?: () => void;
57
58
  onExternalFullscreenExit?: () => void;
@@ -62,6 +63,7 @@ export interface IVKVideoPlayerCallbacks {
62
63
  onStalledChanged?: (isStalled: boolean) => void;
63
64
  onLogoClicked?: () => void;
64
65
  onCopyEmbedCodeClicked?: () => string;
66
+ onVSIDChanged?: (vsid?: string) => void;
65
67
  uiInfo?: {
66
68
  onControlsVisibleChanged?: (value?: boolean) => void;
67
69
  onIsMobileChanged?: (value?: boolean) => void;
@@ -82,6 +84,7 @@ export interface IVKVideoPlayerCallbacks {
82
84
  onChromecastChanged?: (value?: IControlInfo) => void;
83
85
  onPipChanged?: (value?: IControlInfo) => void;
84
86
  onVkLogoChanged?: (value?: IControlInfo) => void;
87
+ onTimelineChanged?: (value?: IControlInfo) => void;
85
88
  onInteractiveTimeIndicatorChanged?: (value?: IControlInfo) => void;
86
89
  onPlayerSizeChanged?: (value?: {
87
90
  width: number;
@@ -220,6 +223,7 @@ export interface IVKVideoPlayerConfig {
220
223
  refDomain?: string;
221
224
  volumeMultiplier?: number;
222
225
  saveRate?: boolean;
226
+ deviceId?: string;
223
227
  }
224
228
  export interface IControlInfo {
225
229
  /** @deprecated Используйте новое поле left */
@@ -252,6 +256,7 @@ export interface IPlayerControlsRef {
252
256
  pip?: HTMLElement;
253
257
  vkLogo?: HTMLElement;
254
258
  interactiveTimeIndicator?: HTMLElement;
259
+ timeline?: HTMLElement;
255
260
  }
256
261
  export interface IPlayerDesktopControlsWidth {
257
262
  prevButton: number;
@@ -278,8 +283,9 @@ export declare const enum PlayerPhase {
278
283
  Video = "video",
279
284
  Ads = "ads",
280
285
  Crashed = "crashed",
281
- WaitingLive = "waitingLive",
282
- WaitingRecord = "waitingRecord"
286
+ LiveWaitingStart = "LiveWaitingStart",
287
+ LiveWaitingRecover = "LiveWaitingRecover",
288
+ LiveWaitingRecord = "LiveWaitingRecord"
283
289
  }
284
290
  export declare const enum AdsSection {
285
291
  Preroll = "preroll",
@@ -1,6 +1,6 @@
1
1
  export declare const isAvailableVolumeChange: ({ isAudioDisabled, audioDisabledHintCallback, isAudioAvailable, audioIsNotExistHintCallback, }: {
2
2
  isAudioDisabled: boolean;
3
- audioDisabledHintCallback?: (() => void) | undefined;
3
+ audioDisabledHintCallback?: () => void;
4
4
  isAudioAvailable: boolean;
5
- audioIsNotExistHintCallback?: (() => void) | undefined;
5
+ audioIsNotExistHintCallback?: () => void;
6
6
  }) => boolean;
@@ -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) => VideoSubtitleParsed | undefined;
@@ -1,3 +1,3 @@
1
1
  import type { IPlayerControlsRef } from '../types';
2
2
  import { type IUIState } from '../store';
3
- export declare const updatePlayerControlsInfo: (videoElement: HTMLVideoElement | null, controls: IUIState['controls'], controlsRef: IPlayerControlsRef, showControls: boolean) => void;
3
+ export declare const updatePlayerControlsInfo: (videoElement: HTMLVideoElement | null, controls: IUIState["controls"], controlsRef: IPlayerControlsRef, showControls: boolean) => void;
@@ -1,8 +1,14 @@
1
1
  import type { MediaSessionApiActionHandler, MediaSessionApiMetadata } from '../../types';
2
+ import type { IStore } from '../../store';
2
3
  export declare class MediaSessionApi {
4
+ private subscription;
5
+ constructor();
3
6
  isSupported(): boolean;
4
7
  setMetaData({ title, artist, thumbUrl }: MediaSessionApiMetadata): void;
5
8
  updateActionHandlers(actionHandlers: MediaSessionApiActionHandler[]): void;
6
9
  private resetActionHandlers;
7
10
  private setActionHandlers;
11
+ attachToStore(store?: IStore): void;
12
+ clearSubscriptions(): void;
13
+ destroy(): void;
8
14
  }
@@ -1,2 +0,0 @@
1
- import type { ICurrentBrowserInfo } from '@vkontakte/videoplayer-shared';
2
- export declare const isIphoneOrOldIpad: (clientInfo: ICurrentBrowserInfo) => boolean;