quickvo-sdk-js 0.2.1 → 0.2.2

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/index.js CHANGED
@@ -6914,9 +6914,9 @@ class MediaStreams extends RoomBase {
6914
6914
  $ = new MediaStream();
6915
6915
  });
6916
6916
  /**
6917
- * 获取可用音频媒体设备
6917
+ * 获取可用音频输出媒体设备
6918
6918
  */
6919
- W(this, "getEnumerateAudioDevices", async () => !navigator.mediaDevices || !navigator.mediaDevices.enumerateDevices ? (console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m", "color:#0097ff;", "------->quickvo: 不支持 enumerateDevices"), []) : (await navigator.mediaDevices.enumerateDevices().then(($) => {
6919
+ W(this, "getEnumerateAudioOutputDevices", async () => !navigator.mediaDevices || !navigator.mediaDevices.enumerateDevices ? (console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m", "color:#0097ff;", "------->quickvo: 不支持 enumerateDevices"), []) : (await navigator.mediaDevices.enumerateDevices().then(($) => {
6920
6920
  this.mediaDevices = $.filter((U) => U.kind === "audiooutput");
6921
6921
  }).catch(function($) {
6922
6922
  console.log("\x1B[38;2;0;151;255m%c%s\x1B[0m", "color:#0097ff;", "------->quickvo: err", $);
@@ -6924,14 +6924,14 @@ class MediaStreams extends RoomBase {
6924
6924
  /**
6925
6925
  * 设置音频输出设备
6926
6926
  */
6927
- W(this, "setAudioOutput", ($) => {
6927
+ W(this, "setAudioOutputDevice", ($) => {
6928
6928
  var R;
6929
6929
  const U = this.audioMediaStreamContextMap.values();
6930
6930
  for (const N of U)
6931
6931
  (R = N.audioContext) == null || R.setSinkId($);
6932
6932
  });
6933
6933
  // 获取当前音频输出设备
6934
- W(this, "getAudioOutput", () => this.audioOutput);
6934
+ W(this, "getAudioOutputDevice", () => this.audioOutput);
6935
6935
  }
6936
6936
  }
6937
6937
  class RoomUsers extends MediaStreams {