quickvo-sdk-js 0.5.5 → 0.5.7

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.
@@ -12,13 +12,19 @@ export declare class RoomCalls extends RoomPeer {
12
12
  * @example quickvo.setLocalStream('microphoneCamera_audio', false)
13
13
  * @returns Promise<Streams>
14
14
  */
15
- setLocalStream: (mediaType: K_mediaType, active: boolean) => Promise<Streams>;
15
+ setLocalStream: (mediaTypes: K_mediaType[], active: boolean) => Promise<Streams>;
16
16
  /**
17
17
  * 设置正在使用的媒体设备
18
18
  * @param mediaDeviceKind 设备类型 "audioinput" | "audiooutput" | "videoinput"
19
19
  * @param deviceId 设备ID
20
20
  */
21
21
  setMediaDeviceKind: (mediaDeviceKind: MediaDeviceKind, deviceId: string) => Promise<void>;
22
+ /**
23
+ * 设置正在使用的媒体设备
24
+ * @param mediaDeviceKind 设备类型 "audioinput" | "audiooutput" | "videoinput"
25
+ * @param deviceId 设备ID
26
+ */
27
+ changeScreenSharing: (mediaTypes: ("screenSharing_video" | "screenSharing_audio")[]) => Promise<void>;
22
28
  /**
23
29
  * 添加广播事件
24
30
  * @param notify Notify
@@ -107,5 +113,5 @@ export declare class RoomCalls extends RoomPeer {
107
113
  /**
108
114
  * 提前建连
109
115
  */
110
- earlyConnect: () => void;
116
+ earlyConnect: (mediaTypes?: K_mediaType[]) => void;
111
117
  }
@@ -52,7 +52,7 @@ export declare class RoomMedias extends RoomBase {
52
52
  /**
53
53
  * 初始化本地流
54
54
  */
55
- initLocalStream: (mediaType: K_mediaType) => Promise<void>;
55
+ initLocalStream: (mediaType: K_mediaType | "microphoneCamera" | "screenSharing") => Promise<void>;
56
56
  /**
57
57
  * 获取正在使用的媒体设备ID
58
58
  * @param mediaDeviceKind 设备类型 "audioinput" | "audiooutput" | "videoinput"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "quickvo-sdk-js",
3
3
  "description": "提供快捷接入单对单、单对多、群体会议、舞台会议等音视频功能。",
4
- "version": "0.5.5",
4
+ "version": "0.5.7",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"