@vkontakte/videoplayer-core 2.0.105-dev.3573a175.0 → 2.0.105-dev.7303ff18.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.105-dev.3573a175.0",
3
+ "version": "2.0.105-dev.7303ff18.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.36",
52
+ "@vkontakte/videoplayer-shared": "1.0.37-dev.7467b46e.0",
53
53
  "hls.js": "~1.4.7"
54
54
  }
55
55
  }
@@ -1 +1,2 @@
1
1
  export declare const DASH_LIVE_UPDATE_INTERVAL_MS = 1000;
2
+ export declare const DASH_STALL_UPDATE_INTERVAL_MS: number;
@@ -66,6 +66,7 @@ export declare class BufferManager {
66
66
  getLiveSegmentsToLoadState(manifest: Manifest | null): IRange<Milliseconds> | undefined;
67
67
  seekLive: (param_0: Representation[] | undefined) => Promise<void | undefined>;
68
68
  updateLive(manifest: Manifest | null): void;
69
+ proceedLowLatencyLive(): void;
69
70
  private updateLowLatencyLive;
70
71
  findSegmentStartTime(position: Milliseconds): Milliseconds | undefined;
71
72
  setTarget(time: Milliseconds): void;
@@ -95,6 +96,8 @@ export declare class BufferManager {
95
96
  private loadNextInit;
96
97
  private loadInit;
97
98
  private pruneBuffer;
99
+ private pruneBufferNew;
100
+ private pruneBufferOld;
98
101
  private abortBuffer;
99
102
  getDebugBufferState(): IRange<Milliseconds> | undefined;
100
103
  private detectGaps;
@@ -46,7 +46,7 @@ export declare class Player {
46
46
  livePositionFromPlayer$: IValueSubject<number>;
47
47
  liveEstimatedDelay: ISmoothedValue;
48
48
  timeInWaiting: number;
49
- isActiveLowLatency: boolean;
49
+ isActiveLowLatency$: IValueSubject<boolean>;
50
50
  private isUpdatingLive;
51
51
  private isJumpGapAfterSeekLive;
52
52
  private liveLastSeekOffset;
@@ -8,10 +8,10 @@ export declare enum RepresentationKind {
8
8
  TEXT = "text"
9
9
  }
10
10
  export declare enum LiveStatus {
11
- ActiveLowLatency = 0,
12
- LiveWithTargetOffset = 1,
13
- LiveForwardBuffering = 2,
14
- None = 3
11
+ ActiveLowLatency = "active_low_latency",
12
+ LiveWithTargetOffset = "live_with_target_offset",
13
+ LiveForwardBuffering = "live_forward_buffering",
14
+ None = "none"
15
15
  }
16
16
  export declare enum Profile {
17
17
  WEBM_AS_IN_SPEC = "urn:mpeg:dash:profile:webm-on-demand:2012",
@@ -19,6 +19,7 @@ export type ITuningConfig = {
19
19
  deviationFactor: number;
20
20
  lowLatency: {
21
21
  continuesByteSequenceInterval: Milliseconds;
22
+ maxLastEvaluationTimeout: Milliseconds;
22
23
  };
23
24
  };
24
25
  autoTrackSelection: {
@@ -128,6 +129,7 @@ export type ITuningConfig = {
128
129
  useDashAbortPartiallyFedSegment: boolean;
129
130
  useNativeHLSTextTracks: boolean;
130
131
  useManagedMediaSource: boolean;
132
+ useNewPruneBufferStrategy: boolean;
131
133
  isAudioDisabled: boolean;
132
134
  autoplayOnlyInActiveTab: boolean;
133
135
  dynamicImportTimeout: Milliseconds;