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

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,7 +131,6 @@
131
131
  declare enum TRTCDeviceAction {
132
132
  Remove = "remove",
133
133
  Add = "add",
134
- Change = "change",
135
134
  Active = "active"
136
135
  }
137
136
  declare interface RTCErrorParams {
@@ -965,7 +964,9 @@
965
964
  * // TRTC.TYPE.SCENE_LIVE interactive live streaming mode, anchor switches to audience
966
965
  * await trtc.switchRole(TRTC.TYPE.ROLE_AUDIENCE);
967
966
  */
968
- switchRole(role: UserRole): Promise<void>;
967
+ switchRole(role: UserRole, option?: {
968
+ privateMapKey: string;
969
+ }): Promise<void>;
969
970
  /**
970
971
  * Destroy the TRTC instance <br/>
971
972
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trtc-sdk-v5",
3
- "version": "5.3.0-beta.10",
3
+ "version": "5.3.0-beta.11",
4
4
  "description": "Tencent Cloud RTC SDK for Web",
5
5
  "main": "trtc.js",
6
6
  "types": "index.d.ts",