assistsx-js 0.0.2033 → 0.0.2035

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.
@@ -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
  }
@@ -645,9 +645,9 @@ 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
- args: { filePath },
650
+ args: { filePath, volume },
651
651
  timeout,
652
652
  });
653
653
  return response.getDataOrDefault(null);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "assistsx-js",
3
- "version": "0.0.2033",
3
+ "version": "0.0.2035",
4
4
  "description": "assistsx-js自动化开发SDK",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -927,10 +927,11 @@ 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, {
933
- args: { filePath },
934
+ args: { filePath, volume },
934
935
  timeout,
935
936
  });
936
937
  return response.getDataOrDefault(null);