@4players/odin-common 2.4.13 → 2.5.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/lib/plugin/api.d.ts +4 -4
- package/package.json +1 -1
package/lib/plugin/api.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export declare namespace Backend {
|
|
|
3
3
|
type UID = string;
|
|
4
4
|
type OnStatusChanged = (status: 'started' | 'stopped') => void;
|
|
5
5
|
type OnEvent = (method: string, properties: unknown) => void;
|
|
6
|
-
type Version = '
|
|
6
|
+
type Version = '2';
|
|
7
7
|
interface Plugin {
|
|
8
8
|
readonly version: Version;
|
|
9
9
|
readonly playbackVolume: Volume;
|
|
@@ -53,7 +53,7 @@ export declare namespace Backend {
|
|
|
53
53
|
interface AudioMedia extends Media {
|
|
54
54
|
readonly volume: Volume;
|
|
55
55
|
readonly activity: Activity;
|
|
56
|
-
setVolume(value: Volume): void
|
|
56
|
+
setVolume(value: Volume): Promise<void>;
|
|
57
57
|
}
|
|
58
58
|
interface CreateAudioPlaybackParameters {
|
|
59
59
|
readonly uid: UID;
|
|
@@ -76,8 +76,8 @@ export declare namespace Backend {
|
|
|
76
76
|
readonly vad?: VadConfig;
|
|
77
77
|
readonly apm?: ApmConfig;
|
|
78
78
|
setVad(config: VadConfig): void;
|
|
79
|
-
setApm(config: ApmConfig): void
|
|
80
|
-
setDevice(device: DeviceParameters): void
|
|
79
|
+
setApm(config: ApmConfig): Promise<void>;
|
|
80
|
+
setDevice(device: DeviceParameters): Promise<void>;
|
|
81
81
|
}
|
|
82
82
|
interface VideoCapture extends Media {
|
|
83
83
|
mediaStream?: MediaStream;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@4players/odin-common",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.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",
|