@vkontakte/videoplayer-core 2.0.131-dev.ffcf4d9f.0 → 2.0.132-beta.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.131-dev.ffcf4d9f.0",
3
+ "version": "2.0.132-beta.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,7 +54,7 @@
54
54
  "**/*.d.ts"
55
55
  ],
56
56
  "dependencies": {
57
- "@vkontakte/videoplayer-shared": "1.0.59-dev.e3f2a8af.0",
57
+ "@vkontakte/videoplayer-shared": "1.0.60-beta.0",
58
58
  "hls.js": "~1.4.7"
59
59
  }
60
60
  }
@@ -8,8 +8,8 @@ import { Player } from './lib/player';
8
8
  import { Scene3D } from '../../utils/3d/Scene3D';
9
9
  import DroppedFramesManager from '../../providers/utils/HTMLVideoElement/DroppedFramesManager';
10
10
  import TextTrackManager from '../../providers/utils/HTMLVideoElement/TextTrackManager';
11
+ import StallsManager from '../../providers/utils/StallsManager';
11
12
  import { ElementSizeManager } from './lib/ElementSizeManager';
12
- import { StallsManagerVktv } from '../utils/StallsManager.vktv';
13
13
  type IParams = IProviderParams<IDashURLSource> & {
14
14
  sourceHls?: IHLSSource;
15
15
  };
@@ -23,7 +23,7 @@ export default abstract class BaseDashProvider implements IProvider {
23
23
  protected tracer: ITracer;
24
24
  protected textTracksManager: TextTrackManager;
25
25
  protected droppedFramesManager: DroppedFramesManager;
26
- protected stallsManager: StallsManagerVktv;
26
+ protected stallsManager: StallsManager;
27
27
  protected elementSizeManager: ElementSizeManager;
28
28
  protected videoTracksMap: Map<IVideoTrack, {
29
29
  stream: Stream;
@@ -12,7 +12,6 @@ export interface Dependencies {
12
12
  }
13
13
  export interface Gap extends IRange<Milliseconds> {
14
14
  representation: Representation['id'];
15
- persistent: boolean;
16
15
  }
17
16
  export declare class BufferManager {
18
17
  currentLiveSegmentServerLatency$: IValueSubject<number>;
@@ -61,7 +60,6 @@ export declare class BufferManager {
61
60
  private index;
62
61
  private lastDataObtainedTimestampMs;
63
62
  private loadByteRangeSegmentsTimeoutId;
64
- private sourceBufferBufferedDiff;
65
63
  constructor(kind: StreamKind, mediaSource: MediaSource, representations: Representation[], { fetcher, tuning, getCurrentPosition, isActiveLowLatency, compatibilityMode, manifest }: Dependencies);
66
64
  startWith: (param_0: string) => Promise<void | undefined>;
67
65
  switchToWithPreviousAbort(newRepresentationId: Representation['id'], dropBuffer?: boolean): void;
@@ -19,8 +19,3 @@ export declare const isTextRepresentation: (representation: Representation | Tex
19
19
  */
20
20
  export declare const mergeIntervals: (intervals: IRange<Milliseconds>[]) => IRange<Milliseconds>[];
21
21
  export declare const findInIterator: <T>(iterable: MapIterator<T> | SetIterator<T>, matchFn: (arg: T) => boolean) => T | null;
22
- /**
23
- * даёт `true` каждые `ms` миллисекунд
24
- */
25
- export declare const semaphor: (ms: number) => () => boolean;
26
- export declare const createTimeRanges: (buffered: TimeRanges) => number[];
@@ -6,7 +6,6 @@ export interface IObservableVideo {
6
6
  canplay$: IObservable<undefined>;
7
7
  ended$: IObservable<undefined>;
8
8
  looped$: IObservable<Seconds>;
9
- loopExpected$: IObservable<undefined>;
10
9
  error$: IObservable<IError>;
11
10
  seeked$: IObservable<undefined>;
12
11
  seeking$: IObservable<undefined>;
@@ -19,7 +19,7 @@ declare class StallsManager {
19
19
  private throughput$;
20
20
  private rtt$;
21
21
  private tuning;
22
- protected abrParams: ITuningConfig['autoTrackSelection'];
22
+ private abrParams;
23
23
  private isSeeked$;
24
24
  private isBuffering$;
25
25
  private maxQualityLimit;
@@ -100,8 +100,6 @@ export type ITuningConfig = {
100
100
  enableBaseUrlSupport: boolean;
101
101
  maxSegmentRetryCount: number;
102
102
  sourceOpenTimeout: number;
103
- rejectOnSourceOpenTimeout: boolean;
104
- vktvAbrThrottle: number | null;
105
103
  };
106
104
  dashCmafLive: {
107
105
  maxActiveLiveOffset: Milliseconds;
@@ -1,19 +0,0 @@
1
- export declare class SourceBufferBufferedDiff {
2
- private lastUpdateTs;
3
- private lastCallTs;
4
- private prevRanges;
5
- private readonly sourceBuffer;
6
- private readonly mediaSource;
7
- private readonly subscription;
8
- constructor(mediaSource: MediaSource, sourceBuffer: SourceBuffer);
9
- private updateend;
10
- /**
11
- * если длина массивов разная - считаем, что какие то сегменты удалили
12
- *
13
- * если длина одинаковая - считаем, что сегменты удалили в том случае,
14
- * если в новом массиве хотя бы 1 сегмент стал меньше
15
- */
16
- private isRangesRemoved;
17
- wasUpdated(): boolean;
18
- destroy(): void;
19
- }
@@ -1,5 +0,0 @@
1
- import { ITuningConfig } from '../../utils/tuningConfig';
2
- import StallsManager from './StallsManager';
3
- export declare class StallsManagerVktv extends StallsManager {
4
- get abrTuningParams(): ITuningConfig['autoTrackSelection'];
5
- }