quickvo-sdk-js 0.4.8 → 0.5.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.
- package/dist/index.js +4657 -4623
- package/dist/index.umd.cjs +2 -2
- package/dist/room/RoomMedias.d.ts +1 -5
- package/dist/room/RoomPeer.d.ts +10 -0
- package/dist/room/RoomUsers.d.ts +8 -0
- package/dist/room/mediaStreams/AudioMediaContext.d.ts +4 -0
- package/package.json +2 -2
|
@@ -61,16 +61,12 @@ export declare class RoomMedias extends RoomBase {
|
|
|
61
61
|
* @returns deviceId 设备ID
|
|
62
62
|
*/
|
|
63
63
|
getMediaDeviceKind: (mediaDeviceKind: MediaDeviceKind) => string | undefined;
|
|
64
|
-
/**
|
|
65
|
-
* 替换发射器媒体流
|
|
66
|
-
*/
|
|
67
|
-
replaceSenderStream: (mediaTypes: K_mediaType[] | undefined, isReal: Boolean) => Promise<void>;
|
|
68
64
|
/**
|
|
69
65
|
* 设置正在使用的媒体设备
|
|
70
66
|
* @param mediaDeviceKind 设备类型 "audioinput" | "audiooutput" | "videoinput"
|
|
71
67
|
* @param deviceId 设备ID
|
|
72
68
|
*/
|
|
73
|
-
|
|
69
|
+
setDeviceKind: (mediaDeviceKind: MediaDeviceKind, deviceId: string) => Promise<void>;
|
|
74
70
|
/**
|
|
75
71
|
* 设置音频输出设备
|
|
76
72
|
* @param deviceId 设备ID
|
package/dist/room/RoomPeer.d.ts
CHANGED
|
@@ -16,6 +16,16 @@ export declare class RoomPeer extends RoomUsers {
|
|
|
16
16
|
connectedResolveMap: Map<string, Function>;
|
|
17
17
|
constructor();
|
|
18
18
|
initPeer: () => void;
|
|
19
|
+
/**
|
|
20
|
+
* 设置正在使用的媒体设备
|
|
21
|
+
* @param mediaDeviceKind 设备类型 "audioinput" | "audiooutput" | "videoinput"
|
|
22
|
+
* @param deviceId 设备ID
|
|
23
|
+
*/
|
|
24
|
+
setMediaDeviceKind: (mediaDeviceKind: MediaDeviceKind, deviceId: string) => Promise<void>;
|
|
25
|
+
/**
|
|
26
|
+
* 替换发射器媒体流
|
|
27
|
+
*/
|
|
28
|
+
replaceSenderStream: (mediaTypes: K_mediaType[] | undefined, isReal: Boolean) => Promise<void>;
|
|
19
29
|
/**
|
|
20
30
|
* 获取发射器轨道信息
|
|
21
31
|
*/
|
package/dist/room/RoomUsers.d.ts
CHANGED
|
@@ -15,10 +15,18 @@ export declare class RoomUsers extends RoomMedias {
|
|
|
15
15
|
* 设置音频过滤
|
|
16
16
|
*/
|
|
17
17
|
setAudioFilter: (options?: Partial<UserAudioFilterOptions>) => Promise<void>;
|
|
18
|
+
/**
|
|
19
|
+
* 设置增强音量
|
|
20
|
+
* @param userId
|
|
21
|
+
* @param mediaType
|
|
22
|
+
* @param gain
|
|
23
|
+
*/
|
|
24
|
+
setEnhanceGain: (userId: string, mediaType: K_mediaType, gain: number) => Promise<void>;
|
|
18
25
|
/**
|
|
19
26
|
* 设置音量
|
|
20
27
|
* @param userId
|
|
21
28
|
* @param mediaType
|
|
29
|
+
* @param gain
|
|
22
30
|
*/
|
|
23
31
|
setVolume: (userId: string, mediaType: K_mediaType, gain: number) => void;
|
|
24
32
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "quickvo-sdk-js",
|
|
3
3
|
"description": "提供快捷接入单对单、单对多、群体会议、舞台会议等音视频功能。",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.5.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"pako": "^2.1.0",
|
|
23
|
-
"pr-task-queue": "^0.1.
|
|
23
|
+
"pr-task-queue": "^0.1.8",
|
|
24
24
|
"pr-tools": "^1.5.1",
|
|
25
25
|
"pr-ws": "^0.2.5",
|
|
26
26
|
"sdp-transform": "^2.15.0"
|