quickvo-sdk-js 0.5.4 → 0.5.5

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.
@@ -1,11 +1,12 @@
1
1
  import { K_roomState } from '../enums/roomState';
2
2
  import { QuickOptions, RoomOptions, RoomUser, UserTrack } from '../types';
3
3
  import { CallsWebSocket, CallsWebSocketOptions } from './CallsWebSocket';
4
+ import { K_mediaType } from '../enums/mediaType';
4
5
  import { PrTaskQueue } from 'pr-task-queue';
5
6
  type Options = QuickOptions & RoomOptions & CallsWebSocketOptions;
6
7
  export declare class RoomBase {
8
+ #private;
7
9
  options: Options;
8
- localStreamActiveMap: Map<"microphoneCamera_audio" | "microphoneCamera_video" | "screenSharing_video" | "screenSharing_audio", Boolean>;
9
10
  prohibitNotify: boolean;
10
11
  isEarly: boolean;
11
12
  taskQueue: PrTaskQueue<"closeTrack" | "subscribe" | "joinRoom" | "createWs" | "createSession" | "ice" | "createTrack">;
@@ -15,6 +16,7 @@ export declare class RoomBase {
15
16
  peerIns: RTCPeerConnection;
16
17
  transceiverMap: Map<"microphoneCamera_audio" | "microphoneCamera_video" | "screenSharing_video" | "screenSharing_audio", RTCRtpTransceiver>;
17
18
  userMap: Map<string, RoomUser>;
19
+ setLocalStreamActiveMap: Map<K_mediaType, Boolean>;
18
20
  mediaDevicesErrInfo: {
19
21
  microphoneCamera_audio: string;
20
22
  microphoneCamera_video: string;
@@ -22,7 +24,6 @@ export declare class RoomBase {
22
24
  screenSharing_audio: string;
23
25
  };
24
26
  constructor();
25
- initAsyncQueue: () => void;
26
27
  /**
27
28
  * 获取房间信息
28
29
  */
@@ -13,6 +13,12 @@ export declare class RoomCalls extends RoomPeer {
13
13
  * @returns Promise<Streams>
14
14
  */
15
15
  setLocalStream: (mediaType: K_mediaType, active: boolean) => Promise<Streams>;
16
+ /**
17
+ * 设置正在使用的媒体设备
18
+ * @param mediaDeviceKind 设备类型 "audioinput" | "audiooutput" | "videoinput"
19
+ * @param deviceId 设备ID
20
+ */
21
+ setMediaDeviceKind: (mediaDeviceKind: MediaDeviceKind, deviceId: string) => Promise<void>;
16
22
  /**
17
23
  * 添加广播事件
18
24
  * @param notify Notify
@@ -5,9 +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
- mediaDevices: MediaDeviceInfo[];
9
8
  constructor();
10
- getPhoneyStreams: (mediaType: K_mediaType) => MediaStream;
11
9
  /**
12
10
  * 房间所有用户所有媒体流变化
13
11
  */
@@ -13,15 +13,8 @@ export declare class RoomPeer extends RoomUsers {
13
13
  roundTripTime: string;
14
14
  jitter: string;
15
15
  };
16
- connectedResolveMap: Map<string, Function>;
17
16
  constructor();
18
17
  initPeer: () => void;
19
- /**
20
- * 设置正在使用的媒体设备
21
- * @param mediaDeviceKind 设备类型 "audioinput" | "audiooutput" | "videoinput"
22
- * @param deviceId 设备ID
23
- */
24
- setMediaDeviceKind: (mediaDeviceKind: MediaDeviceKind, deviceId: string) => Promise<void>;
25
18
  /**
26
19
  * 替换发射器媒体流
27
20
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "quickvo-sdk-js",
3
3
  "description": "提供快捷接入单对单、单对多、群体会议、舞台会议等音视频功能。",
4
- "version": "0.5.4",
4
+ "version": "0.5.5",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"