trtc-sdk-v5 5.3.0-beta.8 → 5.3.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.
- package/index.d.ts +11 -3
- package/package.json +1 -1
- package/plugins/ai-denoiser/denoiser-wasm.js +5 -5
- package/plugins/cdn-streaming/cdn-streaming.esm.js +1 -1
- package/plugins/cdn-streaming/cdn-streaming.iife.js +1 -1
- package/plugins/cdn-streaming/package.json +1 -1
- package/plugins/video-effect/virtual-background/package.json +1 -1
- package/plugins/video-effect/virtual-background/virtual-background.esm.js +51 -51
- package/plugins/video-effect/virtual-background/virtual-background.iife.js +34 -34
- package/trtc.esm.js +18 -18
- package/trtc.js +1 -1
package/index.d.ts
CHANGED
|
@@ -683,7 +683,7 @@
|
|
|
683
683
|
readonly VIDEO_PLAY_STATE_CHANGED: "video-play-state-changed";
|
|
684
684
|
/**
|
|
685
685
|
* @description Notification event for local screen sharing stop, only valid for local screen sharing streams.
|
|
686
|
-
* @default 'screen-
|
|
686
|
+
* @default 'screen-share-stopped'
|
|
687
687
|
* @memberof module:EVENT
|
|
688
688
|
* @example
|
|
689
689
|
* trtc.on(TRTC.EVENT.SCREEN_SHARE_STOPPED, () => {
|
|
@@ -947,6 +947,9 @@
|
|
|
947
947
|
* @param {string} role User role
|
|
948
948
|
* - TRTC.TYPE.ROLE_ANCHOR anchor, can publish local audio and video, up to 50 anchors can publish local audio and video in a single room at the same time.
|
|
949
949
|
* - TRTC.TYPE.ROLE_AUDIENCE audience, cannot publish local audio and video, can only watch remote streams, and there is no upper limit on the number of audience members in a single room.
|
|
950
|
+
* @param {object} [option]
|
|
951
|
+
* @param {string} [option.privateMapKey] `Since v5.3.0+` <br>
|
|
952
|
+
* The privateMapKey may expire after a timeout, so you can use this parameter to update the privateMapKey.
|
|
950
953
|
* @throws
|
|
951
954
|
* - {@link module:ERROR_CODE.INVALID_PARAMETER INVALID_PARAMETER}
|
|
952
955
|
* - {@link module:ERROR_CODE.INVALID_OPERATION INVALID_OPERATION}
|
|
@@ -963,8 +966,13 @@
|
|
|
963
966
|
*
|
|
964
967
|
* // TRTC.TYPE.SCENE_LIVE interactive live streaming mode, anchor switches to audience
|
|
965
968
|
* await trtc.switchRole(TRTC.TYPE.ROLE_AUDIENCE);
|
|
969
|
+
* @example
|
|
970
|
+
* // Since v5.3.0+
|
|
971
|
+
* await trtc.switchRole(TRTC.TYPE.ROLE_ANCHOR, { privateMapKey: 'your new privateMapKey' });
|
|
966
972
|
*/
|
|
967
|
-
switchRole(role: UserRole
|
|
973
|
+
switchRole(role: UserRole, option?: {
|
|
974
|
+
privateMapKey: string;
|
|
975
|
+
}): Promise<void>;
|
|
968
976
|
/**
|
|
969
977
|
* Destroy the TRTC instance <br/>
|
|
970
978
|
*
|
|
@@ -1669,7 +1677,7 @@
|
|
|
1669
1677
|
/**
|
|
1670
1678
|
* Returns the list of speaker devices
|
|
1671
1679
|
* <br>
|
|
1672
|
-
*
|
|
1680
|
+
* 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.
|
|
1673
1681
|
* @returns {Promise.<MediaDeviceInfo[]>} Promise returns an array of {@link https://developer.mozilla.org/en-US/docs/Web/API/MediaDeviceInfo|MediaDeviceInfo}
|
|
1674
1682
|
*/
|
|
1675
1683
|
static getSpeakerList(): Promise<DeviceInfo[]>;
|