@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vkontakte/videoplayer-core",
3
- "version": "2.0.24",
3
+ "version": "2.0.28-dev.a37ea53.0",
4
4
  "author": "vk.com",
5
5
  "description": "Videoplayer core library based on the vk.com platform",
6
6
  "homepage": "https://vk.com",
@@ -23,6 +23,7 @@ declare class BigRequest {
23
23
  private onBigRequestError;
24
24
  private onBigRequestAbort;
25
25
  private static suppressAbort;
26
+ private static suppressStreamErrors;
26
27
  }
27
28
  declare class BigRequestLoader implements IDashJSLoader {
28
29
  private baseLoader;
@@ -2,7 +2,6 @@ import { IDashSource } from "../../player/types";
2
2
  import { IProvider, IProviderParams } from '../types';
3
3
  declare type Params = IProviderParams<IDashSource> & {
4
4
  config: {
5
- seekInSegment: boolean;
6
5
  cacheDuration: number;
7
6
  };
8
7
  };
@@ -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
- SEEK_IN_SEGMENT: boolean;
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;
@@ -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]>;