@vkontakte/videoplayer-tv 1.0.14-dev.0bbcbb01d.0 → 1.0.14-dev.89cc5ad2a.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/es2015.cjs +9 -9
- package/es2015.esm.js +10 -10
- package/esnext.cjs +6 -6
- package/esnext.esm.js +9 -9
- package/evergreen.esm.js +9 -9
- package/package.json +4 -4
- package/types/components/Ads/admanWrapper.d.ts +1 -0
- package/types/components/Ads/types.d.ts +1 -0
- package/types/config.d.ts +5 -0
- package/types/store/index.d.ts +1 -1
- package/types/store/subtitles.d.ts +1 -1
- package/types/store/types.d.ts +5 -10
- package/types/services/DeviceCapabilities.d.ts +0 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vkontakte/videoplayer-tv",
|
|
3
|
-
"version": "1.0.14-dev.
|
|
3
|
+
"version": "1.0.14-dev.89cc5ad2a.0",
|
|
4
4
|
"author": "vk.com",
|
|
5
5
|
"description": "Videoplayer for smart TV based on the vk.com platform",
|
|
6
6
|
"homepage": "https://vk.com",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"**/*.d.ts"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@vkontakte/videoplayer-core": "2.0.164-dev.
|
|
46
|
-
"@vkontakte/videoplayer-shared": "1.0.93-dev.
|
|
47
|
-
"@vkontakte/videoplayer-statistics": "1.0.110-dev.
|
|
45
|
+
"@vkontakte/videoplayer-core": "2.0.164-dev.89cc5ad2a.0",
|
|
46
|
+
"@vkontakte/videoplayer-shared": "1.0.93-dev.89cc5ad2a.0",
|
|
47
|
+
"@vkontakte/videoplayer-statistics": "1.0.110-dev.89cc5ad2a.0"
|
|
48
48
|
}
|
|
49
49
|
}
|
package/types/config.d.ts
CHANGED
|
@@ -45,6 +45,11 @@ export interface IUIConfig {
|
|
|
45
45
|
useAdmanFromNPM: boolean;
|
|
46
46
|
volumeMultiplier: number;
|
|
47
47
|
isVsidOriginal: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Пропускать no-fill рекламу (баннер с нулевой длительностью).
|
|
50
|
+
* Если true — started$ не стреляется, видео сразу продолжает воспроизведение.
|
|
51
|
+
*/
|
|
52
|
+
skipNoFillAds: boolean;
|
|
48
53
|
};
|
|
49
54
|
/**
|
|
50
55
|
* Если нет ранее сохранённого значения громкости будет использовано это
|
package/types/store/index.d.ts
CHANGED
|
@@ -2,4 +2,4 @@ import type { IStore, IStoreParams } from "./types";
|
|
|
2
2
|
/**
|
|
3
3
|
* Store приложения.
|
|
4
4
|
*/
|
|
5
|
-
export declare const createStore: ({ interfaceLanguage, isCyrillicRelatedInterface, videoId, isLiveCatchUpMode, statAuthToken, isAudioDisabled, callbacks, uiConfig, coreConfig, stopPlayer, looped, statistics: uiStatistics, saveRate, internalsExposure, playerId, metaConfig, app, video,
|
|
5
|
+
export declare const createStore: ({ interfaceLanguage, isCyrillicRelatedInterface, videoId, isLiveCatchUpMode, statAuthToken, isAudioDisabled, callbacks, uiConfig, coreConfig, stopPlayer, looped, statistics: uiStatistics, saveRate, internalsExposure, playerId, metaConfig, app, video, subtitlesForcedLanguage, getLiveApi, errorTracer }: IStoreParams) => IStore;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { SubtitlesStore, SubtitlesStoreParams } from "./types";
|
|
2
|
-
export declare function subtitlesCreate({ subscription, i18n, tracer, interfaceLanguageUpdated$, availableTextTracks$, player, interfaceLanguage$, positionExact$, currentPlaybackRate$, isPlaying
|
|
2
|
+
export declare function subtitlesCreate({ subscription, i18n, tracer, interfaceLanguageUpdated$, availableTextTracks$, player, interfaceLanguage$, positionExact$, currentPlaybackRate$, isPlaying, videoElement, callbacks, uiStatistics, subtitlesForcedLanguage }: SubtitlesStoreParams): SubtitlesStore;
|
package/types/store/types.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type Readable, type Writable } from "svelte/store";
|
|
2
|
-
import { type AdsPlaybackState, type ITVPlayerConfig, type IVideoData, type IVideoDataWithLive, type IVKVideoPlayerCallbacks, type IVKVideoPlayerUICallbacks, type
|
|
3
|
-
import type { PlaybackState } from "@vkontakte/videoplayer-core";
|
|
2
|
+
import { type AdsPlaybackState, type ITVPlayerConfig, type IVideoData, type IVideoDataWithLive, type IVKVideoPlayerCallbacks, type IVKVideoPlayerUICallbacks, type PlayerPhase, type VideoPlaybackRate, type VideoQualityForRender, type VideoQualityUI, type VideoSubtitle, type VideoSubtitleParsed } from "../types";
|
|
4
3
|
import { type IAudioStream, type IConfig, type IDashURLSource, type IExternalTextTrack, type IHLSLiveSource, type IHLSSource, type IMpegSource, type IOptionalTuningConfig, type IPlayer, type ITextTrack, type IVideoStream, type PlaybackRate, type URLSource } from "@vkontakte/videoplayer-core";
|
|
5
4
|
import { type IComponentLogger, type IError, type ILogger, type InterfaceLanguage, type InternalsExposure, type IRectangle, type ISubscription, type ITracer, type IValueObservable, type QualityLimits, type Subject, type Subscription, type ValueSubject, type VideoQuality } from "@vkontakte/videoplayer-shared";
|
|
6
5
|
import type { Key, LanguageConfig } from "../translation/types";
|
|
@@ -10,7 +9,6 @@ import type { AdmanWrapper } from "../components/Ads/admanWrapper";
|
|
|
10
9
|
import type { ISDKConfig, IUIConfig } from "../config";
|
|
11
10
|
import type { UIOneStat } from "../services/statistics";
|
|
12
11
|
import type { AndroidTvPlayer } from "../AndroidTvPlayer";
|
|
13
|
-
import type { DeviceCapabilities } from "../services/DeviceCapabilities";
|
|
14
12
|
import type { SeekAction, ThinOneStat } from "@vkontakte/videoplayer-statistics";
|
|
15
13
|
import type { t as globalT } from "../translation";
|
|
16
14
|
import type { UiTracer } from "../services/UiTracer";
|
|
@@ -178,9 +176,6 @@ export type PlayerState = {
|
|
|
178
176
|
positionExact$: Readable<number>;
|
|
179
177
|
positionWithScrubbing$: Readable<number>;
|
|
180
178
|
duration$: Readable<number>;
|
|
181
|
-
playbackState$: Readable<PlaybackState | undefined>;
|
|
182
|
-
playbackStateRealistic$: Readable<PlaybackStateRealistic | undefined>;
|
|
183
|
-
isPlaying$: Readable<boolean>;
|
|
184
179
|
bufferedProgress$: Readable<number>;
|
|
185
180
|
isLive$: Readable<boolean | undefined>;
|
|
186
181
|
canChangePlaybackSpeed$: Readable<boolean | undefined>;
|
|
@@ -265,6 +260,7 @@ export interface IStore {
|
|
|
265
260
|
i18n: (key: Key, params?: Record<string, string>) => string;
|
|
266
261
|
app: AndroidTvPlayer;
|
|
267
262
|
video: IVideoData;
|
|
263
|
+
isPlaying: Readable<boolean>;
|
|
268
264
|
playerState: PlayerState;
|
|
269
265
|
ui: IUIState;
|
|
270
266
|
subtitles: {
|
|
@@ -332,7 +328,6 @@ export interface IStore {
|
|
|
332
328
|
getAdmanWrapper: () => AdmanWrapper;
|
|
333
329
|
getLogger: () => ILogger;
|
|
334
330
|
getPlayer: () => IPlayer;
|
|
335
|
-
deviceCapabilities: DeviceCapabilities;
|
|
336
331
|
destroy(): void;
|
|
337
332
|
}
|
|
338
333
|
export interface IStoreParams {
|
|
@@ -354,7 +349,6 @@ export interface IStoreParams {
|
|
|
354
349
|
playerId: string;
|
|
355
350
|
app: AndroidTvPlayer;
|
|
356
351
|
video: IVideoData;
|
|
357
|
-
deviceCapabilities: DeviceCapabilities;
|
|
358
352
|
subtitlesForcedLanguage?: string;
|
|
359
353
|
getLiveApi?: GetLiveApi;
|
|
360
354
|
errorTracer: UiTracer;
|
|
@@ -423,6 +417,7 @@ export type SubscriptionStoreParams = {
|
|
|
423
417
|
export type SubscriptionStore = {
|
|
424
418
|
state: {
|
|
425
419
|
duration$: Readable<number>;
|
|
420
|
+
isPlaying: Readable<boolean>;
|
|
426
421
|
};
|
|
427
422
|
actions: {
|
|
428
423
|
setUiCallbacks: (payload: IVKVideoPlayerUICallbacks) => void;
|
|
@@ -438,7 +433,7 @@ export type SubtitlesStoreParams = {
|
|
|
438
433
|
interfaceLanguage$: Writable<string>;
|
|
439
434
|
positionExact$: Readable<number>;
|
|
440
435
|
currentPlaybackRate$: Readable<number>;
|
|
441
|
-
isPlaying
|
|
436
|
+
isPlaying: Readable<boolean>;
|
|
442
437
|
videoElement: Writable<HTMLVideoElement | null>;
|
|
443
438
|
callbacks?: IVKVideoPlayerCallbacks;
|
|
444
439
|
uiStatistics?: UIOneStat;
|
|
@@ -471,7 +466,7 @@ export type LiveStore = {
|
|
|
471
466
|
destroy(): void;
|
|
472
467
|
};
|
|
473
468
|
};
|
|
474
|
-
export type _CallApiOverload = { [Method in keyof ILiveApi]
|
|
469
|
+
export type _CallApiOverload = { [Method in keyof ILiveApi]: {
|
|
475
470
|
method: Method;
|
|
476
471
|
args: Parameters<ILiveApi[Method]>;
|
|
477
472
|
return: ReturnType<ILiveApi[Method]>;
|