@vkontakte/videoplayer-core 2.0.164-dev.0bbcbb01d.0 → 2.0.164-dev.f2fd80887.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.
Files changed (32) hide show
  1. package/es2015.cjs +40 -40
  2. package/es2015.esm.js +40 -40
  3. package/esnext.cjs +34 -34
  4. package/esnext.esm.js +16 -16
  5. package/evergreen.esm.js +16 -16
  6. package/package.json +2 -2
  7. package/types/player/Player.d.ts +2 -5
  8. package/types/player/types.d.ts +1 -7
  9. package/types/providers/ChromecastProvider/types.d.ts +1 -1
  10. package/types/providers/DashLiveProvider/DashLiveProvider.d.ts +1 -1
  11. package/types/providers/DashLiveProvider/utils/LiveDashPlayer.d.ts +1 -1
  12. package/types/providers/DashProvider/baseDashProvider.d.ts +2 -2
  13. package/types/providers/DashProvider/lib/player.d.ts +2 -2
  14. package/types/providers/DashProviderVirtual/baseDashProvider.d.ts +2 -2
  15. package/types/providers/DashProviderVirtual/lib/player/basePlayer.d.ts +4 -4
  16. package/types/providers/HlsLiveProvider/index.d.ts +1 -1
  17. package/types/providers/HlsProvider/index.d.ts +1 -1
  18. package/types/providers/HlsProvider/manifestDataExtractor.d.ts +6 -8
  19. package/types/providers/MpegProvider/index.d.ts +1 -1
  20. package/types/providers/WebRTCLiveProvider/WebRTCLiveProvider.d.ts +1 -1
  21. package/types/providers/types.d.ts +3 -8
  22. package/types/providers/utils/Abr/types.d.ts +2 -2
  23. package/types/providers/utils/HTMLVideoElement/destroy.d.ts +1 -1
  24. package/types/providers/utils/HTMLVideoElement/forcePlay.d.ts +1 -1
  25. package/types/providers/utils/HTMLVideoElement/observable.d.ts +1 -2
  26. package/types/providers/utils/HTMLVideoElement/pool.d.ts +3 -4
  27. package/types/providers/utils/canPlay.d.ts +1 -1
  28. package/types/providers/utils/syncDesiredState.d.ts +3 -3
  29. package/types/utils/changePlaybackRate.d.ts +1 -1
  30. package/types/utils/tuningConfig.d.ts +0 -2
  31. package/types/providers/utils/createAllocationResolution.d.ts +0 -12
  32. package/types/utils/buffer/getPlayedTime.d.ts +0 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vkontakte/videoplayer-core",
3
- "version": "2.0.164-dev.0bbcbb01d.0",
3
+ "version": "2.0.164-dev.f2fd80887.0",
4
4
  "author": "vk.com",
5
5
  "description": "Videoplayer core library based on the vk.com platform",
6
6
  "homepage": "https://vk.com",
@@ -42,6 +42,6 @@
42
42
  "**/*.d.ts"
43
43
  ],
44
44
  "dependencies": {
45
- "@vkontakte/videoplayer-shared": "1.0.93-dev.0bbcbb01d.0"
45
+ "@vkontakte/videoplayer-shared": "1.0.93-dev.f2fd80887.0"
46
46
  }
47
47
  }
@@ -1,6 +1,6 @@
1
1
  import type { IOptionalTuningConfig } from "../utils/tuningConfig";
2
- import type { ILogEntry, ITracer, QualityLimits, Seconds, VideoQuality } from "@vkontakte/videoplayer-shared";
3
- import { type IAudioStream, type IConfig, type ICueSettings, type IExternalTextTrack, type IPlayer, type ITextTrack, type IVideoStream, type PlaybackRate, type PlayerEventsImpl, type PlayerExperimentalImpl, type PlayerInfoImpl, PredefinedQualityLimits } from "./types";
2
+ import type { ILogEntry, Seconds, QualityLimits, VideoQuality, ITracer } from "@vkontakte/videoplayer-shared";
3
+ import { type IAudioStream, type IConfig, type ICueSettings, type IExternalTextTrack, type IPlayer, type ITextTrack, type IVideoStream, type PlaybackRate, PredefinedQualityLimits, type PlayerInfoImpl, type PlayerEventsImpl, type PlayerExperimentalImpl } from "./types";
4
4
  import type { IPlayerOptions } from "../utils/playerOptions";
