@vkontakte/videoplayer-core 2.0.115-dev.0778dd82.0 → 2.0.115-dev.1dfe2867.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.js +24 -17
- package/es2015.esm.js +24 -17
- package/es2018.cjs.js +23 -16
- package/es2018.esm.js +23 -16
- package/esnext.cjs.js +26 -19
- package/esnext.esm.js +26 -19
- package/evergreen.esm.js +24 -17
- package/package.json +2 -2
- package/types/providers/DashProvider/baseDashProvider.d.ts +0 -4
- package/types/providers/DashProvider/lib/buffer.d.ts +3 -0
- package/types/providers/DashProvider/lib/parsers/ietf/index.d.ts +13 -0
- package/types/providers/DashProvider/lib/types.d.ts +1 -0
- package/types/utils/tuningConfig.d.ts +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vkontakte/videoplayer-core",
|
|
3
|
-
"version": "2.0.115-dev.
|
|
3
|
+
"version": "2.0.115-dev.1dfe2867.0",
|
|
4
4
|
"author": "vk.com",
|
|
5
5
|
"description": "Videoplayer core library based on the vk.com platform",
|
|
6
6
|
"homepage": "https://vk.com",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"**/*.d.ts"
|
|
50
50
|
],
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@vkontakte/videoplayer-shared": "1.0.47-dev.
|
|
52
|
+
"@vkontakte/videoplayer-shared": "1.0.47-dev.14cceb4b.0",
|
|
53
53
|
"hls.js": "~1.4.7"
|
|
54
54
|
}
|
|
55
55
|
}
|
|
@@ -39,10 +39,6 @@ export default abstract class BaseDashProvider implements IProvider {
|
|
|
39
39
|
protected audioStreamsMap: Map<Stream, IAudioTrack[]>;
|
|
40
40
|
protected videoTrackSwitchHistory: TrackHistory<IVideoTrack>;
|
|
41
41
|
protected audioTrackSwitchHistory: TrackHistory<import("../../player/types").IBaseTrack>;
|
|
42
|
-
protected textTracks: {
|
|
43
|
-
track: IInternalTextTrack;
|
|
44
|
-
representation: Representation;
|
|
45
|
-
}[];
|
|
46
42
|
protected liveOffset?: ILiveOffset;
|
|
47
43
|
constructor(params: IParams);
|
|
48
44
|
protected abstract seek(position: Milliseconds, forcePrecise: boolean): void;
|
|
@@ -47,6 +47,8 @@ export declare class BufferManager {
|
|
|
47
47
|
private gapDetectionIdleCallback;
|
|
48
48
|
private initLoadIdleCallback;
|
|
49
49
|
private failedDownloads;
|
|
50
|
+
private baseUrls;
|
|
51
|
+
private baseUrlsIndex;
|
|
50
52
|
private compatibilityMode;
|
|
51
53
|
private preloadOnly;
|
|
52
54
|
private bufferAccumulation;
|
|
@@ -83,6 +85,7 @@ export declare class BufferManager {
|
|
|
83
85
|
private selectForwardBufferSegmentsRecord;
|
|
84
86
|
private loadSegments;
|
|
85
87
|
private loadTemplateSegment;
|
|
88
|
+
private updateRepresentationsBaseUrlIfNeeded;
|
|
86
89
|
private loadByteRangeSegments;
|
|
87
90
|
private prepareByteRangeFetchSegmentParams;
|
|
88
91
|
private prepareTemplateFetchSegmentParams;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** @fork https://github.com/sozialhelden/ietf-language-tags */
|
|
2
|
+
export interface ILanguageSubtag {
|
|
3
|
+
langtag?: string;
|
|
4
|
+
language?: string;
|
|
5
|
+
extlang?: string;
|
|
6
|
+
script?: string;
|
|
7
|
+
region?: string;
|
|
8
|
+
variants?: string[];
|
|
9
|
+
extensions?: Record<string, string>;
|
|
10
|
+
privateuse?: string;
|
|
11
|
+
}
|
|
12
|
+
/** @fork https://github.com/sozialhelden/ietf-language-tags */
|
|
13
|
+
export declare const parseLangAttribute: (attr: string) => ILanguageSubtag | null;
|
|
@@ -66,6 +66,8 @@ export type ITuningConfig = {
|
|
|
66
66
|
enableSubSegmentBufferFeeding: boolean;
|
|
67
67
|
bufferEmptinessTolerance: Milliseconds;
|
|
68
68
|
useFetchPriorityHints: boolean;
|
|
69
|
+
enableBaseUrlSupport: boolean;
|
|
70
|
+
maxSegmentRetryCount: number;
|
|
69
71
|
};
|
|
70
72
|
dashCmafLive: {
|
|
71
73
|
maxActiveLiveOffset: Milliseconds;
|
|
@@ -174,8 +176,7 @@ export type ITuningConfig = {
|
|
|
174
176
|
speedFadeThreshold: Milliseconds;
|
|
175
177
|
};
|
|
176
178
|
useVolumeMultiplier: boolean;
|
|
177
|
-
|
|
178
|
-
usingVkPlayerUi: boolean;
|
|
179
|
+
ignoreAudioRendererError: boolean;
|
|
179
180
|
};
|
|
180
181
|
export type IOptionalTuningConfig = RecursivePartial<ITuningConfig> & {
|
|
181
182
|
configName: ITuningConfig['configName'];
|