@vkontakte/videoplayer-core 2.0.176-dev.20c0d4fde.0 → 2.0.176-dev.cd7b50b61.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 +4 -4
- package/es2015.esm.js +16 -16
- package/esnext.cjs +4 -4
- package/esnext.esm.js +8 -8
- package/evergreen.esm.js +15 -15
- package/package.json +2 -2
- package/types/index.d.ts +1 -4
- package/types/utils/tuningConfig.d.ts +0 -7
- package/types/utils/warmUpSources.d.ts +0 -21
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vkontakte/videoplayer-core",
|
|
3
|
-
"version": "2.0.176-dev.
|
|
3
|
+
"version": "2.0.176-dev.cd7b50b61.0",
|
|
4
4
|
"author": "vk.ru",
|
|
5
5
|
"description": "Videoplayer core library based on the vk.ru platform",
|
|
6
6
|
"homepage": "https://vk.ru",
|
|
@@ -42,6 +42,6 @@
|
|
|
42
42
|
"**/*.d.ts"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@vkontakte/videoplayer-shared": "1.0.105-dev.
|
|
45
|
+
"@vkontakte/videoplayer-shared": "1.0.105-dev.cd7b50b61.0"
|
|
46
46
|
}
|
|
47
47
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -3,8 +3,6 @@ import type { IMpegSource, IDashSource, IHLSSource, IDashURLSource, IHLSLiveSour
|
|
|
3
3
|
import type { VideoCodec } from "./player/types";
|
|
4
4
|
import { VideoFormat, Surface, PredefinedQualityLimits, VideoCodecName } from "./player/types";
|
|
5
5
|
import Player from "./player/Player";
|
|
6
|
-
import warmUpSources from "./utils/warmUpSources";
|
|
7
|
-
import type { IWarmUp, IWarmUpTargets } from "./utils/warmUpSources";
|
|
8
6
|
import type { IPlayer, IPlayerInfo, IPlayerEvents, IConfig, ISources, ICueSettings, IExternalTextTrack, ITextTrack, PlaybackRate, IVideoStream, IAudioStream, StartEnd, HttpConnectionMetrics, HttpDownloadMetrics } from "./player/types";
|
|
9
7
|
import { PlaybackState, ChromecastState, HttpConnectionType } from "./player/types";
|
|
10
8
|
import type { IOptionalTuningConfig } from "./utils/tuningConfig";
|
|
@@ -18,5 +16,4 @@ import { Subscription, Observable, Subject, ValueSubject, VideoQuality } from "@
|
|
|
18
16
|
*/
|
|
19
17
|
declare const SDK_VERSION: string;
|
|
20
18
|
export type { IPlayer, IPlayerInfo, IPlayerEvents, IConfig, IOptionalTuningConfig, ILogEntry, ISources, IExternalTextTrack, ITextTrack, ISubscription, IUnsubscriber, IObservable, IEmitter, IValueObservable, IValue, IOperator, IListener, IMpegSource, IDashSource, IDashURLSource, IHLSSource, IHLSLiveSource, URLSource, RawSource, URLSourceWithSeek, ExactVideoQuality, IRange, ISeekRequest, ICueSettings, PlaybackRate, IVideoStream, IAudioStream, StartEnd, HttpConnectionMetrics, HttpDownloadMetrics };
|
|
21
|
-
export
|
|
22
|
-
export { Player, warmUpSources, PlaybackState, ChromecastState, HttpConnectionType, Surface, Subscription, VideoFormat, VideoQuality, Observable, Subject, ValueSubject, VERSION, SDK_VERSION, PredefinedQualityLimits, VideoCodec, VideoCodecName };
|
|
19
|
+
export { Player, PlaybackState, ChromecastState, HttpConnectionType, Surface, Subscription, VideoFormat, VideoQuality, Observable, Subject, ValueSubject, VERSION, SDK_VERSION, PredefinedQualityLimits, VideoCodec, VideoCodecName };
|
|
@@ -475,13 +475,6 @@ export type ITuningConfig = {
|
|
|
475
475
|
*/
|
|
476
476
|
useUrlCacheMechanism?: boolean;
|
|
477
477
|
/**
|
|
478
|
-
* Прогревать ли соединение к хостам раздачи. **Сам SDK этот флаг не читает** — прогрев живёт
|
|
479
|
-
* в `warmUpSources`, а зовёт её потребитель: внутри SDK запаса времени до первого запроса нет.
|
|
480
|
-
* Флаг лежит здесь, чтобы раскаткой управлял тот же ключ конфига плеера, что и остальными
|
|
481
|
-
* экспериментами, а не отдельная ручка на каждом потребителе.
|
|
482
|
-
*/
|
|
483
|
-
usePreconnectSources?: boolean;
|
|
484
|
-
/**
|
|
485
478
|
* Очищаем кэш урлов при падение провайдера.
|
|
486
479
|
*/
|
|
487
480
|
dropUrlCacheWhenProviderCrashed?: boolean;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { ISources } from "../player/types";
|
|
2
|
-
export interface IWarmUpTargets {
|
|
3
|
-
preconnect: string[];
|
|
4
|
-
dnsPrefetch: string[];
|
|
5
|
-
}
|
|
6
|
-
export interface IWarmUp {
|
|
7
|
-
applied: IWarmUpTargets;
|
|
8
|
-
destroy: () => void;
|
|
9
|
-
}
|
|
10
|
-
interface IOptions {
|
|
11
|
-
failoverHosts?: string[];
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Прогрев соединения к хостам раздачи по готовым `sources` — до того, как создан плеер.
|
|
15
|
-
*
|
|
16
|
-
* Экономия равна запасу времени до первого запроса, поэтому звать имеет смысл там, где `sources`
|
|
17
|
-
* появились сильно раньше плеера: сразу после ответа API у потребителя. Сам SDK прогрев не вызывает,
|
|
18
|
-
* а флаг `tuning.usePreconnectSources` нужен потребителю, чтобы раскаткой управлял конфиг плеера.
|
|
19
|
-
*/
|
|
20
|
-
declare const _default: (sources: ISources, { failoverHosts }?: IOptions) => IWarmUp;
|
|
21
|
-
export default _default;
|