@4players/odin-common 3.1.0 → 3.2.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.
@@ -77,9 +77,7 @@ export declare namespace Backend {
77
77
  close(): void;
78
78
  }
79
79
  interface AudioMedia extends Media {
80
- readonly volume: PlaybackVolume | CaptureVolume;
81
80
  readonly activity: Activity;
82
- setVolume(value: PlaybackVolume | CaptureVolume): Promise<void>;
83
81
  }
84
82
  interface CreateAudioPlaybackParameters {
85
83
  readonly uid: UID;
@@ -91,8 +89,10 @@ export declare namespace Backend {
91
89
  readonly customType?: string;
92
90
  }
93
91
  interface AudioPlayback extends AudioMedia {
92
+ readonly volume: PlaybackVolume;
94
93
  readonly uid: UID;
95
94
  jitterStats: JitterStats;
95
+ setVolume(value: PlaybackVolume): Promise<void>;
96
96
  }
97
97
  interface CreateAudioCaptureParameters extends Partial<DeviceParameters> {
98
98
  readonly volume?: CaptureVolume;
@@ -100,11 +100,13 @@ export declare namespace Backend {
100
100
  readonly apm?: ApmConfig;
101
101
  }
102
102
  interface AudioCapture extends AudioMedia {
103
+ readonly volume: CaptureVolume;
103
104
  readonly vad?: VadConfig;
104
105
  readonly apm?: ApmConfig;
105
106
  setVad(config: VadConfig): void;
106
107
  setApm(config: ApmConfig): Promise<void>;
107
108
  setDevice(device: DeviceParameters): Promise<void>;
109
+ setVolume(value: CaptureVolume): Promise<void>;
108
110
  }
109
111
  interface VideoCapture extends Media {
110
112
  mediaStream?: MediaStream;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@4players/odin-common",
3
- "version": "3.1.0",
3
+ "version": "3.2.0",
4
4
  "description": "A collection of commonly used type definitions and utility functions across ODIN web projects",
5
5
  "author": "Josho Bleicker <josho.bleicker@4players.io> (https://www.4players.io)",
6
6
  "homepage": "https://www.4players.io",