@vkontakte/videoplayer-core 2.0.111-dev.3da97999.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.3da97999.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",
@@ -1,7 +1,7 @@
1
1
  import { ITuningConfig } from '../../../utils/tuningConfig';
2
2
  import { IError, IRange, ISubject, IValueSubject, Milliseconds } from '@vkontakte/videoplayer-shared';
3
3
  import type { Fetcher } from './fetcher';
4
- import { CommonInit, Manifest, Representation, StreamKind, Stream } from './types';
4
+ import { CommonInit, Manifest, Representation, Stream, StreamKind } from './types';
5
5
  export interface Dependencies {
6
6
  fetcher: Fetcher;
7
7
  tuning: ITuningConfig;
@@ -29,12 +29,11 @@ export declare class BufferManager {
29
29
  private segments;
30
30
  private allInitsLoaded;
31
31
  private activeSegments;
32
- private bannedSegments;
33
32
  private mediaSource;
34
33
  private playingRepresentationId;
35
34
  private downloadingRepresentationId;
36
35
  private switchingToRepresentationId;
37
- sourceBuffer: SourceBuffer | null;
36
+ private sourceBuffer;
38
37
  private downloadAbortController;
39
38
  private destroyAbortController;
40
39
  private readonly getCurrentPosition;
@@ -55,12 +54,14 @@ export declare class BufferManager {
55
54
  private liveInitialAdditionalOffset;
56
55
  private isSeekingLive;
57
56
  private index;
57
+ private lastDataObtainedTimestampMs;
58
58
  private loadByteRangeSegmentsTimeoutId;
59
59
  constructor(kind: StreamKind, mediaSource: MediaSource, representations: Representation[], { fetcher, tuning, getCurrentPosition, isActiveLowLatency, compatibilityMode, manifest }: Dependencies);
60
60
  startWith: (param_0: string) => Promise<void | undefined>;
61
61
  switchTo: (param_0: string, param_1: boolean | undefined) => Promise<void | undefined>;
62
62
  abort(): void;
63
63
  maintain(currentPosition?: Milliseconds | undefined): void;
64
+ get lastDataObtainedTimestamp(): number;
64
65
  private searchGaps;
65
66
  private getActualLiveStartingSegments;
66
67
  getLiveSegmentsToLoadState(manifest: Manifest | null): IRange<Milliseconds> | undefined;
@@ -105,6 +106,7 @@ export declare class BufferManager {
105
106
  private pruneBufferOld;
106
107
  private abortBuffer;
107
108
  getDebugBufferState(): IRange<Milliseconds> | undefined;
109
+ getForwardBufferDuration(): Milliseconds;
108
110
  private detectGaps;
109
111
  private detectGapsWhenIdle;
110
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;
@@ -90,7 +91,6 @@ export type ITuningConfig = {
90
91
  factor: number;
91
92
  max: Milliseconds;
92
93
  random: number;
93
- maxRetryCount: number;
94
94
  };
95
95
  live: {
96
96
  minBuffer: Milliseconds;
@@ -134,7 +134,6 @@ export type ITuningConfig = {
134
134
  accumulationBufferStallSizeMs: Milliseconds;
135
135
  requestQuick: boolean;
136
136
  useHlsJs: boolean;
137
- useDashAbortPartiallyFedSegment: boolean;
138
137
  useNativeHLSTextTracks: boolean;
139
138
  useManagedMediaSource: boolean;
140
139
  useNewPruneBufferStrategy: boolean;
@@ -145,6 +144,7 @@ export type ITuningConfig = {
145
144
  dynamicImportTimeout: Milliseconds;
146
145
  maxPlaybackTransitionInterval: Milliseconds;
147
146
  providerErrorLimit: number;
147
+ useNewProviderReinitLogic: boolean;
148
148
  manifestRetryInterval: number;
149
149
  manifestRetryMaxInterval: number;
150
150
  manifestRetryMaxCount: number;