@vkontakte/videoplayer-core 2.0.54 → 2.0.55

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.54",
3
+ "version": "2.0.55",
4
4
  "author": "vk.com",
5
5
  "description": "Videoplayer core library based on the vk.com platform",
6
6
  "homepage": "https://vk.com",
@@ -1,8 +1,15 @@
1
+ import { Milliseconds } from '@vkontakte/videoplayer-shared';
1
2
  import { IRepresentation } from '../types';
2
3
  interface IParams {
3
4
  videoElement: HTMLVideoElement;
4
5
  playerCallback: (...args: any) => void;
5
- config: any;
6
+ config: {
7
+ minBuffer: Milliseconds;
8
+ lowLatencyMinBuffer: Milliseconds;
9
+ minBufferSegments: number;
10
+ lowLatencyMinBufferSegments: number;
11
+ maxParallelRequests: number;
12
+ };
6
13
  logger: (...args: any[]) => void;
7
14
  }
8
15
  export default class LiveDashPlayer {
@@ -62,5 +62,6 @@ export declare class BufferManager {
62
62
  private pruneBuffer;
63
63
  private abortBuffer;
64
64
  private detectGaps;
65
+ private detectGapsWhenIdle;
65
66
  private checkEjectedSegments;
66
67
  }
@@ -5,7 +5,6 @@ declare type Params = IProviderParams<IDashURLSource> & {
5
5
  config: {
6
6
  maxPausedTime: Milliseconds;
7
7
  chunkDuration: number;
8
- optimalBufferDuration: number;
9
8
  maxParallelRequests: number;
10
9
  };
11
10
  };
@@ -29,6 +29,12 @@ export declare type ITuningConfig = {
29
29
  enableSubSegmentBufferFeeding: boolean;
30
30
  segmentTimelineTolerance: Milliseconds;
31
31
  };
32
+ live: {
33
+ minBuffer: Milliseconds;
34
+ minBufferSegments: number;
35
+ lowLatencyMinBuffer: Milliseconds;
36
+ lowLatencyMinBufferSegments: number;
37
+ };
32
38
  enableTelemetryAtStart: boolean;
33
39
  formatsToAvoid: VideoFormat[];
34
40
  disableChromecast: boolean;