@vkontakte/videoplayer-core 2.0.105-dev.3573a175.0 → 2.0.105-dev.63403a90.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 +23 -23
- package/es2015.esm.js +21 -21
- package/es2018.cjs.js +24 -24
- package/es2018.esm.js +23 -23
- package/esnext.cjs.js +22 -22
- package/esnext.esm.js +23 -23
- package/evergreen.esm.js +17 -17
- package/package.json +2 -2
- package/types/providers/DashProvider/consts.d.ts +1 -0
- package/types/providers/DashProvider/lib/buffer.d.ts +5 -0
- package/types/providers/DashProvider/lib/player.d.ts +1 -1
- package/types/providers/DashProvider/lib/types.d.ts +4 -4
- package/types/utils/tuningConfig.d.ts +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vkontakte/videoplayer-core",
|
|
3
|
-
"version": "2.0.105-dev.
|
|
3
|
+
"version": "2.0.105-dev.63403a90.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": "
|
|
52
|
+
"@vkontakte/videoplayer-shared": "1.0.37-dev.35fd18eb.0",
|
|
53
53
|
"hls.js": "~1.4.7"
|
|
54
54
|
}
|
|
55
55
|
}
|
|
@@ -66,6 +66,7 @@ export declare class BufferManager {
|
|
|
66
66
|
getLiveSegmentsToLoadState(manifest: Manifest | null): IRange<Milliseconds> | undefined;
|
|
67
67
|
seekLive: (param_0: Representation[] | undefined) => Promise<void | undefined>;
|
|
68
68
|
updateLive(manifest: Manifest | null): void;
|
|
69
|
+
proceedLowLatencyLive(): void;
|
|
69
70
|
private updateLowLatencyLive;
|
|
70
71
|
findSegmentStartTime(position: Milliseconds): Milliseconds | undefined;
|
|
71
72
|
setTarget(time: Milliseconds): void;
|
|
@@ -90,11 +91,15 @@ export declare class BufferManager {
|
|
|
90
91
|
* @private
|
|
91
92
|
*/
|
|
92
93
|
private onSomeByteRangesDataLoaded;
|
|
94
|
+
private onSomeByteRangesDataLoadedOld;
|
|
95
|
+
private onSomeByteRangesDataLoadedNew;
|
|
93
96
|
private onSegmentFullyAppended;
|
|
94
97
|
private abortSegment;
|
|
95
98
|
private loadNextInit;
|
|
96
99
|
private loadInit;
|
|
97
100
|
private pruneBuffer;
|
|
101
|
+
private pruneBufferNew;
|
|
102
|
+
private pruneBufferOld;
|
|
98
103
|
private abortBuffer;
|
|
99
104
|
getDebugBufferState(): IRange<Milliseconds> | undefined;
|
|
100
105
|
private detectGaps;
|
|
@@ -46,7 +46,7 @@ export declare class Player {
|
|
|
46
46
|
livePositionFromPlayer$: IValueSubject<number>;
|
|
47
47
|
liveEstimatedDelay: ISmoothedValue;
|
|
48
48
|
timeInWaiting: number;
|
|
49
|
-
isActiveLowLatency
|
|
49
|
+
isActiveLowLatency$: IValueSubject<boolean>;
|
|
50
50
|
private isUpdatingLive;
|
|
51
51
|
private isJumpGapAfterSeekLive;
|
|
52
52
|
private liveLastSeekOffset;
|
|
@@ -8,10 +8,10 @@ export declare enum RepresentationKind {
|
|
|
8
8
|
TEXT = "text"
|
|
9
9
|
}
|
|
10
10
|
export declare enum LiveStatus {
|
|
11
|
-
ActiveLowLatency =
|
|
12
|
-
LiveWithTargetOffset =
|
|
13
|
-
LiveForwardBuffering =
|
|
14
|
-
None =
|
|
11
|
+
ActiveLowLatency = "active_low_latency",
|
|
12
|
+
LiveWithTargetOffset = "live_with_target_offset",
|
|
13
|
+
LiveForwardBuffering = "live_forward_buffering",
|
|
14
|
+
None = "none"
|
|
15
15
|
}
|
|
16
16
|
export declare enum Profile {
|
|
17
17
|
WEBM_AS_IN_SPEC = "urn:mpeg:dash:profile:webm-on-demand:2012",
|
|
@@ -19,6 +19,7 @@ export type ITuningConfig = {
|
|
|
19
19
|
deviationFactor: number;
|
|
20
20
|
lowLatency: {
|
|
21
21
|
continuesByteSequenceInterval: Milliseconds;
|
|
22
|
+
maxLastEvaluationTimeout: Milliseconds;
|
|
22
23
|
};
|
|
23
24
|
};
|
|
24
25
|
autoTrackSelection: {
|
|
@@ -128,6 +129,8 @@ export type ITuningConfig = {
|
|
|
128
129
|
useDashAbortPartiallyFedSegment: boolean;
|
|
129
130
|
useNativeHLSTextTracks: boolean;
|
|
130
131
|
useManagedMediaSource: boolean;
|
|
132
|
+
useNewPruneBufferStrategy: boolean;
|
|
133
|
+
useNewPartialSegmentFeeding: boolean;
|
|
131
134
|
isAudioDisabled: boolean;
|
|
132
135
|
autoplayOnlyInActiveTab: boolean;
|
|
133
136
|
dynamicImportTimeout: Milliseconds;
|