quickvo-sdk-js 0.1.5 → 0.1.6
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/README.md +2 -7
- package/dist/PrAsyncQueue.d.ts +28 -0
- package/dist/QuickVO.d.ts +5 -0
- package/dist/index.js +4421 -4430
- package/dist/index.umd.cjs +2 -2
- package/dist/room/CallsWebSocket.d.ts +1 -0
- package/dist/room/RoomBase.d.ts +0 -3
- package/dist/room/RoomCalls.d.ts +1 -6
- package/dist/room/RoomPeer.d.ts +1 -0
- package/dist/room/mediaStreamsContext/AudioMediaStreamContext.d.ts +2 -2
- package/dist/room/mediaStreamsContext/VideoMediaStreamContext.d.ts +1 -1
- package/dist/tools.d.ts +2 -0
- package/dist/types.d.ts +0 -4
- package/package.json +43 -43
package/README.md
CHANGED
|
@@ -184,11 +184,6 @@ interface RoomOptions {
|
|
|
184
184
|
* @enum 2 直播通话类型(间创建者默认拥有推拉流权限,其他加入者默认拥有订阅权限)
|
|
185
185
|
*/
|
|
186
186
|
callType: number
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* 自动订阅流
|
|
190
|
-
*/
|
|
191
|
-
autoSubscribe?: boolean
|
|
192
187
|
}
|
|
193
188
|
```
|
|
194
189
|
|
|
@@ -300,10 +295,10 @@ quickvo.setLocalStream('microphoneCamera_audio', true).then((streams) => {
|
|
|
300
295
|
/**
|
|
301
296
|
* 加入房间
|
|
302
297
|
* @param roomOptions RoomOptions
|
|
303
|
-
* @example quickvo.joinRoom({ userId: '', roomId: '', sdkToken: '', callType: '1'
|
|
298
|
+
* @example quickvo.joinRoom({ userId: '', roomId: '', sdkToken: '', callType: '1' })
|
|
304
299
|
* @returns Promise<boolean>
|
|
305
300
|
*/
|
|
306
|
-
const options: RoomOptions = { userId: '', roomId: '', sdkToken: '', callType: '1'
|
|
301
|
+
const options: RoomOptions = { userId: '', roomId: '', sdkToken: '', callType: '1' }
|
|
307
302
|
quickvo.joinRoom(options)
|
|
308
303
|
```
|
|
309
304
|
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
interface PrAsyncQueueItem {
|
|
2
|
+
key: string;
|
|
3
|
+
func: () => Promise<any>;
|
|
4
|
+
resolve: (value: unknown) => any;
|
|
5
|
+
reject: (reason?: any) => any;
|
|
6
|
+
timeout: number;
|
|
7
|
+
}
|
|
8
|
+
interface Options {
|
|
9
|
+
key?: string;
|
|
10
|
+
timeout?: number;
|
|
11
|
+
}
|
|
12
|
+
export declare class PrAsyncQueue {
|
|
13
|
+
#private;
|
|
14
|
+
queue: PrAsyncQueueItem[];
|
|
15
|
+
activeIndex: number;
|
|
16
|
+
activePromise: PrAsyncQueueItem | undefined;
|
|
17
|
+
options: {
|
|
18
|
+
timeout: number;
|
|
19
|
+
};
|
|
20
|
+
constructor(options?: Options);
|
|
21
|
+
/**
|
|
22
|
+
* 添加
|
|
23
|
+
* @param func 待执行函数
|
|
24
|
+
* @returns 待执行函数结果
|
|
25
|
+
*/
|
|
26
|
+
add: (func: () => Promise<any>, options?: Options) => Promise<unknown>;
|
|
27
|
+
}
|
|
28
|
+
export {};
|
package/dist/QuickVO.d.ts
CHANGED