@vkontakte/videoplayer-core 2.0.33 → 2.0.34

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.33",
3
+ "version": "2.0.34",
4
4
  "author": "vk.com",
5
5
  "description": "Videoplayer core library based on the vk.com platform",
6
6
  "homepage": "https://vk.com",
@@ -1,6 +1,7 @@
1
1
  import { Representation, RepresentationKind } from "./types";
2
2
  import StateMachine from "../../../utils/StateMachine/StateMachine";
3
3
  import type ThroughputEstimator from "../../../utils/ThroughputEstimator";
4
+ import { ITuningConfig } from "../../../utils/tuningConfig";
4
5
  import { IValueSubject, Milliseconds } from '@vkontakte/videoplayer-shared';
5
6
  import { Manifest } from './mpd';
6
7
  export declare enum State {
@@ -10,6 +11,7 @@ export declare enum State {
10
11
  }
11
12
  export interface Params {
12
13
  throughputEstimator: ThroughputEstimator;
14
+ tuning: ITuningConfig;
13
15
  }
14
16
  export declare class Player {
15
17
  private element;
@@ -21,6 +23,8 @@ export declare class Player {
21
23
  private subscription;
22
24
  state$: StateMachine<State>;
23
25
  currentVideoRepresentation$: IValueSubject<Representation['id'] | undefined>;
26
+ private forceEnded$;
27
+ private tuning;
24
28
  constructor(params: Params);
25
29
  initManifest(element: HTMLVideoElement, manifestUrl: string): Promise<Manifest>;
26
30
  initRepresentations(initialVideo: Representation['id'], initialAudio: Representation['id']): Promise<void>;
@@ -30,6 +30,7 @@ export declare type ITuningConfig = {
30
30
  insufficientBufferRuleMargin: Milliseconds;
31
31
  dashSeekInSegmentDurationThreshold: Milliseconds;
32
32
  dashSeekInSegmentAlwaysSeekDelta: Milliseconds;
33
+ endGapTolerange: Milliseconds;
33
34
  };
34
35
  export declare type IOptionalTuningConfig = {
35
36
  [key in keyof ITuningConfig]?: Partial<ITuningConfig[key]>;