@vkontakte/videoplayer-core 2.0.149-dev.e6e86083.0 → 2.0.150-dev.10447541.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.149-dev.e6e86083.0",
3
+ "version": "2.0.150-dev.10447541.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.78-dev.e6e86083.0"
57
+ "@vkontakte/videoplayer-shared": "1.0.79-dev.10447541.0"
58
58
  }
59
59
  }
@@ -117,7 +117,6 @@ export default class Player implements IPlayer {
117
117
  };
118
118
  experimental: {
119
119
  element$: ValueSubject<HTMLVideoElement | undefined>;
120
- tuningConfigName$: ValueSubject<string[]>;
121
120
  enableDebugTelemetry$: ValueSubject<boolean>;
122
121
  dumpTelemetry: (receiver: (value: Record<string, any>) => void) => void;
123
122
  getCurrentTime$: ValueSubject<null>;
@@ -77,7 +77,6 @@ export interface IPlayer {
77
77
  * Может быть видеоэлементом, iframe и вообще чем угодно в общем случае.
78
78
  */
79
79
  element$: IValueObservable<HTMLVideoElement | undefined>;
80
- tuningConfigName$: IValueSubject<string[]>;
81
80
  enableDebugTelemetry$: IValueSubject<boolean>;
82
81
  dumpTelemetry: (receiver: (value: Record<string, any>) => void) => void;
83
82
  /** функция вычисления текущей позиции проигрывания из под провадера (если расчет нестандартный) */
@@ -6,7 +6,7 @@ export declare class NativeBufferManager {
6
6
  private sourceBufferTaskQueue;
7
7
  private subscription;
8
8
  constructor(mediaSource: MediaSource);
9
- init(mime: string, codecs: string): void;
9
+ init(mime: string, codecs: string, useAbortMSEFix?: boolean): void;
10
10
  addInitSegment(initView: BufferSource, signal?: AbortSignal): Promise<boolean>;
11
11
  append(segmentView: BufferSource, signal?: AbortSignal): Promise<boolean>;
12
12
  remove(from: Milliseconds, to: Milliseconds, signal?: AbortSignal): Promise<boolean>;
@@ -7,7 +7,8 @@ declare class SourceBufferTaskQueue {
7
7
  private currentTask;
8
8
  private destroyed;
9
9
  private abortRequested;
10
- constructor(buffer: SourceBuffer);
10
+ private isAbortFixEnabled;
11
+ constructor(buffer: SourceBuffer, isAbortFixEnabled?: boolean);
11
12
  append(data: BufferSource, signal?: AbortSignal): Promise<boolean>;
12
13
  remove(from: Milliseconds, to: Milliseconds, signal?: AbortSignal): Promise<boolean>;
13
14
  abort(init?: BufferSource): Promise<boolean>;
@@ -35,8 +35,10 @@ export declare class DeviceChecker implements Checker {
35
35
  private detectHighEntropyValues;
36
36
  private detectDevice;
37
37
  private detectOS;
38
- private detectDeviceDetails;
39
- private detectIOSVersion;
40
38
  private normalizeOSName;
41
39
  private normalizeOSVersion;
40
+ private detectDeviceDetails;
41
+ private normalizeVendorName;
42
+ private normalizeModelName;
43
+ private detectIOSVersion;
42
44
  }
@@ -4,7 +4,8 @@ import { AndroidPreferredFormat } from '../enums/AndroidPreferredFormat';
4
4
  import { IOSPreferredFormat } from '../enums/IOSPreferredFormat';
5
5
  import { Byte, type ExactVideoQuality, Milliseconds, RecursivePartial, Seconds, VideoQuality } from '@vkontakte/videoplayer-shared';
6
6
  export type ITuningConfig = {
7
- configName: string[];
7
+ /** @deprecated */
8
+ configName?: string[];
8
9
  throughputEstimator: {
9
10
  type: 'TwoEma' | 'EmaAndMa';
10
11
  emaAlphaSlow: number;
@@ -270,7 +271,5 @@ export type ITuningConfig = {
270
271
  logDashLiveDebug?: boolean;
271
272
  useInvalidBufferFix?: boolean;
272
273
  };
273
- export type IOptionalTuningConfig = RecursivePartial<ITuningConfig> & {
274
- configName: ITuningConfig['configName'];
275
- };
274
+ export type IOptionalTuningConfig = RecursivePartial<ITuningConfig>;
276
275
  export declare const fillDefault: (partial: IOptionalTuningConfig) => ITuningConfig;