@vkontakte/videoplayer 1.1.71-dev.69616eb7.0 → 1.1.71-dev.7e2bd993.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.71-dev.69616eb7.0",
3
+ "version": "1.1.71-dev.7e2bd993.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.140-dev.48b25e6e.0",
59
- "@vkontakte/videoplayer-interactive": "1.0.46-dev.a9df35ef.0",
60
- "@vkontakte/videoplayer-shared": "1.0.68-dev.dedf71f0.0",
61
- "@vkontakte/videoplayer-statistics": "1.0.86-dev.f71642f8.0"
58
+ "@vkontakte/videoplayer-core": "2.0.140-dev.7e2bd993.0",
59
+ "@vkontakte/videoplayer-interactive": "1.0.46-dev.7e2bd993.0",
60
+ "@vkontakte/videoplayer-shared": "1.0.68-dev.7e2bd993.0",
61
+ "@vkontakte/videoplayer-statistics": "1.0.86-dev.7e2bd993.0"
62
62
  }
63
63
  }
@@ -22,6 +22,7 @@ export declare class VKVideoPlayer extends HTMLElement {
22
22
  private playerContainer;
23
23
  private rootContainer;
24
24
  private shadowRootContainer;
25
+ private playerId;
25
26
  private uiConfig;
26
27
  private coreConfig;
27
28
  private statisticsConfig;
@@ -16,6 +16,7 @@ export interface RootProps {
16
16
  interactiveContainer: HTMLElement | undefined;
17
17
  interactiveController: Interactives | undefined;
18
18
  subtitles: Omit<IExternalTextTrack, 'type'>[] | undefined;
19
+ subtitlesDefaultLanguage?: string;
19
20
  live: IVideoLive | undefined;
20
21
  preload: boolean;
21
22
  autoplay: boolean;
package/types/config.d.ts CHANGED
@@ -187,6 +187,10 @@ export interface IUIConfig {
187
187
  * например, звуковой дорожки и субтитров
188
188
  */
189
189
  userVideoPrefs: boolean;
190
+ /**
191
+ * сохраняет выбранные состояния плеера в localStorage только от user actions
192
+ */
193
+ savePreferredStatesOnUserActionOnly: boolean;
190
194
  };
191
195
  interactive: {
192
196
  historyMaxLength: number;
@@ -140,6 +140,7 @@ export interface IWebApi {
140
140
  export interface IStore {
141
141
  initVideo: (config: IConfig & {
142
142
  subtitles?: Omit<IExternalTextTrack, 'type'>[];
143
+ subtitlesDefaultLanguage?: string;
143
144
  }) => void;
144
145
  videoId?: number;
145
146
  isClip: boolean;
@@ -230,6 +231,7 @@ export interface IStore {
230
231
  setTrafficSavingEnabled: (trafficSavingEnabled: boolean, appliesTo?: QualitySettingsAppliesTo) => void;
231
232
  setHighQualityEnabled: (highQualityEnabled: boolean, appliesTo?: QualitySettingsAppliesTo) => void;
232
233
  setVolume: (volume: number) => void;
234
+ setMuted: (muted: boolean) => void;
233
235
  startVolumeChanging: () => void;
234
236
  stopVolumeChanging: () => void;
235
237
  setAudioStream: (stream: IAudioStream) => void;
@@ -291,7 +293,6 @@ export interface IStore {
291
293
  nextVideoAnnouncementClick: () => void;
292
294
  nextVideoAnnouncementAuto: () => void;
293
295
  nextVideoAnnouncementCancel: () => void;
294
- checkFullscreenSupport: () => boolean;
295
296
  };
296
297
  external: {
297
298
  firstStart: (showAds: boolean) => void;
@@ -361,10 +362,11 @@ interface IStoreParams {
361
362
  saveRate: boolean;
362
363
  internalsExposure: InternalsExposure | null;
363
364
  playerView?: VideoPlayerView;
365
+ playerId: string;
364
366
  }
365
367
  /**
366
368
  * Store приложения.
367
369
  * Если будет слишком большим - можно разделить его на модули
368
370
  */
369
- export declare const createStore: ({ interfaceLanguage, isCyrillicRelatedInterface, videoId, isClip, isLiveCatchUpMode, statAuthToken, isAudioDisabled, canDownload, callbacks, webApi, videoEpisodes, previewThumbsData, uiConfig, coreConfig, player: playerInstance, disabledControls, isInteractive, interactiveRanges$, isInteractiveTime$, replayInteractive, stopPlayer, hasInteractiveBranches, playPrevChapterDisabledTooltip, additionalButtons, additionalSettingsMenuItems, additionalContextMenuItems, playPrevVideo, playNextVideo, looped, statistics: uiStatistics, saveRate, internalsExposure, playerView, }: IStoreParams) => IStore;
371
+ export declare const createStore: ({ interfaceLanguage, isCyrillicRelatedInterface, videoId, isClip, isLiveCatchUpMode, statAuthToken, isAudioDisabled, canDownload, callbacks, webApi, videoEpisodes, previewThumbsData, uiConfig, coreConfig, player: playerInstance, disabledControls, isInteractive, interactiveRanges$, isInteractiveTime$, replayInteractive, stopPlayer, hasInteractiveBranches, playPrevChapterDisabledTooltip, additionalButtons, additionalSettingsMenuItems, additionalContextMenuItems, playPrevVideo, playNextVideo, looped, statistics: uiStatistics, saveRate, internalsExposure, playerView, playerId, }: IStoreParams) => IStore;
370
372
  export {};
@@ -203,6 +203,7 @@ export interface IVideoDataBase {
203
203
  previewThumbsData?: ITimelinePreviewThumbsData;
204
204
  isClip?: boolean;
205
205
  subtitles?: Array<Omit<IExternalTextTrack, 'type'>>;
206
+ subtitlesDefaultLanguage?: string;
206
207
  sources?: ISources;
207
208
  live?: IVideoLive;
208
209
  }
@@ -290,6 +291,7 @@ export interface IVKVideoPlayerConfig {
290
291
  volumeMultiplier?: number;
291
292
  saveRate?: boolean;
292
293
  deviceId?: string;
294
+ playerId?: string;
293
295
  showEndScreen?: boolean;
294
296
  showAutoplayNext?: boolean;
295
297
  showNextPrevButtons?: boolean;
@@ -1,12 +1,9 @@
1
1
  interface DocumentWithFullscreen extends HTMLDocument {
2
+ mozFullScreenElement?: Element;
2
3
  msFullscreenElement?: Element;
3
- msFullscreenEnabled?: boolean;
4
+ webkitFullscreenElement?: Element;
4
5
  msExitFullscreen?: () => Promise<void>;
5
- mozFullScreenElement?: Element;
6
- mozFullscreenEnabled?: boolean;
7
6
  mozCancelFullScreen?: () => Promise<void>;
8
- webkitFullscreenElement?: Element;
9
- webkitFullscreenEnabled?: boolean;
10
7
  webkitExitFullscreen?: () => Promise<void>;
11
8
  }
12
9
  interface DocumentElementWithFullscreen extends HTMLElement {
@@ -16,7 +13,7 @@ interface DocumentElementWithFullscreen extends HTMLElement {
16
13
  }
17
14
  export declare const requestFullscreen: (element: DocumentElementWithFullscreen) => Promise<void>;
18
15
  export declare const exitFullscreen: (doc: DocumentWithFullscreen) => Promise<void>;
19
- export declare const isSupported: (doc: DocumentWithFullscreen, videoElement: HTMLVideoElement | null) => boolean;
16
+ export declare const isSupported: (doc: DocumentWithFullscreen) => boolean;
20
17
  export declare const exitIosSafariVideoElementFullscreen: (videoElement: HTMLVideoElement) => void;
21
18
  export declare const getDocumentFullscreenElement: () => Element | undefined;
22
19
  export declare const checkIsFullscreen: () => boolean;