@vkontakte/videoplayer-core 2.0.105-dev.3573a175.0 → 2.0.105-dev.63403a90.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.63403a90.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.35fd18eb.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;
@@ -90,11 +91,15 @@ export declare class BufferManager {
90
91
  * @private
91
92
  */
92
93
  private onSomeByteRangesDataLoaded;
94
+ private onSomeByteRangesDataLoadedOld;
95
+ private onSomeByteRangesDataLoadedNew;
93
96
  private onSegmentFullyAppended;
94
97
  private abortSegment;
95
98
  private loadNextInit;
96
99
  private loadInit;
97
100
  private pruneBuffer;
101
+ private pruneBufferNew;
102
+ private pruneBufferOld;
98
103
  private abortBuffer;
99
104
  getDebugBufferState(): IRange<Milliseconds> | undefined;
100
105
  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,8 @@ export type ITuningConfig = {
128
129
  useDashAbortPartiallyFedSegment: boolean;
129
130
  useNativeHLSTextTracks: boolean;
130
131
  useManagedMediaSource: boolean;
132
+ useNewPruneBufferStrategy: boolean;
133
+ useNewPartialSegmentFeeding: boolean;
131
134
  isAudioDisabled: boolean;
132
135
  autoplayOnlyInActiveTab: boolean;
133
136
  dynamicImportTimeout: Milliseconds;