@vkontakte/videoplayer-core 2.0.111-dev.2c18acf4.0 → 2.0.111-dev.65bae723.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.111-dev.2c18acf4.0",
3
+ "version": "2.0.111-dev.65bae723.0",
4
4
  "author": "vk.com",
5
5
  "description": "Videoplayer core library based on the vk.com platform",
6
6
  "homepage": "https://vk.com",
@@ -49,7 +49,7 @@
49
49
  "**/*.d.ts"
50
50
  ],
51
51
  "dependencies": {
52
- "@vkontakte/videoplayer-shared": "1.0.43-dev.6b20a06d.0",
52
+ "@vkontakte/videoplayer-shared": "^1.0.42",
53
53
  "hls.js": "~1.4.7"
54
54
  }
55
55
  }
@@ -54,12 +54,14 @@ export declare class BufferManager {
54
54
  private liveInitialAdditionalOffset;
55
55
  private isSeekingLive;
56
56
  private index;
57
+ private lastDataObtainedTimestampMs;
57
58
  private loadByteRangeSegmentsTimeoutId;
58
59
  constructor(kind: StreamKind, mediaSource: MediaSource, representations: Representation[], { fetcher, tuning, getCurrentPosition, isActiveLowLatency, compatibilityMode, manifest }: Dependencies);
59
60
  startWith: (param_0: string) => Promise<void | undefined>;
60
61
  switchTo: (param_0: string, param_1: boolean | undefined) => Promise<void | undefined>;
61
62
  abort(): void;
62
63
  maintain(currentPosition?: Milliseconds | undefined): void;
64
+ get lastDataObtainedTimestamp(): number;
63
65
  private searchGaps;
64
66
  private getActualLiveStartingSegments;
65
67
  getLiveSegmentsToLoadState(manifest: Manifest | null): IRange<Milliseconds> | undefined;
@@ -104,6 +106,7 @@ export declare class BufferManager {
104
106
  private pruneBufferOld;
105
107
  private abortBuffer;
106
108
  getDebugBufferState(): IRange<Milliseconds> | undefined;
109
+ getForwardBufferDuration(): Milliseconds;
107
110
  private detectGaps;
108
111
  private detectGapsWhenIdle;
109
112
  private checkEjectedSegments;
@@ -3,8 +3,7 @@ import { CommonInit, Manifest, Representation, StreamKind } from './types';
3
3
  import StateMachine from '../../../utils/StateMachine/StateMachine';
4
4
  import type ThroughputEstimator from '../../../utils/ThroughputEstimator';
5
5
  import { ITuningConfig } from '../../../utils/tuningConfig';
6
- import { IError, ISubject, IValueSubject, Milliseconds, Seconds, ITracer } from '@vkontakte/videoplayer-shared';
7
- import { ISmoothedValue } from '../../../utils/smoothedValue/types';
6
+ import { IError, ISubject, ITracer, IValueSubject, Milliseconds, Seconds } from '@vkontakte/videoplayer-shared';
8
7
  export declare enum State {
9
8
  NONE = "none",
10
9
  MANIFEST_READY = "manifest_ready",
@@ -47,9 +46,9 @@ export declare class Player {
47
46
  bufferLength$: IValueSubject<Milliseconds>;
48
47
  liveLoadBufferLength$: IValueSubject<Milliseconds>;
49
48
  livePositionFromPlayer$: IValueSubject<number>;
50
- liveEstimatedDelay: ISmoothedValue;
51
- timeInWaiting: number;
52
49
  isActiveLowLatency$: IValueSubject<boolean>;
50
+ private liveEstimatedDelay;
51
+ private timeInWaiting;
53
52
  private isUpdatingLive;
54
53
  private isJumpGapAfterSeekLive;
55
54
  private liveLastSeekOffset;
@@ -60,6 +60,7 @@ export type ITuningConfig = {
60
60
  segmentRequestSize: Byte;
61
61
  representationSwitchForwardBufferGap: Milliseconds;
62
62
  crashOnStallTimeout: Milliseconds;
63
+ crashOnStallTWithoutDataTimeout: Milliseconds;
63
64
  enableSubSegmentBufferFeeding: boolean;
64
65
  segmentTimelineTolerance: Milliseconds;
65
66
  useFetchPriorityHints: boolean;
@@ -143,6 +144,7 @@ export type ITuningConfig = {
143
144
  dynamicImportTimeout: Milliseconds;
144
145
  maxPlaybackTransitionInterval: Milliseconds;
145
146
  providerErrorLimit: number;
147
+ useNewProviderReinitLogic: boolean;
146
148
  manifestRetryInterval: number;
147
149
  manifestRetryMaxInterval: number;
148
150
  manifestRetryMaxCount: number;