@vkontakte/videoplayer-core 2.0.104-dev.7ccfc328.0 → 2.0.105-dev.27e8f5c9.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.104-dev.7ccfc328.0",
3
+ "version": "2.0.105-dev.27e8f5c9.0",
4
4
  "author": "vk.com",
5
5
  "description": "Videoplayer core library based on the vk.com platform",
6
6
  "homepage": "https://vk.com",
@@ -388,6 +388,7 @@ export interface IConfig {
388
388
  sources: ISources;
389
389
  meta?: IMetadata;
390
390
  failoverHosts?: string[];
391
+ volumeMultiplier?: number;
391
392
  }
392
393
  export interface ISources {
393
394
  [VideoFormat.MPEG]?: IMpegSource;
@@ -10,6 +10,7 @@ interface IParams extends IProviderDependencies {
10
10
  failoverHosts: string[];
11
11
  desiredState: IDesiredState;
12
12
  tuning: ITuningConfig;
13
+ volumeMultiplier?: number;
13
14
  }
14
15
  export default class ProviderContainer implements IProviderContainer {
15
16
  current$: IValueSubject<IProviderEntry>;
@@ -22,6 +23,7 @@ export default class ProviderContainer implements IProviderContainer {
22
23
  private log;
23
24
  private params;
24
25
  private failoverIndex;
26
+ private volumeMultiplierManager;
25
27
  constructor(params: IParams);
26
28
  init(): void;
27
29
  destroy(): void;
@@ -0,0 +1,9 @@
1
+ import { IValueSubject } from '@vkontakte/videoplayer-shared';
2
+ export declare class VolumeMultiplierManager {
3
+ private video$;
4
+ private volumeMultiplier;
5
+ constructor(video$: IValueSubject<HTMLVideoElement | undefined>, volumeMultiplier: number, enabled: boolean);
6
+ private isSupported;
7
+ private listener;
8
+ destroy(): void;
9
+ }
@@ -0,0 +1,9 @@
1
+ interface IAudioContext {
2
+ audioCtx: AudioContext;
3
+ gainNode: GainNode;
4
+ }
5
+ /**
6
+ * Возвращает AudioContext
7
+ */
8
+ export declare function getAudioContext(): IAudioContext;
9
+ export {};
@@ -0,0 +1 @@
1
+ export { VolumeMultiplierManager } from './VolumeMultiplierManager';
@@ -157,6 +157,7 @@ export type ITuningConfig = {
157
157
  speedFadeTime: Milliseconds;
158
158
  speedFadeThreshold: Milliseconds;
159
159
  };
160
+ useVolumeMultiplier: boolean;
160
161
  };
161
162
  export type IOptionalTuningConfig = RecursivePartial<ITuningConfig> & {
162
163
  configName: ITuningConfig['configName'];