@vkontakte/videoplayer-core 2.0.119-dev.05a27265.0 → 2.0.119-dev.381e55bc.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.119-dev.05a27265.0",
3
+ "version": "2.0.119-dev.381e55bc.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.51-dev.b60f553c.0",
52
+ "@vkontakte/videoplayer-shared": "1.0.51-dev.64889560.0",
53
53
  "hls.js": "~1.4.7"
54
54
  }
55
55
  }
@@ -59,16 +59,12 @@ export declare class BufferManager {
59
59
  private index;
60
60
  private lastDataObtainedTimestampMs;
61
61
  private loadByteRangeSegmentsTimeoutId;
62
- private preload;
63
- constructor(kind: StreamKind, mediaSource: MediaSource, representations: Representation[], preload: {
64
- marker: string[];
65
- restart: boolean;
66
- }, { fetcher, tuning, getCurrentPosition, isActiveLowLatency, compatibilityMode, manifest }: Dependencies);
62
+ constructor(kind: StreamKind, mediaSource: MediaSource, representations: Representation[], { fetcher, tuning, getCurrentPosition, isActiveLowLatency, compatibilityMode, manifest }: Dependencies);
67
63
  startWith: (param_0: string) => Promise<void | undefined>;
68
64
  switchTo(newRepresentationId: Representation['id'], dropBuffer?: boolean): void | Promise<void | undefined>;
69
65
  switchToNew(newRepresentationId: Representation['id'], dropBuffer?: boolean): void;
70
66
  switchToOld: (param_0: string, param_1: boolean | undefined) => Promise<void | undefined>;
71
- abort(): Promise<boolean>;
67
+ abort(): void;
72
68
  maintain(currentPosition?: Milliseconds | undefined): void;
73
69
  get lastDataObtainedTimestamp(): number;
74
70
  private searchGaps;
@@ -15,10 +15,6 @@ export interface Params {
15
15
  tuning: ITuningConfig;
16
16
  compatibilityMode?: boolean;
17
17
  tracer: ITracer;
18
- preload: {
19
- marker: string[];
20
- restart: boolean;
21
- };
22
18
  }
23
19
  export declare class Player {
24
20
  private element;
@@ -66,7 +62,6 @@ export declare class Player {
66
62
  private gapWatchdogSubscription;
67
63
  private stallWatchdogSubscription;
68
64
  private destroyController;
69
- protected params: Params;
70
65
  constructor(params: Params);
71
66
  initManifest: (param_0: HTMLVideoElement, param_1: string, param_2: number) => Promise<void | undefined>;
72
67
  updateManifest: () => Promise<Manifest | null | undefined>;
@@ -74,7 +69,7 @@ export declare class Player {
74
69
  initRepresentations: (param_0: string, param_1: string | undefined, param_2: import("../../../player/types").URLSource | undefined) => Promise<void | undefined>;
75
70
  initBuffer(): void;
76
71
  switchRepresentation(kind: StreamKind, id: Representation['id'], dropBuffer?: boolean): Promise<void>;
77
- seek(requestedPosition: Milliseconds, forcePrecise: boolean): Promise<void>;
72
+ seek(requestedPosition: Milliseconds, forcePrecise: boolean): void;
78
73
  stop(): void;
79
74
  setBufferTarget(time: Milliseconds): void;
80
75
  getStreams(): Manifest['streams'] | undefined;
@@ -6,7 +6,6 @@ declare class SourceBufferTaskQueue {
6
6
  private queue;
7
7
  private currentTask;
8
8
  private destroyed;
9
- private abortRequested;
10
9
  constructor(buffer: SourceBuffer);
11
10
  append(data: BufferSource, signal?: AbortSignal): Promise<boolean>;
12
11
  remove(from: Milliseconds, to: Milliseconds, signal?: AbortSignal): Promise<boolean>;
@@ -24,10 +24,6 @@ export interface IProviderParams<TSourceType> extends IProviderDependencies {
24
24
  container: HTMLElement;
25
25
  source: TSourceType;
26
26
  desiredState: IDesiredState;
27
- preload: {
28
- marker: string[];
29
- restart: boolean;
30
- };
31
27
  output: IProviderOutput;
32
28
  tuning: ITuningConfig;
33
29
  }
@@ -1,3 +0,0 @@
1
- import { Nullable } from '@vkontakte/videoplayer-shared';
2
- declare const _default: (mediaSource: Nullable<MediaSource>, sourceBuffer: Nullable<SourceBuffer>) => boolean;
3
- export default _default;