@vkontakte/videoplayer 1.1.111 → 1.1.112-dev.111b83b80.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.111",
3
+ "version": "1.1.112-dev.111b83b80.0",
4
4
  "author": "vk.ru",
5
5
  "description": "Videoplayer based on the vk.ru platform",
6
6
  "homepage": "https://vk.ru",
@@ -43,9 +43,9 @@
43
43
  ],
44
44
  "dependencies": {
45
45
  "@adtech/rbadman": "2.2.57",
46
- "@vkontakte/videoplayer-core": "2.0.180",
47
- "@vkontakte/videoplayer-interactive": "1.0.86",
48
- "@vkontakte/videoplayer-shared": "1.0.109",
49
- "@vkontakte/videoplayer-statistics": "1.0.126"
46
+ "@vkontakte/videoplayer-core": "2.0.181-dev.111b83b80.0",
47
+ "@vkontakte/videoplayer-interactive": "1.0.87-dev.111b83b80.0",
48
+ "@vkontakte/videoplayer-shared": "1.0.110-dev.111b83b80.0",
49
+ "@vkontakte/videoplayer-statistics": "1.0.127-dev.111b83b80.0"
50
50
  }
51
51
  }
@@ -7,7 +7,6 @@ import type { Readable, Writable } from "svelte/store";
7
7
  import type { IPlayer, ITextTrack } from "@vkontakte/videoplayer-core";
8
8
  import type { ISubscription, ITracer } from "@vkontakte/videoplayer-shared";
9
9
  import type { AppTracer } from "@vkontakte/videoplayer-shared";
10
- import { Subject } from "@vkontakte/videoplayer-shared";
11
10
  import type { VideoSubtitle, VideoSubtitleParsed, AvailableVideoSubtitle } from "../../../types";
12
11
  import type { IUIConfig } from "../../../config";
13
12
  import type { TSignature } from "../../../translation/types";
@@ -112,15 +111,6 @@ export interface SubtitlesStore {
112
111
  actions: SubtitlesStoreInternalActions;
113
112
  /** Экшены для внешнего использования */
114
113
  externalActions: SubtitlesStoreExternalActions;
115
- /** События для статистики */
116
- events: {
117
- actionSetSubtitle$: Subject<string>;
118
- actionSubtitlesSwitched$: Subject<{
119
- enabled: boolean;
120
- lang: string;
121
- auto: boolean;
122
- }>;
123
- };
124
114
  /** Очистка ресурсов */
125
115
  destroy(): void;
126
116
  }
@@ -3,5 +3,6 @@ interface Params {
3
3
  store: EnrichedStore;
4
4
  getFullscreenTarget: () => HTMLElement;
5
5
  }
6
- export declare const useIosSafariFullscreenSubtitles: ({ store, getFullscreenTarget }: Params) => void;
6
+ export declare const syncIosSafariFullscreenSubtitles: ({ store, getFullscreenTarget }: Params) => VoidFunction;
7
+ export declare const useIosSafariFullscreenSubtitles: (params: Params) => void;
7
8
  export {};
@@ -3,8 +3,12 @@ export declare class NativeSubtitles {
3
3
  private readonly video;
4
4
  constructor(video: HTMLVideoElement);
5
5
  private getTracksArray;
6
- attach(track: ITextTrack, showing?: boolean): void;
6
+ private static syncAttribute;
7
+ private attach;
8
+ setTracks(tracks: ITextTrack[]): void;
9
+ private getBrowserTracks;
10
+ select(id: string | null): void;
11
+ getBrowserShowingLanguage(): string | undefined;
7
12
  detachAll(): void;
8
- updateSrc(track: ITextTrack): void;
9
- getCurrentShowingId(): string | null;
13
+ getShowingIds(): string[];
10
14
  }