quickvo-sdk-js 0.6.6 → 0.6.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/dist/index.js +1407 -1369
- package/dist/index.umd.cjs +2 -2
- package/dist/room/RoomBase.d.ts +4 -0
- package/dist/room/RoomCalls.d.ts +1 -1
- package/dist/room/RoomMedias.d.ts +12 -2
- package/package.json +1 -1
- package/dist/room/mediaStreams/AudioMediaContext copy.d.ts +0 -48
package/dist/room/RoomBase.d.ts
CHANGED
package/dist/room/RoomCalls.d.ts
CHANGED
|
@@ -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<
|
|
28
|
+
setMediaDeviceKind: (mediaDeviceKind: MediaDeviceKind, deviceId: string) => Promise<Streams>;
|
|
29
29
|
/**
|
|
30
30
|
* 改变屏幕共享流
|
|
31
31
|
* @param mediaDeviceKind 设备类型 "audioinput" | "audiooutput" | "videoinput"
|
|
@@ -5,6 +5,7 @@ import { VideoMediaContext } from './mediaStreams/VideoMediaContext';
|
|
|
5
5
|
import { RoomBase } from './RoomBase';
|
|
6
6
|
export declare class RoomMedias extends RoomBase {
|
|
7
7
|
#private;
|
|
8
|
+
localStreamsActionMap: Map<K_mediaType, Boolean>;
|
|
8
9
|
constructor(options: QuickOptions);
|
|
9
10
|
/**
|
|
10
11
|
* 房间所有用户所有媒体流变化
|
|
@@ -50,13 +51,22 @@ export declare class RoomMedias extends RoomBase {
|
|
|
50
51
|
*/
|
|
51
52
|
setMediaTrackConstraints: (mediaType: K_mediaType, constraints: MediaTrackConstraints) => Promise<void>;
|
|
52
53
|
/**
|
|
53
|
-
*
|
|
54
|
+
* 停止本地流
|
|
54
55
|
*/
|
|
55
|
-
|
|
56
|
+
stopLocalStreams: (mediaTypes?: K_mediaType[]) => Promise<void>;
|
|
57
|
+
addLocalStream: (mediaType: K_mediaType, stream: MediaStream) => void;
|
|
56
58
|
/**
|
|
57
59
|
* 初始化本地流
|
|
58
60
|
*/
|
|
59
61
|
initLocalStream: (mediaType: K_mediaType | "microphoneCamera" | "screenSharing") => Promise<void>;
|
|
62
|
+
/**
|
|
63
|
+
* 获取本地的数据流
|
|
64
|
+
*/
|
|
65
|
+
getLocalStream: (mediaType: K_mediaType) => MediaStream | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* 获取本地的某些数据流
|
|
68
|
+
*/
|
|
69
|
+
getLocalStreams: (mediaTypes?: K_mediaType[]) => Streams;
|
|
60
70
|
/**
|
|
61
71
|
* 获取正在使用的媒体设备ID
|
|
62
72
|
* @param mediaDeviceKind 设备类型 "audioinput" | "audiooutput" | "videoinput"
|
package/package.json
CHANGED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
export interface UserAudioFilterOptions {
|
|
2
|
-
autoGainControl: boolean;
|
|
3
|
-
noiseSuppression: boolean;
|
|
4
|
-
echoCancellation: boolean;
|
|
5
|
-
}
|
|
6
|
-
export declare class AudioMediaContext {
|
|
7
|
-
options: UserAudioFilterOptions;
|
|
8
|
-
kind: "audio";
|
|
9
|
-
stream: MediaStream;
|
|
10
|
-
audio: HTMLAudioElement;
|
|
11
|
-
audioContext: AudioContext;
|
|
12
|
-
mediaStreamAudioSourceNode: MediaStreamAudioSourceNode;
|
|
13
|
-
autoGainNode: GainNode;
|
|
14
|
-
biquadFilterNode: BiquadFilterNode;
|
|
15
|
-
delayNode: DelayNode;
|
|
16
|
-
gainNode: GainNode;
|
|
17
|
-
analyserNode: AnalyserNode;
|
|
18
|
-
analyserArrayData: Uint8Array;
|
|
19
|
-
constructor(track: MediaStreamTrack);
|
|
20
|
-
/**
|
|
21
|
-
* 停止
|
|
22
|
-
*/
|
|
23
|
-
stop: () => void;
|
|
24
|
-
/**
|
|
25
|
-
* 替换媒体
|
|
26
|
-
*/
|
|
27
|
-
replaceStream: (stream: MediaStream) => void;
|
|
28
|
-
/**
|
|
29
|
-
* 获取数据流
|
|
30
|
-
*/
|
|
31
|
-
getStream: () => MediaStream;
|
|
32
|
-
/**
|
|
33
|
-
* 静音
|
|
34
|
-
*/
|
|
35
|
-
setMute: (state?: boolean) => void;
|
|
36
|
-
/**
|
|
37
|
-
* 设置音量
|
|
38
|
-
*/
|
|
39
|
-
setVolumeGain: (gain: number) => void;
|
|
40
|
-
/**
|
|
41
|
-
* 获取音量
|
|
42
|
-
*/
|
|
43
|
-
getVolume: () => number;
|
|
44
|
-
/**
|
|
45
|
-
* 设置音频过滤
|
|
46
|
-
*/
|
|
47
|
-
setFilter: (options?: Partial<UserAudioFilterOptions>) => Partial<UserAudioFilterOptions>;
|
|
48
|
-
}
|