trtc-sdk-v5 5.3.0-beta.11 → 5.3.0-beta.12

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/index.d.ts CHANGED
@@ -131,6 +131,7 @@
131
131
  declare enum TRTCDeviceAction {
132
132
  Remove = "remove",
133
133
  Add = "add",
134
+ Change = "change",
134
135
  Active = "active"
135
136
  }
136
137
  declare interface RTCErrorParams {
@@ -964,9 +965,7 @@
964
965
  * // TRTC.TYPE.SCENE_LIVE interactive live streaming mode, anchor switches to audience
965
966
  * await trtc.switchRole(TRTC.TYPE.ROLE_AUDIENCE);
966
967
  */
967
- switchRole(role: UserRole, option?: {
968
- privateMapKey: string;
969
- }): Promise<void>;
968
+ switchRole(role: UserRole): Promise<void>;
970
969
  /**
971
970
  * Destroy the TRTC instance <br/>
972
971
  *
@@ -1671,7 +1670,7 @@
1671
1670
  /**
1672
1671
  * Returns the list of speaker devices
1673
1672
  * <br>
1674
- * For security reasons, the label and deviceId fields may be empty before the user authorizes access to the camera or microphone. Therefore, it is recommended to call this interface to obtain device details after the user authorizes access.
1673
+ * Calling this method may temporarily open the microphone to ensure that the speaker list can be normally obtained, and the SDK will automatically release the microphone capture later.
1675
1674
  * @returns {Promise.<MediaDeviceInfo[]>} Promise returns an array of {@link https://developer.mozilla.org/en-US/docs/Web/API/MediaDeviceInfo|MediaDeviceInfo}
1676
1675
  */
1677
1676
  static getSpeakerList(): Promise<DeviceInfo[]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trtc-sdk-v5",
3
- "version": "5.3.0-beta.11",
3
+ "version": "5.3.0-beta.12",
4
4
  "description": "Tencent Cloud RTC SDK for Web",
5
5
  "main": "trtc.js",
6
6
  "types": "index.d.ts",