@vkontakte/videoplayer-core 2.0.129-dev.53dfa302.0 → 2.0.129-dev.576d1524.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 +22 -22
- package/es2015.esm.js +21 -21
- package/es2018.cjs.js +21 -21
- package/es2018.esm.js +21 -21
- package/esnext.cjs.js +17 -17
- package/esnext.esm.js +18 -18
- package/evergreen.esm.js +15 -15
- package/package.json +2 -2
- package/types/providers/DashProvider/lib/buffer.d.ts +1 -1
- package/types/providers/DashProvider/lib/player.d.ts +1 -0
- package/types/providers/utils/HTMLVideoElement/observable.d.ts +1 -0
- 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.129-dev.
|
|
3
|
+
"version": "2.0.129-dev.576d1524.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.57-dev.9d001c3c.0",
|
|
53
53
|
"hls.js": "~1.4.7"
|
|
54
54
|
}
|
|
55
55
|
}
|
|
@@ -108,7 +108,7 @@ export declare class BufferManager {
|
|
|
108
108
|
private pruneBuffer;
|
|
109
109
|
private abortBuffer;
|
|
110
110
|
getDebugBufferState(): IRange<Milliseconds> | undefined;
|
|
111
|
-
getForwardBufferDuration(): Milliseconds;
|
|
111
|
+
getForwardBufferDuration(currentPosition?: Milliseconds | undefined): Milliseconds;
|
|
112
112
|
private detectGaps;
|
|
113
113
|
private detectGapsWhenIdle;
|
|
114
114
|
private checkEjectedSegments;
|
|
@@ -42,6 +42,7 @@ export declare class Player {
|
|
|
42
42
|
lastConnectionReused$: IValueSubject<boolean | undefined>;
|
|
43
43
|
lastRequestFirstBytes$: IValueSubject<Milliseconds | undefined>;
|
|
44
44
|
currentLiveTextRepresentation$: IValueSubject<TextRepresentation | null>;
|
|
45
|
+
private timeoutSourceOpenId;
|
|
45
46
|
isLive$: IValueSubject<boolean>;
|
|
46
47
|
isActiveLive$: IValueSubject<boolean>;
|
|
47
48
|
isLowLatency$: IValueSubject<boolean>;
|
|
@@ -6,6 +6,7 @@ export interface IObservableVideo {
|
|
|
6
6
|
canplay$: IObservable<undefined>;
|
|
7
7
|
ended$: IObservable<undefined>;
|
|
8
8
|
looped$: IObservable<Seconds>;
|
|
9
|
+
loopExpected$: IObservable<undefined>;
|
|
9
10
|
error$: IObservable<IError>;
|
|
10
11
|
seeked$: IObservable<undefined>;
|
|
11
12
|
seeking$: IObservable<undefined>;
|
|
@@ -81,6 +81,8 @@ export type ITuningConfig = {
|
|
|
81
81
|
};
|
|
82
82
|
enableBaseUrlSupport: boolean;
|
|
83
83
|
maxSegmentRetryCount: number;
|
|
84
|
+
sourceOpenTimeout: number;
|
|
85
|
+
rejectOnSourceOpenTimeout: boolean;
|
|
84
86
|
};
|
|
85
87
|
dashCmafLive: {
|
|
86
88
|
maxActiveLiveOffset: Milliseconds;
|
|
@@ -144,6 +146,7 @@ export type ITuningConfig = {
|
|
|
144
146
|
stripRangeHeader: boolean;
|
|
145
147
|
flushShortLoopedBuffers: boolean;
|
|
146
148
|
insufficientBufferRuleMargin: Milliseconds;
|
|
149
|
+
seekNearDurationBias: Seconds;
|
|
147
150
|
dashSeekInSegmentDurationThreshold: Milliseconds;
|
|
148
151
|
dashSeekInSegmentAlwaysSeekDelta: Milliseconds;
|
|
149
152
|
endGapTolerance: Milliseconds;
|