@vkontakte/videoplayer-core 2.0.123-dev.8ba72ee5.0 → 2.0.123-dev.92e9449d.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 +26 -25
- package/es2015.esm.js +23 -22
- package/es2018.cjs.js +25 -24
- package/es2018.esm.js +24 -23
- package/esnext.cjs.js +26 -25
- package/esnext.esm.js +26 -25
- package/evergreen.esm.js +21 -20
- package/package.json +2 -2
- package/types/providers/DashProvider/lib/buffer.d.ts +3 -1
- package/types/providers/DashProvider/lib/player.d.ts +1 -1
- package/types/providers/DashProvider/lib/sourceBufferTaskQueue.d.ts +1 -0
- package/types/utils/buffer/isSourceBufferValid.d.ts +3 -0
- package/types/utils/tuningConfig.d.ts +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vkontakte/videoplayer-core",
|
|
3
|
-
"version": "2.0.123-dev.
|
|
3
|
+
"version": "2.0.123-dev.92e9449d.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.52-dev.
|
|
52
|
+
"@vkontakte/videoplayer-shared": "1.0.52-dev.f4109db7.0",
|
|
53
53
|
"hls.js": "~1.4.7"
|
|
54
54
|
}
|
|
55
55
|
}
|
|
@@ -15,6 +15,7 @@ export interface Gap extends IRange<Milliseconds> {
|
|
|
15
15
|
}
|
|
16
16
|
export declare class BufferManager {
|
|
17
17
|
currentLiveSegmentServerLatency$: IValueSubject<number>;
|
|
18
|
+
currentLowLatencySegmentLength$: IValueSubject<number>;
|
|
18
19
|
currentSegmentLength$: IValueSubject<number>;
|
|
19
20
|
onLastSegment$: IValueSubject<boolean>;
|
|
20
21
|
fullyBuffered$: IValueSubject<boolean>;
|
|
@@ -64,7 +65,8 @@ export declare class BufferManager {
|
|
|
64
65
|
switchTo(newRepresentationId: Representation['id'], dropBuffer?: boolean): void | Promise<void | undefined>;
|
|
65
66
|
switchToNew(newRepresentationId: Representation['id'], dropBuffer?: boolean): void;
|
|
66
67
|
switchToOld: (param_0: string, param_1: boolean | undefined) => Promise<void | undefined>;
|
|
67
|
-
|
|
68
|
+
warmUpMediaSource(): void;
|
|
69
|
+
abort(): Promise<boolean>;
|
|
68
70
|
maintain(currentPosition?: Milliseconds | undefined): void;
|
|
69
71
|
get lastDataObtainedTimestamp(): number;
|
|
70
72
|
private searchGaps;
|
|
@@ -69,7 +69,7 @@ export declare class Player {
|
|
|
69
69
|
initRepresentations: (param_0: string, param_1: string | undefined, param_2: import("../../../player/types").URLSource | undefined) => Promise<void | undefined>;
|
|
70
70
|
initBuffer(): void;
|
|
71
71
|
switchRepresentation(kind: StreamKind, id: Representation['id'], dropBuffer?: boolean): Promise<void>;
|
|
72
|
-
seek(requestedPosition: Milliseconds, forcePrecise: boolean): void
|
|
72
|
+
seek(requestedPosition: Milliseconds, forcePrecise: boolean): Promise<void>;
|
|
73
73
|
stop(): void;
|
|
74
74
|
setBufferTarget(time: Milliseconds): void;
|
|
75
75
|
getStreams(): Manifest['streams'] | undefined;
|
|
@@ -6,6 +6,7 @@ declare class SourceBufferTaskQueue {
|
|
|
6
6
|
private queue;
|
|
7
7
|
private currentTask;
|
|
8
8
|
private destroyed;
|
|
9
|
+
private abortRequested;
|
|
9
10
|
constructor(buffer: SourceBuffer);
|
|
10
11
|
append(data: BufferSource, signal?: AbortSignal): Promise<boolean>;
|
|
11
12
|
remove(from: Milliseconds, to: Milliseconds, signal?: AbortSignal): Promise<boolean>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VideoFormat } from '../player/types';
|
|
2
2
|
import { WebmCodecStrategy } from '../enums/WebmCodecStrategy';
|
|
3
3
|
import { AndroidPreferredFormat } from '../enums/AndroidPreferredFormat';
|
|
4
|
-
import { Byte, type ExactVideoQuality, Milliseconds, RecursivePartial, VideoQuality } from '@vkontakte/videoplayer-shared';
|
|
4
|
+
import { Byte, type ExactVideoQuality, Milliseconds, RecursivePartial, Seconds, VideoQuality } from '@vkontakte/videoplayer-shared';
|
|
5
5
|
export type ITuningConfig = {
|
|
6
6
|
configName: string[];
|
|
7
7
|
throughputEstimator: {
|
|
@@ -84,6 +84,7 @@ export type ITuningConfig = {
|
|
|
84
84
|
normalizedLiveMinBufferSize: Milliseconds;
|
|
85
85
|
normalizedActualBufferOffset: Milliseconds;
|
|
86
86
|
offsetCalculationError: Milliseconds;
|
|
87
|
+
maxLiveDuration: Seconds;
|
|
87
88
|
lowLatency: {
|
|
88
89
|
maxTargetOffset: Milliseconds;
|
|
89
90
|
maxTargetOffsetDeviation: Milliseconds;
|