5
5
  export default class Player implements IPlayer {
6
6
  private readonly subscription;
@@ -40,9 +40,6 @@ export default class Player implements IPlayer {
40
40
  * Позвонялет переиспользовать для другого видео
41
41
  */
42
42
  private reset;
43
- initAudio(config: Omit<IConfig, "container"> & {
44
- audioElement?: HTMLAudioElement;
45
- }): IPlayer;
46
43
  initVideo(config: IConfig): IPlayer;
47
44
  destroy(): void;
48
45
  private waitInit;
@@ -1,4 +1,4 @@
1
- import type { IError, ILogEntry, IObservable, IRectangle, IValueObservable, IValueSubject, Kbps, Milliseconds, QualityLimits, Seconds, Subject, ValueSubject, VideoQuality } from "@vkontakte/videoplayer-shared";
1
+ import type { IObservable, IValueObservable, IValueSubject, ILogEntry, Kbps, Milliseconds, Seconds, IRectangle, IError, QualityLimits, VideoQuality, Subject, ValueSubject } from "@vkontakte/videoplayer-shared";
2
2
  import type { Pixel } from "../utils/3d/types";
3
3
  import type { dump } from "../utils/playbackTelemetry";
4
4
  export interface StartEnd<Unit extends number> {
@@ -251,12 +251,6 @@ export interface PlayerInfoValues {
251
251
  * default value: `Infinity`
252
252
  */
253
253
  duration$: Seconds;
254
- /**
255
- * Сумма времени воспроизведенных отрывков
256
- *
257
- * default value: `0`
258
- */
259
- playedTime$: Seconds;
260
254
  muted$: boolean;
261
255
  volume$: number;
262
256
  availableVideoStreams$: IVideoStream[];
@@ -1,7 +1,7 @@
1
1
  import type { IMetadata, ISources, VideoFormat } from "../../player/types";
2
2
  import type { IProviderParams } from "../types";
3
3
  import type { IChromecastConnection } from "./ChromecastInitializer/types";
4
- export interface IParams extends Omit<IProviderParams<ISources>, "skipVideoElVolumeSync$" | "allocation"> {
4
+ export interface IParams extends Omit<IProviderParams<ISources>, "skipVideoElVolumeSync$"> {
5
5
  meta: IMetadata;
6
6
  format: VideoFormat;
7
7
  connection: IChromecastConnection;
@@ -11,7 +11,7 @@ type Params = IProviderParams<IDashURLSource> & {
11
11
  export default class DashLiveProvider implements IProvider {
12
12
  private subscription;
13
13
  private volumeSubscription;
14
- private readonly allocation;
14
+ private video;
15
15
  private videoState;
16
16
  private dash;
17
17
  private representations$;
@@ -5,7 +5,7 @@ import { IRepresentation, State } from "../types";
5
5
  import { Subject } from "@vkontakte/videoplayer-shared";
6
6
  import { PlaybackState } from "../../../player/types";
7
7
  interface IParams {
8
- videoElement: HTMLMediaElement;
8
+ videoElement: HTMLVideoElement;
9
9
  videoState: IStateMachine<State>;
10
10
  playbackState: IStateMachine<PlaybackState>;
11
11
  liveOffset: ILiveOffset;
@@ -2,7 +2,7 @@ import type { IAudioTrack, IDashURLSource, IHLSSource, IInternalTextTrack, IVide
2
2
  import type { IProviderSubscriptionInfo } from "./lib/types";
3
3
  import { ProviderState } from "./lib/types";
4
4
  import type { CommonInit, Representation, Stream } from "../utils/parsers/types";
5
- import type { IProvider, IProviderAllocationResolution, IProviderParams } from "../types";
5
+ import type { IProvider, IProviderParams } from "../types";
6
6
  import type { IObservableVideo } from "../utils/HTMLVideoElement/observable";
7
7
  import { TrackHistory } from "../../utils/autoSelectTrack";
8
8
  import type { IStateMachine } from "../../utils/StateMachine/types";
@@ -26,7 +26,7 @@ export default abstract class BaseDashProvider implements IProvider {
26
26
  protected subscription: ISubscription;
27
27
  protected volumeSubscription: ISubscription;
28
28
  protected videoState: IStateMachine<ProviderState>;
29
- protected readonly allocation: IProviderAllocationResolution;
29
+ protected video: HTMLVideoElement;
30
30
  protected observableVideo: IObservableVideo | null;
31
31
  protected player: Player;
32
32
  protected params: IParams;
@@ -89,14 +89,14 @@ export declare class Player {
89
89
  private dashMaxTvVideoQuality;
90
90
  private destroyController;
91
91
  constructor(params: Params);
92
- initManifest: ReturnType<typeof abortable<[HTMLMediaElement, string, number]>>;
92
+ initManifest: ReturnType<typeof abortable<[HTMLVideoElement, string, number]>>;
93
93
  updateManifest: ReturnType<typeof abortable<[], Manifest | null>>;
94
94
  setSmartRepresentationSwitch(state: boolean): void;
95
95
  seekLive(nextOffset: Milliseconds): Promise<void>;
96
96
  private updateManifestUrlWithTimeOffset;
97
97
  private updateLiveBuffersFromManifest;
98
98
  private stopStallWatchdogSubscription;
99
- initRepresentations: ReturnType<typeof abortable<[Representation["id"] | undefined, Representation["id"] | undefined, IHLSSource | undefined]>>;
99
+ initRepresentations: ReturnType<typeof abortable<[Representation["id"], Representation["id"] | undefined, IHLSSource | undefined]>>;
100
100
  initBuffer(): void;
101
101
  switchRepresentation(kind: StreamKind, id: Representation["id"], dropBuffer?: boolean): Promise<void>;
102
102
  seek(requestedPosition: Milliseconds, forcePrecise: boolean): Promise<void>;
@@ -2,7 +2,7 @@ import type { IAudioTrack, IBaseTrack, IDashURLSource, IHLSSource, IInternalText
2
2
  import type { IProviderSubscriptionInfo } from "./lib/types";
3
3
  import { ProviderState } from "./lib/types";
4
4
  import type { CommonInit, Representation, Stream } from "../utils/parsers/types";
5
- import type { IProvider, IProviderAllocationResolution, IProviderParams } from "../types";
5
+ import type { IProvider, IProviderParams } from "../types";
6
6
  import type { IObservableVideo } from "../utils/HTMLVideoElement/observable";
7
7
  import { TrackHistory } from "../../utils/autoSelectTrack";
8
8
  import type { IStateMachine } from "../../utils/StateMachine/types";
@@ -26,7 +26,7 @@ export default abstract class BaseDashProvider implements IProvider {
26
26
  protected subscription: ISubscription;
27
27
  protected volumeSubscription: ISubscription;
28
28
  protected videoState: IStateMachine<ProviderState>;
29
- protected readonly allocation: IProviderAllocationResolution;
29
+ protected video: HTMLVideoElement;
30
30
  protected observableVideo: IObservableVideo | null;
31
31
  protected player: BasePlayer;
32
32
  protected params: IParams;
@@ -14,7 +14,7 @@ import type { Params } from "./types";
14
14
  import { State } from "./types";
15
15
  import { NativeBufferManager } from "../buffer/nativeBufferManager";
16
16
  export declare abstract class BasePlayer {
17
- protected element: HTMLMediaElement | null;
17
+ protected element: HTMLVideoElement | null;
18
18
  protected manifestUrlString: string;
19
19
  protected source: MediaSource | null;
20
20
  protected manifest: Manifest | null;
@@ -79,8 +79,8 @@ export declare abstract class BasePlayer {
79
79
  protected abstract prepareManifestUrlString(manifestBaseUrlString: string, offset: number): string;
80
80
  protected abstract setSourceInitDuration(): void;
81
81
  protected abstract restoreAfterDeepStall(): Promise<void>;
82
- initRepresentations: ReturnType<typeof abortable<[Representation["id"] | undefined, Representation["id"] | undefined, IHLSSource | undefined]>>;
83
- initManifest(element: HTMLMediaElement, manifestBaseUrlString: string, offset: number): Promise<void>;
82
+ initRepresentations: ReturnType<typeof abortable<[Representation["id"], Representation["id"] | undefined, IHLSSource | undefined]>>;
83
+ initManifest(element: HTMLVideoElement, manifestBaseUrlString: string, offset: number): Promise<void>;
84
84
  initBuffer(): void;
85
85
  switchRepresentation(kind: StreamKind, id: Representation["id"], mode: SwithRepresentationMode): Promise<void>;
86
86
  seek(requestedPosition: Milliseconds, forcePrecise?: boolean): Promise<void>;
@@ -108,7 +108,7 @@ export declare abstract class BasePlayer {
108
108
  protected parseManifest(manifestString: string): Nullable<Manifest>;
109
109
  protected getResultManifest(manifest: Manifest): Manifest;
110
110
  protected stopStallWatchdogSubscription(): void;
111
- protected createBuffers(dependencies: Dependencies, initialVideo?: Representation["id"], initialAudio?: Representation["id"], sourceHls?: IHLSSource): void;
111
+ protected createBuffers(dependencies: Dependencies, initialVideo: Representation["id"], initialAudio?: Representation["id"], sourceHls?: IHLSSource): void;
112
112
  protected waitStreamToOpen(): Promise<void>;
113
113
  protected initRepresentationSubscriptions(): void;
114
114
  protected initBufferLengthSubscription(): void;
@@ -12,7 +12,7 @@ export default class HlsLiveProvider implements IProvider {
12
12
  private subscription;
13
13
  private volumeSubscription;
14
14
  private videoState;
15
- private readonly allocation;
15
+ private video;
16
16
  private params;
17
17
  private textTracksManager;
18
18
  private liveTextManager;
@@ -7,7 +7,7 @@ export default class HlsProvider implements IProvider {
7
7
  private subscription;
8
8
  private volumeSubscription;
9
9
  private videoState;
10
- private readonly allocation;
10
+ private video;
11
11
  private params;
12
12
  private textTracksManager;
13
13
  private masterManifest;
@@ -1,10 +1,5 @@
1
1
  import type { Kbps, IRectangle, VideoQuality } from "@vkontakte/videoplayer-shared";
2
- import type { IInternalTextTrack, IAudioStream } from "../../player/types";
3
- import type { ITuningConfig } from "../../utils/tuningConfig";
4
- export interface IInternalAudioStream extends IAudioStream {
5
- type: "internal";
6
- url: string;
7
- }
2
+ import type { IInternalTextTrack } from "../../player/types";
8
3
  export type ManifestUrl = {
9
4
  id: string;
10
5
  quality: VideoQuality;
@@ -16,8 +11,11 @@ export type ManifestUrl = {
16
11
  export type HLSManifestData = {
17
12
  qualityManifests: ManifestUrl[];
18
13
  textTracks: IInternalTextTrack[];
19
- audioStreams: IInternalAudioStream[];
20
14
  };
21
- type ExtractHLSManifestDataConfig = Pick<ITuningConfig, "manifestRetryInterval" | "manifestRetryMaxCount" | "manifestRetryMaxInterval" | "audioOnly">;
15
+ type ExtractHLSManifestDataConfig = {
16
+ manifestRetryMaxCount: number;
17
+ manifestRetryInterval: number;
18
+ manifestRetryMaxInterval: number;
19
+ };
22
20
  declare const extractHLSManifestData: (masterManifestUrl: string, baseUrl: string | undefined, config: ExtractHLSManifestDataConfig, init?: RequestInit) => Promise<HLSManifestData>;
23
21
  export default extractHLSManifestData;
@@ -5,7 +5,7 @@ export default class MpegProvider implements IProvider {
5
5
  private subscription;
6
6
  private volumeSubscription;
7
7
  private videoState;
8
- private readonly allocation;
8
+ private video;
9
9
  private trackUrls;
10
10
  private params;
11
11
  private textTracksManager;
@@ -10,7 +10,7 @@ export default class WebRTCLiveProvider implements IProvider {
10
10
  private readonly volumeSubscription;
11
11
  private readonly params;
12
12
  private log;
13
- private readonly allocation;
13
+ private video;
14
14
  private videoState;
15
15
  private liveStreamClient;
16
16
  private maxSeekBackTime$;
@@ -1,8 +1,8 @@
1
1
  import type { ITuningConfig } from "../utils/tuningConfig";
2
- import type { IComponentLogger, IError, ILogger, IRange, IRectangle, ISubject, ITracer, IValueSubject, IWarning, Milliseconds, QualityLimits, Seconds } from "@vkontakte/videoplayer-shared";
2
+ import type { ILogger, ISubject, IValueSubject, Milliseconds, Seconds, IRange, IError, QualityLimits, IWarning, IComponentLogger, ITracer, IRectangle } from "@vkontakte/videoplayer-shared";
3
3
  import type { IChromecastInitializer } from "./ChromecastProvider/ChromecastInitializer/types";
4
- import type { IExternalTextTrack, IInternalTextTrack, ITextTrack, IVideoTrack, IVolumeState, PlaybackRate, PlaybackState } from "../player/types";
5
- import type { AudioCodec, HttpConnectionMetrics, HttpConnectionType, HttpDownloadMetrics, IAudioStream, IAudioTrack, ICueSettings, ISources, IVideoStream, SeekState, VideoCodec } from "../player/types";
4
+ import type { HttpConnectionType, HttpConnectionMetrics, HttpDownloadMetrics, VideoCodec, AudioCodec, IAudioStream, IAudioTrack, ICueSettings, ISources, IVideoStream, SeekState } from "../player/types";
5
+ import type { IExternalTextTrack, IInternalTextTrack, ITextTrack, IVideoTrack, IVolumeState, PlaybackState, PlaybackRate } from "../player/types";
6
6
  import type { IStateMachine } from "../utils/StateMachine/types";
7
7
  import type ThroughputEstimator from "../utils/ThroughputEstimator";
8
8
  import type { Scene3D } from "../utils/3d/Scene3D";
@@ -66,7 +66,6 @@ export type IDesiredState = { [K in keyof DesiredStateValues] : IStateMachine<De
66
66
  export interface IProviderOutput {
67
67
  position$: IValueSubject<Seconds>;
68
68
  duration$: IValueSubject<Seconds>;
69
- playedTime$: IValueSubject<Seconds>;
70
69
  volume$: IValueSubject<IVolumeState>;
71
70
  currentVideoSegmentLength$: IValueSubject<number>;
72
71
  currentAudioSegmentLength$: IValueSubject<number>;
@@ -130,7 +129,3 @@ export interface IProviderOutput {
130
129
  playbackState$: IValueSubject<PlaybackState | string>;
131
130
  getCurrentTime$: IValueSubject<(() => number) | null>;
132
131
  }
133
- export interface IProviderAllocationResolution {
134
- readonly target: HTMLMediaElement;
135
- readonly video: HTMLVideoElement | null;
136
- }
@@ -58,7 +58,7 @@ export interface IInitAbrManagerContext {
58
58
  throughput$: IValueSubject<Kbps>;
59
59
  rtt$: IValueSubject<Milliseconds>;
60
60
  throughputVariance$?: IValueSubject<number>;
61
- element: HTMLMediaElement;
61
+ element: HTMLVideoElement;
62
62
  failedVideoTrack: Nullable<IVideoTrack>;
63
63
  abrLogger: IComponentLogger;
64
64
  panelSize?: IRectangle;
@@ -66,7 +66,7 @@ export interface IInitAbrManagerContext {
66
66
  export interface IVideoElementAbrManagerContext {
67
67
  observableVideo: IObservableVideo;
68
68
  elementVisible$: IValueSubject<boolean>;
69
- elementSizeManager?: ElementSizeManager;
69
+ elementSizeManager: ElementSizeManager;
70
70
  }
71
71
  export interface IVideoTracksContext {
72
72
  videoTracksAsc: IVideoTrack[];
@@ -1 +1 @@
1
- export declare const destroy: (video: HTMLMediaElement, clearVideoElementInnerHTML: boolean) => void;
1
+ export declare const destroy: (video: HTMLVideoElement, clearVideoElementInnerHTML: boolean) => void;
@@ -4,5 +4,5 @@
4
4
  * @param {Function} soundNotAllowedCallback - колбэк, который вызовется если нам не разрешили играть со звуком
5
5
  * @return {Promise}<boolean> - получилось начать воспроизведение
6
6
  */
7
- declare const _default: (video: HTMLMediaElement, soundNotAllowedCallback?: () => void) => Promise<boolean>;
7
+ declare const _default: (video: HTMLVideoElement, soundNotAllowedCallback?: () => void) => Promise<boolean>;
8
8
  export default _default;
@@ -12,7 +12,6 @@ export interface IObservableVideo {
12
12
  progress$: IObservable<undefined>;
13
13
  timeUpdate$: IObservable<Seconds>;
14
14
  durationChange$: IObservable<Seconds>;
15
- playedTime$: IObservable<Seconds>;
16
15
  loadStart$: IObservable<void>;
17
16
  loadedMetadata$: IObservable<undefined>;
18
17
  loadedData$: IObservable<undefined>;
@@ -26,4 +25,4 @@ export interface IObservableVideo {
26
25
  leavePip$: IObservable<PictureInPictureEvent>;
27
26
  destroy: () => void;
28
27
  }
29
- export declare const observe: (video: HTMLMediaElement) => IObservableVideo;
28
+ export declare const observe: (video: HTMLVideoElement) => IObservableVideo;
@@ -1,7 +1,6 @@
1
1
  import type { ITuningConfig } from "../../../utils/tuningConfig";
2
- export type AllocateConstraints = Pick<ITuningConfig, "audioVideoSyncRate" | "disableYandexPiP" | "clearVideoElementInnerHTML" | "reuseOwnVideoElement">;
2
+ type AllocateConstraints = Pick<ITuningConfig, "audioVideoSyncRate" | "disableYandexPiP" | "clearVideoElementInnerHTML" | "reuseOwnVideoElement">;
3
3
  type DisposeConstraints = Pick<ITuningConfig, "keepVideoElement" | "clearVideoElementInnerHTML" | "reuseOwnVideoElement">;
4
- export declare const allocate: (container: HTMLElement, { audioVideoSyncRate, disableYandexPiP, clearVideoElementInnerHTML, reuseOwnVideoElement }: ITuningConfig) => HTMLVideoElement;
5
- export declare const initializeAudio: (element: HTMLAudioElement) => HTMLAudioElement;
6
- export declare const dispose: (element: HTMLMediaElement, constraints: DisposeConstraints) => void;
4
+ export declare const allocate: (container: HTMLElement, { audioVideoSyncRate, disableYandexPiP, clearVideoElementInnerHTML, reuseOwnVideoElement }: AllocateConstraints) => HTMLVideoElement;
5
+ export declare const dispose: (videoElement: HTMLVideoElement, { keepVideoElement, clearVideoElementInnerHTML, reuseOwnVideoElement }: DisposeConstraints) => void;
7
6
  export {};
@@ -1,3 +1,3 @@
1
1
  import type { ITuningConfig } from "../../utils/tuningConfig";
2
2
  import type { Stream } from "./parsers/types";
3
- export declare const filterStreams: (streams: Stream[], videoElement: HTMLMediaElement, canPlayTypeRestriction: ITuningConfig["dash"]["checkRepresentationCanPlayType"]) => Stream[];
3
+ export declare const filterStreams: (streams: Stream[], videoElement: HTMLVideoElement, canPlayTypeRestriction: ITuningConfig["dash"]["checkRepresentationCanPlayType"]) => Stream[];
@@ -6,9 +6,9 @@ declare const syncDesiredState: <Value>(desiredState: IStateMachine<Value | unde
6
6
  changed$?: IObservable<Value | undefined>;
7
7
  onError?: IListener<Error | unknown>;
8
8
  }) => ISubscription;
9
- export declare const syncVideoLooped: (video: HTMLMediaElement, desiredState: IStateMachine<boolean>, onError?: IListener<Error | unknown>) => ISubscription;
10
- export declare const syncVideoVolumeState: (video: HTMLMediaElement, desiredState: IStateMachine<IVolumeState>, changed$: IObservable<IVolumeState>, onError?: IListener<Error | unknown>, params?: {
9
+ export declare const syncVideoLooped: (video: HTMLVideoElement, desiredState: IStateMachine<boolean>, onError?: IListener<Error | unknown>) => ISubscription;
10
+ export declare const syncVideoVolumeState: (video: HTMLVideoElement, desiredState: IStateMachine<IVolumeState>, changed$: IObservable<IVolumeState>, onError?: IListener<Error | unknown>, params?: {
11
11
  skipVideoElVolumeSync$: IValueSubject<boolean>;
12
12
  }) => ISubscription;
13
- export declare const syncVideoPlaybackRate: (video: HTMLMediaElement, desiredState: IStateMachine<PlaybackRate>, changed$: IObservable<PlaybackRate>, onError?: IListener<Error | unknown>) => ISubscription;
13
+ export declare const syncVideoPlaybackRate: (video: HTMLVideoElement, desiredState: IStateMachine<PlaybackRate>, changed$: IObservable<PlaybackRate>, onError?: IListener<Error | unknown>) => ISubscription;
14
14
  export default syncDesiredState;
@@ -1,2 +1,2 @@
1
1
  import type { Nullable } from "@vkontakte/videoplayer-shared";
2
- export declare const changePlaybackRate: (element: Nullable<HTMLMediaElement>, targetPlaybackRate: number) => void;
2
+ export declare const changePlaybackRate: (element: Nullable<HTMLVideoElement>, targetPlaybackRate: number) => void;
@@ -430,8 +430,6 @@ export type ITuningConfig = {
430
430
  * Устанавливаем длительность видео на основе последнего сегмента.
431
431
  */
432
432
  useDurationFromSegments: boolean;
433
- /** включен режим проигрывания только аудио (без видео) */
434
- audioOnly: boolean;
435
433
  };
436
434
  export type IOptionalTuningConfig = RecursivePartial<ITuningConfig>;
437
435
  export declare const fillDefault: (partial: IOptionalTuningConfig) => ITuningConfig;
@@ -1,12 +0,0 @@
1
- import type { ITuningConfig } from "../../utils/tuningConfig";
2
- import type { IProviderAllocationResolution } from "../types";
3
- /**
4
- * Разрешает аллокацию медиа-элемента для провайдера.
5
- *
6
- * Возвращает два поля:
7
- * - `target: HTMLMediaElement` — элемент для управления воспроизведением (play, pause, load, currentTime и т.д.).
8
- * Всегда присутствует, тип определяется входным контейнером: HTMLVideoElement для видео, HTMLAudioElement для аудио.
9
- * - `video: HTMLVideoElement | null` — видеоэлемент для UI-специфичных операций (textTracks, getBoundingClientRect).
10
- * Равен `target` если это HTMLVideoElement, иначе `null` для аудио-режима.
11
- */
12
- export declare function resolveAllocation(container: HTMLElement, tuningConfig: ITuningConfig): IProviderAllocationResolution;
@@ -1,3 +0,0 @@
1
- import type { Seconds } from "@vkontakte/videoplayer-shared";
2
- declare const _default: (ranges: TimeRanges) => Seconds;
3
- export default _default;