assistsx-js 0.0.2033 → 0.0.2034
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/dist/AssistsXAsync.d.ts +1 -1
- package/dist/AssistsXAsync.js +1 -1
- package/package.json +1 -1
- package/src/AssistsXAsync.ts +1 -0
package/dist/AssistsXAsync.d.ts
CHANGED
|
@@ -381,6 +381,6 @@ export declare class AssistsXAsync {
|
|
|
381
381
|
*/
|
|
382
382
|
static openUrlInBrowser(url: string, timeout?: number): Promise<boolean>;
|
|
383
383
|
static download(url: string, timeout?: number): Promise<string | null | undefined>;
|
|
384
|
-
static audioPlayFromFile(filePath: string, timeout?: number): Promise<string | null | undefined>;
|
|
384
|
+
static audioPlayFromFile(filePath: string, volume?: number | undefined, timeout?: number): Promise<string | null | undefined>;
|
|
385
385
|
static audioStop(timeout?: number): Promise<boolean | null | undefined>;
|
|
386
386
|
}
|
package/dist/AssistsXAsync.js
CHANGED
|
@@ -645,7 +645,7 @@ export class AssistsXAsync {
|
|
|
645
645
|
});
|
|
646
646
|
return response.getDataOrDefault(null);
|
|
647
647
|
}
|
|
648
|
-
static async audioPlayFromFile(filePath, timeout) {
|
|
648
|
+
static async audioPlayFromFile(filePath, volume = undefined, timeout) {
|
|
649
649
|
const response = await this.asyncCall(CallMethod.audioPlayFromFile, {
|
|
650
650
|
args: { filePath },
|
|
651
651
|
timeout,
|
package/package.json
CHANGED
package/src/AssistsXAsync.ts
CHANGED
|
@@ -927,6 +927,7 @@ export class AssistsXAsync {
|
|
|
927
927
|
}
|
|
928
928
|
public static async audioPlayFromFile(
|
|
929
929
|
filePath: string,
|
|
930
|
+
volume: number | undefined = undefined,
|
|
930
931
|
timeout?: number
|
|
931
932
|
): Promise<string | null | undefined> {
|
|
932
933
|
const response = await this.asyncCall(CallMethod.audioPlayFromFile, {
|