@vkontakte/videoplayer-core 2.0.67 → 2.0.68
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.js +4 -4
- package/es2015.esm.js +4 -4
- package/es2018.cjs.js +4 -4
- package/es2018.esm.js +4 -4
- package/esnext.cjs.js +4 -4
- package/esnext.esm.js +4 -4
- package/package.json +2 -2
- package/player/types.d.ts +9 -8
- package/providers/ProviderContainer/utils/formatsSupport.d.ts +2 -1
- package/utils/buffer/isPositionBuffered.d.ts +3 -0
- package/utils/tuningConfig.d.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vkontakte/videoplayer-core",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.68",
|
|
4
4
|
"author": "vk.com",
|
|
5
5
|
"description": "Videoplayer core library based on the vk.com platform",
|
|
6
6
|
"homepage": "https://vk.com",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"**/*.d.ts"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@vkontakte/videoplayer-shared": "^1.0.
|
|
42
|
+
"@vkontakte/videoplayer-shared": "^1.0.17",
|
|
43
43
|
"dashjs": "4.4.1",
|
|
44
44
|
"hls.js": "1.2.1",
|
|
45
45
|
"lodash": "4.17.21"
|
package/player/types.d.ts
CHANGED
|
@@ -312,16 +312,12 @@ export interface ISources {
|
|
|
312
312
|
[VideoFormat.MPEG]?: IMpegSource;
|
|
313
313
|
[VideoFormat.DASH]?: IDashSource;
|
|
314
314
|
[VideoFormat.DASH_SEP]?: IDashURLSource;
|
|
315
|
-
[VideoFormat.DASH_SEP_VK]?: IDashURLSource;
|
|
316
|
-
[VideoFormat.DASH_WEBM_VK]?: IDashURLSource;
|
|
317
315
|
[VideoFormat.DASH_WEBM]?: IDashURLSource;
|
|
318
316
|
[VideoFormat.DASH_ONDEMAND]?: IDashURLSource;
|
|
319
|
-
[VideoFormat.DASH_ONDEMAND_VK]?: IDashURLSource;
|
|
320
317
|
[VideoFormat.DASH_LIVE]?: IDashURLSource;
|
|
321
318
|
[VideoFormat.DASH_LIVE_WEBM]?: IDashURLSource;
|
|
322
319
|
[VideoFormat.HLS]?: IHLSSource;
|
|
323
320
|
[VideoFormat.HLS_ONDEMAND]?: IHLSSource;
|
|
324
|
-
[VideoFormat.HLS_JS]?: IHLSSource;
|
|
325
321
|
[VideoFormat.HLS_LIVE]?: IHLSLiveSource;
|
|
326
322
|
}
|
|
327
323
|
export interface IMetadata {
|
|
@@ -350,16 +346,21 @@ export declare enum VideoFormat {
|
|
|
350
346
|
MPEG = "MPEG",
|
|
351
347
|
DASH = "DASH",
|
|
352
348
|
DASH_SEP = "DASH_SEP",
|
|
353
|
-
|
|
349
|
+
/** @deprecated Используйте DASH_SEP */
|
|
350
|
+
DASH_SEP_VK = "DASH_SEP",
|
|
354
351
|
DASH_WEBM = "DASH_WEBM",
|
|
355
|
-
|
|
352
|
+
/** @deprecated Используйте DASH_WEBM */
|
|
353
|
+
DASH_WEBM_VK = "DASH_WEBM",
|
|
356
354
|
DASH_ONDEMAND = "DASH_ONDEMAND",
|
|
357
|
-
|
|
355
|
+
/** @deprecated Используйте DASH_ONDEMAND */
|
|
356
|
+
DASH_ONDEMAND_VK = "DASH_ONDEMAND",
|
|
358
357
|
DASH_LIVE = "DASH_LIVE",
|
|
358
|
+
/** @deprecated */
|
|
359
359
|
DASH_LIVE_WEBM = "DASH_LIVE_WEBM",
|
|
360
360
|
HLS = "HLS",
|
|
361
361
|
HLS_ONDEMAND = "HLS_ONDEMAND",
|
|
362
|
-
|
|
362
|
+
/** @deprecated Используйте HLS */
|
|
363
|
+
HLS_JS = "HLS",
|
|
363
364
|
HLS_LIVE = "HLS_LIVE"
|
|
364
365
|
}
|
|
365
366
|
export interface IVideoTrack {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { VideoFormat } from "../../../player/types";
|
|
2
|
+
export declare const nativeHlsSupported: any;
|
|
2
3
|
export declare const getSupportedCodecs: () => string[];
|
|
3
|
-
export declare const filterAvailableFormats: (formats: VideoFormat[]) => VideoFormat[];
|
|
4
|
+
export declare const filterAvailableFormats: (formats: VideoFormat[], useHlsJs?: boolean) => VideoFormat[];
|
package/utils/tuningConfig.d.ts
CHANGED
|
@@ -63,6 +63,8 @@ export declare type ITuningConfig = {
|
|
|
63
63
|
stallIgnoreThreshold: Milliseconds;
|
|
64
64
|
gapWatchdogInterval: Milliseconds;
|
|
65
65
|
requestQuick: boolean;
|
|
66
|
+
useDashJs: boolean;
|
|
67
|
+
useHlsJs: boolean;
|
|
66
68
|
};
|
|
67
69
|
export declare type IOptionalTuningConfig = {
|
|
68
70
|
[key in keyof ITuningConfig]?: Partial<ITuningConfig[key]>;
|