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 +3 -4
- package/package.json +1 -1
- package/trtc.esm.js +18 -18
- package/trtc.js +1 -1
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
|
|
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
|
-
*
|
|
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[]>;
|