aliyun-rtc-sdk 6.14.0-beta.0 → 6.14.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.
@@ -634,6 +634,11 @@ declare class AliRtcEngine_2 extends default_2<AliRtcEngineEventListener> {
634
634
  * @param {IAudioConstraints} audioConstraints 音频采集参数
635
635
  */
636
636
  startAudioCapture(audioConstraints?: IAudioConstraints): Promise<void>;
637
+ /**
638
+ * @brief 设置音频采集参数
639
+ * @param constraints 音频采集参数
640
+ */
641
+ setAudioConstraints(constraints: IAudioConstraints): Promise<void>;
637
642
  /**
638
643
  * 关闭音频采集
639
644
  * @note 调用此接口后,入会后、离会再入会,采集设备保持关闭状态
@@ -2622,7 +2627,7 @@ declare class LocalUser extends User {
2622
2627
  * @ignore
2623
2628
  */
2624
2629
  static logName: string;
2625
- url: string;
2630
+ private _url;
2626
2631
  private joinTime;
2627
2632
  private _isPublishing;
2628
2633
  private publishPromise;
@@ -2647,6 +2652,8 @@ declare class LocalUser extends User {
2647
2652
  private dataPubState;
2648
2653
  private parameter;
2649
2654
  constructor(config: LocalUserConfig);
2655
+ get url(): string;
2656
+ set url(value: string);
2650
2657
  get joined(): boolean;
2651
2658
  get isPublishing(): boolean;
2652
2659
  get publishStreams(): PublishStreamInfo;
@@ -2681,6 +2688,7 @@ declare class LocalUser extends User {
2681
2688
  muteLocalMic(mute: boolean): void;
2682
2689
  muteLocalScreen(mute: boolean): void;
2683
2690
  setMicrophoneDeviceId(deviceId: string): void;
2691
+ setMicrophoneConstraints(constraints: MediaTrackConstraints): void;
2684
2692
  updatePubId(): void;
2685
2693
  clearPublishState(): void;
2686
2694
  leave(): Promise<void>;
@@ -2763,7 +2771,6 @@ declare class LocalUser extends User {
2763
2771
  */
2764
2772
  publishUpdate(reason?: PublishReason): Promise<PublishInfo | undefined>;
2765
2773
  private syncPublishToRoomServer;
2766
- updateStreamUrl(streamUrl?: string): void;
2767
2774
  private refreshPushStreamUrl;
2768
2775
  /**
2769
2776
  * 推流,用于 rts subscribe/publish 被调用后,此时 DataChannel 已存在
@@ -3277,12 +3284,14 @@ declare class RemoteUser extends User {
3277
3284
  private dc;
3278
3285
  private dcMsgWaitingPieces;
3279
3286
  streamInfo: RemoteStreamInfo;
3280
- streamUrl: string;
3287
+ private _streamUrl;
3281
3288
  private parameter;
3282
3289
  private monitorTimerId?;
3283
3290
  private monitorDataCache;
3284
3291
  private trackTraceIdMap;
3285
3292
  constructor(config: RemoteUserConfig);
3293
+ get streamUrl(): string;
3294
+ set streamUrl(value: string);
3286
3295
  isWantSubAudio(): boolean;
3287
3296
  setWantSubAudio(value: boolean): void;
3288
3297
  isWantSubVideo(): boolean;
@@ -3324,7 +3333,6 @@ declare class RemoteUser extends User {
3324
3333
  * @returns {void}
3325
3334
  */
3326
3335
  updateRemoteUserDeviceStatus(status: string): void;
3327
- updateStreamUrl(streamUrl?: string): void;
3328
3336
  /**
3329
3337
  * 更新远端用户的推流状态,已经停止推流的 tracks 要 delete,或者整体 stop
3330
3338
  * @param {string} callid
@@ -4218,7 +4226,7 @@ declare class Socket extends default_2<SocketListener> {
4218
4226
  /**
4219
4227
  * 反初始化websocket
4220
4228
  */
4221
- protected uninitWebscoket(): void;
4229
+ protected uninitWebsocket(): void;
4222
4230
  }
4223
4231
 
4224
4232
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aliyun-rtc-sdk",
3
- "version": "6.14.0-beta.0",
3
+ "version": "6.14.0",
4
4
  "type": "module",
5
5
  "description": "rtc web sdk of aliyun",
6
6
  "main": "dist/aliyun-rtc-sdk.umd.js",
@@ -10,7 +10,7 @@
10
10
  "@aliyun-sls/web-sts-plugin": "^0.3.5",
11
11
  "@aliyun-sls/web-track-browser": "^0.3.5",
12
12
  "aliyun-queen-engine": "^6.3.3",
13
- "aliyun-rts-sdk": "^2.10.0",
13
+ "aliyun-rts-sdk": "^2.10.2",
14
14
  "crypto-js": "^4.1.1",
15
15
  "dateformat": "^5.0.3",
16
16
  "eventemitter3": "^5.0.1",