@vkontakte/videoplayer-core 2.0.24 → 2.0.28-dev.a37ea53.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/index.cjs.js +4 -4
- package/index.esm.js +4 -4
- package/package.json +1 -1
- package/providers/DashIFProvider/BigRequestLoader.d.ts +1 -0
- package/providers/DashProvider/DashProvider.d.ts +0 -1
- package/providers/DashProvider/types.d.ts +3 -2
- package/providers/DashProvider/utils/xhr2.d.ts +1 -0
- package/utils/tuningConfig.d.ts +2 -0
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bps } from '@vkontakte/videoplayer-shared';
|
|
1
|
+
import { bps, Milliseconds } from '@vkontakte/videoplayer-shared';
|
|
2
2
|
export interface IRepresentation {
|
|
3
3
|
width: number;
|
|
4
4
|
height: number;
|
|
@@ -26,5 +26,6 @@ export interface IRef {
|
|
|
26
26
|
}
|
|
27
27
|
export interface IDashConfig {
|
|
28
28
|
FRONT_CACHE_DURATION: number;
|
|
29
|
-
|
|
29
|
+
SEEK_IN_SEGMENT_THRESHOLD: Milliseconds;
|
|
30
|
+
SEEK_IN_SEGMENT_DELTA: Milliseconds;
|
|
30
31
|
}
|
|
@@ -8,6 +8,7 @@ export default class DashXhr2 {
|
|
|
8
8
|
private _progressCb?;
|
|
9
9
|
private _headersCb?;
|
|
10
10
|
private _errorCb?;
|
|
11
|
+
private _retryTimeout;
|
|
11
12
|
constructor(url: any, failoverHosts?: string[], completeCb?: (completeResponse: any) => void, progressCb?: (progressResponse: any) => void, headersCb?: () => void, errorCb?: (id: string, message: string, thrown?: Error | unknown) => void);
|
|
12
13
|
_request(): void;
|
|
13
14
|
abort(): void;
|
package/utils/tuningConfig.d.ts
CHANGED
|
@@ -26,6 +26,8 @@ export declare type ITuningConfig = {
|
|
|
26
26
|
stripRangeHeader: boolean;
|
|
27
27
|
flushShortLoopedBuffers: boolean;
|
|
28
28
|
insufficientBufferRuleMargin: Milliseconds;
|
|
29
|
+
dashSeekInSegmentDurationThreshold: Milliseconds;
|
|
30
|
+
dashSeekInSegmentAlwaysSeekDelta: Milliseconds;
|
|
29
31
|
};
|
|
30
32
|
export declare type IOptionalTuningConfig = {
|
|
31
33
|
[key in keyof ITuningConfig]?: Partial<ITuningConfig[key]>;
|