@vkontakte/videoplayer-core 2.0.138-dev.2ccb74c0.0 → 2.0.138-dev.b9cfb5f8.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.138-dev.2ccb74c0.0",
3
+ "version": "2.0.138-dev.b9cfb5f8.0",
4
4
  "author": "vk.com",
5
5
  "description": "Videoplayer core library based on the vk.com platform",
6
6
  "homepage": "https://vk.com",
@@ -54,6 +54,6 @@
54
54
  "**/*.d.ts"
55
55
  ],
56
56
  "dependencies": {
57
- "@vkontakte/videoplayer-shared": "1.0.66-dev.e0a40117.0"
57
+ "@vkontakte/videoplayer-shared": "1.0.66-dev.cf2e90e8.0"
58
58
  }
59
59
  }
@@ -39,6 +39,7 @@ export declare class BufferManager {
39
39
  private downloadAbortController;
40
40
  private switchAbortController;
41
41
  private destroyAbortController;
42
+ private useSmartRepresentationSwitch;
42
43
  private readonly getCurrentPosition;
43
44
  private readonly isActiveLowLatency;
44
45
  private tuning;
@@ -76,6 +77,7 @@ export declare class BufferManager {
76
77
  updateLive(manifest: Manifest | null): void;
77
78
  proceedLowLatencyLive(): void;
78
79
  calculateDurationFromSegments(): number;
80
+ setSmartRepresentationSwitch(state: boolean): void;
79
81
  private updateLowLatencyLiveIfNeeded;
80
82
  findSegmentStartTime(position: Milliseconds): Milliseconds | undefined;
81
83
  setTarget(time: Milliseconds): void;
@@ -78,6 +78,7 @@ export declare class Player {
78
78
  constructor(params: Params);
79
79
  initManifest: (param_0: HTMLVideoElement, param_1: string, param_2: number) => Promise<void | undefined>;
80
80
  updateManifest: () => Promise<Manifest | null | undefined>;
81
+ setSmartRepresentationSwitch(state: boolean): void;
81
82
  seekLive(nextOffset: Milliseconds): Promise<void>;
82
83
  initRepresentations: (param_0: string, param_1: string | undefined, param_2: import("../../../player/types").URLSource | undefined) => Promise<void | undefined>;
83
84
  initBuffer(): void;
@@ -48,6 +48,7 @@ export declare class BufferManager {
48
48
  private downloadAbortController;
49
49
  private switchAbortController;
50
50
  private destroyAbortController;
51
+ private useSmartRepresentationSwitch;
51
52
  private readonly getCurrentPosition;
52
53
  private readonly isActiveLowLatency;
53
54
  private tuning;
@@ -85,6 +86,7 @@ export declare class BufferManager {
85
86
  seekLive: (param_0: Stream[] | undefined) => Promise<void | undefined>;
86
87
  updateLive(manifest: Manifest | null): void;
87
88
  proceedLowLatencyLive(): void;
89
+ setSmartRepresentationSwitch(state: boolean): void;
88
90
  private updateLowLatencyLiveIfNeeded;
89
91
  findSegmentStartTime(position: Milliseconds): Milliseconds | undefined;
90
92
  setTarget(time: Milliseconds): void;
@@ -78,6 +78,7 @@ export declare class Player {
78
78
  constructor(params: Params);
79
79
  initManifest: (param_0: HTMLVideoElement, param_1: string, param_2: number) => Promise<void | undefined>;
80
80
  updateManifest: () => Promise<Manifest | null | undefined>;
81
+ setSmartRepresentationSwitch(state: boolean): void;
81
82
  seekLive(nextOffset: Milliseconds): Promise<void>;
82
83
  initRepresentations: (param_0: string, param_1: string | undefined, param_2: import("../../../player/types").URLSource | undefined) => Promise<void | undefined>;
83
84
  initBuffer(): void;
@@ -99,6 +99,9 @@ export type ITuningConfig = {
99
99
  crashOnStallTWithoutDataTimeout: Milliseconds;
100
100
  enableSubSegmentBufferFeeding: boolean;
101
101
  bufferEmptinessTolerance: Milliseconds;
102
+ useNewRepresentationSwitch: boolean;
103
+ useDelayedRepresentationSwitch: boolean;
104
+ useSmartRepresentationSwitch: boolean;
102
105
  useFetchPriorityHints: boolean;
103
106
  enableBaseUrlSupport: boolean;
104
107
  maxSegmentRetryCount: number;