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 +3 -2
- package/package.json +1 -1
- package/trtc.esm.js +17 -17
- package/trtc.js +1 -1
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
|
|
967
|
+
switchRole(role: UserRole, option?: {
|
|
968
|
+
privateMapKey: string;
|
|
969
|
+
}): Promise<void>;
|
|
969
970
|
/**
|
|
970
971
|
* Destroy the TRTC instance <br/>
|
|
971
972
|
*
|