@vkontakte/videoplayer-core 2.0.176 → 2.0.177

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.176",
3
+ "version": "2.0.177",
4
4
  "author": "vk.ru",
5
5
  "description": "Videoplayer core library based on the vk.ru platform",
6
6
  "homepage": "https://vk.ru",
@@ -42,6 +42,6 @@
42
42
  "**/*.d.ts"
43
43
  ],
44
44
  "dependencies": {
45
- "@vkontakte/videoplayer-shared": "1.0.105"
45
+ "@vkontakte/videoplayer-shared": "1.0.106"
46
46
  }
47
47
  }
@@ -29,7 +29,7 @@ export declare abstract class BaseVirtualBufferManager<T extends Segment> implem
29
29
  protected parsedInitData: Map<Representation["id"], CommonInit>;
30
30
  protected forwardBufferRepresentations: Map<Representation["id"], T[]>;
31
31
  protected segments: Map<Representation["id"], T[]>;
32
- protected gaps: IRange<Milliseconds>[];
32
+ protected gaps: Map<Representation["id"], IRange<Milliseconds>[]>;
33
33
  protected containerParser: ContainerParser;
34
34
  protected bufferPlaybackQueue: IBufferPlaybackQueueItem<T>[];
35
35
  protected downloadingBufferItems: IBufferPlaybackQueueItem<T>[];
@@ -76,8 +76,8 @@ export declare abstract class BaseVirtualBufferManager<T extends Segment> implem
76
76
  getActiveSegmentProgress(): VideoSegmentLoadProgress | undefined;
77
77
  getMpdSegmentDuration(): Milliseconds | undefined;
78
78
  get lastDataObtainedTimestamp(): Milliseconds;
79
+ protected searchGaps(representationId: Representation["id"], segments: T[]): void;
79
80
  getGaps(): IRange<Milliseconds>[];
80
- protected searchGaps(): void;
81
81
  setTarget(time: Milliseconds): void;
82
82
  setPreloadOnly(preloadOnly: boolean): void;
83
83
  destroy(): void;
@@ -108,8 +108,6 @@ export declare abstract class BaseVirtualBufferManager<T extends Segment> implem
108
108
  protected loadInits(): Promise<void>;
109
109
  protected loadInitIfNeeded(representation: Representation, requestedPriority?: Priority, critical?: boolean): Promise<void>;
110
110
  protected loadInit(representation: Representation, requestedPriority?: Priority, critical?: boolean): Promise<void>;
111
- private lockForNativeOps;
112
- private lockForSwitchInit;
113
111
  protected maintainNativeBuffer(signal: AbortSignal): Promise<void>;
114
112
  protected maintainPlaybackBuffer(position: Milliseconds): Promise<void>;
115
113
  protected actualizeLastSegmentInfo(currentPosition: Milliseconds): void;
@@ -118,4 +118,5 @@ export declare abstract class BasePlayer {
118
118
  protected tick(): Promise<void>;
119
119
  private jumpToMaxBufferStartIfNeeded;
120
120
  private collectGapEndsContaining;
121
+ private jumpToFirstNativeBufferFrameIfNeeded;
121
122
  }
@@ -215,6 +215,7 @@ export type ITuningConfig = {
215
215
  ignoreNetworkErrorsOnLoadInit: boolean;
216
216
  bufferTolerance: Milliseconds;
217
217
  useBufferGapWatchdog: boolean;
218
+ jumpToFirstNativeBufferFrame: boolean;
218
219
  minNativeBufferSize: Milliseconds;
219
220
  removeTimeShiftFromSegment: Milliseconds;
220
221
  tickMaintainInterval: Milliseconds;