quickvo-sdk-js 0.6.8 → 0.7.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.
@@ -25,7 +25,7 @@ export declare class RoomCalls extends RoomPeer {
25
25
  * @param mediaDeviceKind 设备类型 "audioinput" | "audiooutput" | "videoinput"
26
26
  * @param deviceId 设备ID
27
27
  */
28
- setMediaDeviceKind: (mediaDeviceKind: MediaDeviceKind, deviceId: string) => Promise<Streams>;
28
+ setMediaDeviceKind: (mediaDeviceKind: MediaDeviceKind, deviceId: string) => Promise<boolean | Streams>;
29
29
  /**
30
30
  * 改变屏幕共享流
31
31
  * @param mediaDeviceKind 设备类型 "audioinput" | "audiooutput" | "videoinput"
@@ -73,18 +73,22 @@ export declare class RoomMedias extends RoomBase {
73
73
  * @returns deviceId 设备ID
74
74
  */
75
75
  getMediaDeviceKind: (mediaDeviceKind: MediaDeviceKind) => string | undefined;
76
+ /**
77
+ * 更改音频输出
78
+ */
79
+ changeAudiooutput: () => void;
76
80
  /**
77
81
  * 设置正在使用的媒体设备
78
82
  * @param mediaDeviceKind 设备类型 "audioinput" | "audiooutput" | "videoinput"
79
83
  * @param deviceId 设备ID
80
84
  */
81
- setDeviceKind: (mediaDeviceKind: MediaDeviceKind, deviceId: string) => Promise<void>;
85
+ setDeviceKind: (mediaDeviceKind: MediaDeviceKind, deviceId: string) => void;
82
86
  /**
83
87
  * 设置音频输出设备
84
88
  * @param deviceId 设备ID
85
89
  * @returns
86
90
  */
87
- setAudioOutputDevice: (deviceId: string) => Promise<void>;
91
+ setAudioOutputDevice: (deviceId: string) => void;
88
92
  /**
89
93
  * 获取可用设备
90
94
  * @param mediaDeviceKind 设备类型 "audioinput" | "audiooutput" | "videoinput"
@@ -15,6 +15,7 @@ export declare class RoomPeer extends RoomUsers {
15
15
  };
16
16
  constructor(options: QuickOptions);
17
17
  initPeer: () => void;
18
+ getPhoneyStreams: (mediaType: K_mediaType) => MediaStream;
18
19
  /**
19
20
  * 替换发射器媒体流
20
21
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "quickvo-sdk-js",
3
3
  "description": "提供快捷接入单对单、单对多、群体会议、舞台会议等音视频功能。",
4
- "version": "0.6.8",
4
+ "version": "0.7.0",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"