@vkontakte/videoplayer-core 2.0.129-dev.085da0ee.0 → 2.0.129-dev.10b6113c.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.129-dev.085da0ee.0",
3
+ "version": "2.0.129-dev.10b6113c.0",
4
4
  "author": "vk.com",
5
5
  "description": "Videoplayer core library based on the vk.com platform",
6
6
  "homepage": "https://vk.com",
@@ -25,6 +25,11 @@
25
25
  "require": "./esnext.cjs.js",
26
26
  "types": "./types/index.d.ts"
27
27
  },
28
+ "./es2024": {
29
+ "import": "./es2024.esm.js",
30
+ "require": "./es2024.cjs.js",
31
+ "types": "./types/index.d.ts"
32
+ },
28
33
  "./es2018": {
29
34
  "import": "./es2018.esm.js",
30
35
  "require": "./es2018.cjs.js",
@@ -49,7 +54,7 @@
49
54
  "**/*.d.ts"
50
55
  ],
51
56
  "dependencies": {
52
- "@vkontakte/videoplayer-shared": "1.0.56",
57
+ "@vkontakte/videoplayer-shared": "1.0.57-dev.a47eb77a.0",
53
58
  "hls.js": "~1.4.7"
54
59
  }
55
60
  }
@@ -3,7 +3,7 @@ import { CommonInit, IProviderSubscriptionInfo, ProviderState, Representation, S
3
3
  import { IProvider, IProviderParams } from '../../providers/types';
4
4
  import { TrackHistory } from '../../utils/autoSelectTrack';
5
5
  import { IStateMachine } from '../../utils/StateMachine/types';
6
- import { ISubscription, ITracer, Milliseconds } from '@vkontakte/videoplayer-shared';
6
+ import { ISubscription, Milliseconds, ITracer } from '@vkontakte/videoplayer-shared';
7
7
  import { Player } from './lib/player';
8
8
  import { Scene3D } from '../../utils/3d/Scene3D';
9
9
  import DroppedFramesManager from '../../providers/utils/HTMLVideoElement/DroppedFramesManager';
@@ -108,7 +108,7 @@ export declare class BufferManager {
108
108
  private pruneBuffer;
109
109
  private abortBuffer;
110
110
  getDebugBufferState(): IRange<Milliseconds> | undefined;
111
- getForwardBufferDuration(currentPosition?: Milliseconds | undefined): Milliseconds;
111
+ getForwardBufferDuration(): Milliseconds;
112
112
  private detectGaps;
113
113
  private detectGapsWhenIdle;
114
114
  private checkEjectedSegments;
@@ -42,7 +42,6 @@ export declare class Player {
42
42
  lastConnectionReused$: IValueSubject<boolean | undefined>;
43
43
  lastRequestFirstBytes$: IValueSubject<Milliseconds | undefined>;
44
44
  currentLiveTextRepresentation$: IValueSubject<TextRepresentation | null>;
45
- private timeoutSourceOpenId;
46
45
  isLive$: IValueSubject<boolean>;
47
46
  isActiveLive$: IValueSubject<boolean>;
48
47
  isLowLatency$: IValueSubject<boolean>;
@@ -76,8 +75,6 @@ export declare class Player {
76
75
  initBuffer(): void;
77
76
  switchRepresentation(kind: StreamKind, id: Representation['id'], dropBuffer?: boolean): Promise<void>;
78
77
  seek(requestedPosition: Milliseconds, forcePrecise: boolean): Promise<void>;
79
- warmUpMediaSourceIfNeeded(position?: Milliseconds | undefined): void;
80
- get isStreamEnded(): boolean;
81
78
  stop(): void;
82
79
  setBufferTarget(time: Milliseconds): void;
83
80
  getStreams(): Manifest['streams'] | undefined;
@@ -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>;
@@ -1,4 +1,4 @@
1
- import { ExactVideoQuality, IObservable, IValueSubject, Milliseconds, Kbps, Seconds } from '@vkontakte/videoplayer-shared';
1
+ import { ExactVideoQuality, IObservable, IValueSubject, Milliseconds, Kbps } from '@vkontakte/videoplayer-shared';
2
2
  import { IVideoTrack } from '../../player/types';
3
3
  import { ITuningConfig } from '../../utils/tuningConfig';
4
4
  interface IConnectData {
@@ -7,7 +7,6 @@ interface IConnectData {
7
7
  rtt$: IValueSubject<Milliseconds>;
8
8
  isBuffering$: IObservable<boolean>;
9
9
  isSeeked$: IObservable<boolean>;
10
- looped$: IObservable<Seconds>;
11
10
  currentStallDuration$: IObservable<Milliseconds>;
12
11
  qualityLimitsOnStall: ITuningConfig['dash']['qualityLimitsOnStall'];
13
12
  }
@@ -1,7 +1,9 @@
1
1
  import { IListener, IObservable, ISubscription } from '@vkontakte/videoplayer-shared';
2
2
  import { IVolumeState, PlaybackRate } from '../../player/types';
3
3
  import { IStateMachine } from '../../utils/StateMachine/types';
4
- declare const syncDesiredState: <Value>(desiredState: IStateMachine<Value | undefined>, get: () => Value | undefined, set: (value: Value | undefined) => void, { equal, changed$, onError, }?: {
4
+ declare const syncDesiredState: <Value>(desiredState: IStateMachine<Value | undefined>, get: () => Value | undefined, // Текущее значение состояние
5
+ set: (value: Value | undefined) => void, // Применение нового значения
6
+ { equal, changed$, onError, }?: {
5
7
  equal?: (a: Value | undefined, b: Value | undefined) => boolean;
6
8
  changed$?: IObservable<Value | undefined>;
7
9
  onError?: IListener<Error | unknown>;
@@ -61,7 +61,6 @@ export type ITuningConfig = {
61
61
  forwardBufferTargetAuto: Milliseconds;
62
62
  forwardBufferTargetManual: Milliseconds;
63
63
  forwardBufferTargetPreload: Milliseconds;
64
- seekBiasInTheEnd: Milliseconds;
65
64
  maxSegmentDurationLeftToSelectNextSegment: Milliseconds;
66
65
  minSafeBufferThreshold: number;
67
66
  bufferPruningSafeZone: Milliseconds;
@@ -74,15 +73,11 @@ export type ITuningConfig = {
74
73
  useFetchPriorityHints: boolean;
75
74
  qualityLimitsOnStall: {
76
75
  stallDurationNoDataBeforeQualityDecrease: Milliseconds;
77
- stallDurationToBeCount: Milliseconds;
78
76
  stallCountBeforeQualityDecrease: Milliseconds;
79
77
  resetQualityRestrictionTimeout: Milliseconds;
80
- ignoreStallsOnSeek: boolean;
81
78
  };
82
79
  enableBaseUrlSupport: boolean;
83
80
  maxSegmentRetryCount: number;
84
- sourceOpenTimeout: number;
85
- rejectOnSourceOpenTimeout: boolean;
86
81
  };
87
82
  dashCmafLive: {
88
83
  maxActiveLiveOffset: Milliseconds;
@@ -146,7 +141,6 @@ export type ITuningConfig = {
146
141
  stripRangeHeader: boolean;
147
142
  flushShortLoopedBuffers: boolean;
148
143
  insufficientBufferRuleMargin: Milliseconds;
149
- seekNearDurationBias: Seconds;
150
144
  dashSeekInSegmentDurationThreshold: Milliseconds;
151
145
  dashSeekInSegmentAlwaysSeekDelta: Milliseconds;
152
146
  endGapTolerance: Milliseconds;