@vkontakte/videoplayer-core 2.0.78 → 2.0.79

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.d.ts CHANGED
@@ -38,6 +38,7 @@ interface IPlayer {
38
38
  * Полная деинициализация плеера
39
39
  */
40
40
  destroy(): void;
41
+ prepare(): IPlayer;
41
42
  play(): IPlayer;
42
43
  pause(): IPlayer;
43
44
  stop(): IPlayer;
@@ -314,6 +315,7 @@ interface IPlayerInfo {
314
315
  }
315
316
  declare enum PlaybackState {
316
317
  STOPPED = "stopped",
318
+ READY = "ready",
317
319
  PLAYING = "playing",
318
320
  PAUSED = "paused"
319
321
  }
@@ -449,6 +451,9 @@ type ITuningConfig = {
449
451
  forwardBufferTarget: Milliseconds;
450
452
  forwardBufferTargetAuto: Milliseconds;
451
453
  forwardBufferTargetManual: Milliseconds;
454
+ forwardBufferTargetPreload: Milliseconds;
455
+ minSafeBufferThreshold: number;
456
+ bufferPruningSafeZone: Milliseconds;
452
457
  segmentRequestSize: Byte;
453
458
  representationSwitchForwardBufferGap: Milliseconds;
454
459
  enableSubSegmentBufferFeeding: boolean;
@@ -570,6 +575,7 @@ declare class Player implements IPlayer {
570
575
  constructor(tuning?: IOptionalTuningConfig);
571
576
  initVideo(config: IConfig): IPlayer;
572
577
  destroy(): void;
578
+ prepare(): IPlayer;
573
579
  play(): IPlayer;
574
580
  pause(): IPlayer;
575
581
  stop(): IPlayer;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vkontakte/videoplayer-core",
3
- "version": "2.0.78",
3
+ "version": "2.0.79",
4
4
  "author": "vk.com",
5
5
  "description": "Videoplayer core library based on the vk.com platform",
6
6
  "homepage": "https://vk.com",
@@ -39,9 +39,9 @@
39
39
  "**/*.d.ts"
40
40
  ],
41
41
  "dependencies": {
42
- "@vkontakte/videoplayer-shared": "^1.0.20",
42
+ "@vkontakte/videoplayer-shared": "^1.0.21",
43
43
  "dashjs": "4.5.2",
44
- "hls.js": "1.3.2",
44
+ "hls.js": "1.3.4",
45
45
  "lodash": "4.17.21"
46
46
  }
47
47
  }