@vkontakte/videoplayer-core 2.0.167-dev.652aecfe7.0 → 2.0.167-dev.888965e7d.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.167-dev.652aecfe7.0",
3
+ "version": "2.0.167-dev.888965e7d.0",
4
4
  "author": "vk.com",
5
5
  "description": "Videoplayer core library based on the vk.com platform",
6
6
  "homepage": "https://vk.com",
@@ -42,6 +42,6 @@
42
42
  "**/*.d.ts"
43
43
  ],
44
44
  "dependencies": {
45
- "@vkontakte/videoplayer-shared": "1.0.96-dev.652aecfe7.0"
45
+ "@vkontakte/videoplayer-shared": "1.0.96-dev.888965e7d.0"
46
46
  }
47
47
  }
@@ -87,6 +87,7 @@ export default class Player implements IPlayer {
87
87
  private initDebugTelemetry;
88
88
  private initTracerSubscription;
89
89
  private initWakeLock;
90
+ private initRenderingRecovery;
90
91
  private setVideoTrackIdByQuality;
91
92
  private getActiveLiveDelay;
92
93
  private isNotActiveTabCase;
@@ -356,6 +356,13 @@ export type ITuningConfig = {
356
356
  * использует requestAnimationFrame
357
357
  */
358
358
  autoplayOnlyIfVisible: boolean;
359
+ /**
360
+ * Восстанавливает отрисовку <video> при возврате из фоновой вкладки.
361
+ * WebKit на скрытых вкладках останавливает композитинг кадра и не всегда
362
+ * возобновляет его сам — после детекта «залипшего» кадра делается микросик
363
+ * в текущую позицию, заставляющий декодер переинициализировать текстуру.
364
+ */
365
+ recoverRenderingOnTabVisible: boolean;
359
366
  dynamicImportTimeout: Milliseconds;
360
367
  maxPlaybackTransitionInterval: Milliseconds;
361
368
  providerErrorLimit: number;