quickvo-sdk-js 0.5.7 → 0.5.8
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 +16 -2
- package/dist/index.js +95 -94
- package/dist/index.umd.cjs +1 -1
- package/dist/room/Room.d.ts +2 -1
- package/dist/room/RoomBase.d.ts +2 -5
- package/dist/room/RoomCalls.d.ts +8 -5
- package/dist/room/RoomMedias.d.ts +2 -2
- package/dist/room/RoomPeer.d.ts +2 -2
- package/dist/room/RoomUsers.d.ts +2 -2
- package/package.json +1 -1
package/dist/room/Room.d.ts
CHANGED
package/dist/room/RoomBase.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export declare class RoomBase {
|
|
|
9
9
|
options: Options;
|
|
10
10
|
prohibitNotify: boolean;
|
|
11
11
|
isEarly: boolean;
|
|
12
|
+
isInRoom: boolean;
|
|
12
13
|
taskQueue: PrTaskQueue<"closeTrack" | "subscribe" | "joinRoom" | "createWs" | "createSession" | "ice" | "createTrack">;
|
|
13
14
|
roomState: K_roomState;
|
|
14
15
|
createAt: number;
|
|
@@ -23,7 +24,7 @@ export declare class RoomBase {
|
|
|
23
24
|
screenSharing_video: string;
|
|
24
25
|
screenSharing_audio: string;
|
|
25
26
|
};
|
|
26
|
-
constructor();
|
|
27
|
+
constructor(options: QuickOptions);
|
|
27
28
|
/**
|
|
28
29
|
* 获取房间信息
|
|
29
30
|
*/
|
|
@@ -49,10 +50,6 @@ export declare class RoomBase {
|
|
|
49
50
|
* 设置SDK属性
|
|
50
51
|
*/
|
|
51
52
|
setOptions: (options: Partial<Options>) => Promise<void>;
|
|
52
|
-
/**
|
|
53
|
-
* 初始化通讯实例
|
|
54
|
-
*/
|
|
55
|
-
initCwsCall: () => void;
|
|
56
53
|
/**
|
|
57
54
|
* 获取媒体设备错误信息
|
|
58
55
|
*/
|
package/dist/room/RoomCalls.d.ts
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { K_mediaType } from '../enums/mediaType';
|
|
2
|
-
import { Notify, RoomOptions, RoomUser, Streams } from '../types';
|
|
2
|
+
import { Notify, QuickOptions, RoomOptions, RoomUser, Streams } from '../types';
|
|
3
3
|
import { RoomPeer } from './RoomPeer';
|
|
4
4
|
export declare class RoomCalls extends RoomPeer {
|
|
5
5
|
#private;
|
|
6
6
|
sdk_service_version: string;
|
|
7
|
-
constructor();
|
|
7
|
+
constructor(options: QuickOptions);
|
|
8
8
|
/**
|
|
9
9
|
* 设置本地流
|
|
10
10
|
* @param mediaType MediaType
|
|
11
11
|
* @param active 激活状态
|
|
12
12
|
* @example quickvo.setLocalStream('microphoneCamera_audio', false)
|
|
13
|
+
* @example quickvo.setLocalStream(['microphoneCamera_audio', 'microphoneCamera_video'], false)
|
|
13
14
|
* @returns Promise<Streams>
|
|
14
15
|
*/
|
|
15
|
-
setLocalStream: (mediaTypes: K_mediaType[], active: boolean) => Promise<Streams>;
|
|
16
|
+
setLocalStream: (mediaTypes: K_mediaType[] | K_mediaType, active: boolean) => Promise<Streams>;
|
|
16
17
|
/**
|
|
17
18
|
* 设置正在使用的媒体设备
|
|
18
19
|
* @param mediaDeviceKind 设备类型 "audioinput" | "audiooutput" | "videoinput"
|
|
@@ -20,7 +21,7 @@ export declare class RoomCalls extends RoomPeer {
|
|
|
20
21
|
*/
|
|
21
22
|
setMediaDeviceKind: (mediaDeviceKind: MediaDeviceKind, deviceId: string) => Promise<void>;
|
|
22
23
|
/**
|
|
23
|
-
*
|
|
24
|
+
* 改变屏幕共享流
|
|
24
25
|
* @param mediaDeviceKind 设备类型 "audioinput" | "audiooutput" | "videoinput"
|
|
25
26
|
* @param deviceId 设备ID
|
|
26
27
|
*/
|
|
@@ -111,7 +112,9 @@ export declare class RoomCalls extends RoomPeer {
|
|
|
111
112
|
*/
|
|
112
113
|
createTrack: (mediaTypes: K_mediaType[]) => Promise<unknown>;
|
|
113
114
|
/**
|
|
114
|
-
*
|
|
115
|
+
* 预连接
|
|
116
|
+
* @param mediaTypes MediaType[]
|
|
117
|
+
* @example quickvo.earlyConnect(['microphoneCamera_audio', 'microphoneCamera_video'])
|
|
115
118
|
*/
|
|
116
119
|
earlyConnect: (mediaTypes?: K_mediaType[]) => void;
|
|
117
120
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { K_mediaType } from '../enums/mediaType';
|
|
2
|
-
import { Streams } from '../types';
|
|
2
|
+
import { QuickOptions, Streams } from '../types';
|
|
3
3
|
import { AudioMediaContext } from './mediaStreams/AudioMediaContext';
|
|
4
4
|
import { VideoMediaContext } from './mediaStreams/VideoMediaContext';
|
|
5
5
|
import { RoomBase } from './RoomBase';
|
|
6
6
|
export declare class RoomMedias extends RoomBase {
|
|
7
7
|
#private;
|
|
8
|
-
constructor();
|
|
8
|
+
constructor(options: QuickOptions);
|
|
9
9
|
/**
|
|
10
10
|
* 房间所有用户所有媒体流变化
|
|
11
11
|
*/
|
package/dist/room/RoomPeer.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { K_callStrategy } from '../enums/callStrategy';
|
|
2
2
|
import { K_mediaType } from '../enums/mediaType';
|
|
3
|
-
import { UserTrack } from '../types';
|
|
3
|
+
import { QuickOptions, UserTrack } from '../types';
|
|
4
4
|
import { RoomUsers } from './RoomUsers';
|
|
5
5
|
export declare class RoomPeer extends RoomUsers {
|
|
6
6
|
#private;
|
|
@@ -13,7 +13,7 @@ export declare class RoomPeer extends RoomUsers {
|
|
|
13
13
|
roundTripTime: string;
|
|
14
14
|
jitter: string;
|
|
15
15
|
};
|
|
16
|
-
constructor();
|
|
16
|
+
constructor(options: QuickOptions);
|
|
17
17
|
initPeer: () => void;
|
|
18
18
|
/**
|
|
19
19
|
* 替换发射器媒体流
|
package/dist/room/RoomUsers.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { K_mediaType } from '../enums/mediaType';
|
|
2
|
-
import { RoomUser, UserTrack } from '../types';
|
|
2
|
+
import { QuickOptions, RoomUser, UserTrack } from '../types';
|
|
3
3
|
import { RoomMedias } from './RoomMedias';
|
|
4
4
|
import { UserAudioFilterOptions } from './mediaStreams/AudioMediaContext';
|
|
5
5
|
export declare class RoomUsers extends RoomMedias {
|
|
6
|
-
constructor();
|
|
6
|
+
constructor(options: QuickOptions);
|
|
7
7
|
/**
|
|
8
8
|
* 获取最大音量用户
|
|
9
9
|
*/
|