@tencentcloud/tuiroom-engine-js 3.6.3 → 3.6.4
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.cjs.js +1 -1
- package/index.d.ts +38 -1
- package/index.esm.js +2 -2
- package/index.js +2 -2
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -888,7 +888,11 @@ declare enum TUIRoomEvents {
|
|
|
888
888
|
* console.log(key, value);
|
|
889
889
|
* });
|
|
890
890
|
*/
|
|
891
|
-
onRoomMetadataChanged = "onRoomMetadataChanged"
|
|
891
|
+
onRoomMetadataChanged = "onRoomMetadataChanged",
|
|
892
|
+
/**
|
|
893
|
+
* @description RoomStore 房间事件
|
|
894
|
+
*/
|
|
895
|
+
onCall = "onCall"
|
|
892
896
|
}
|
|
893
897
|
declare enum TUIRoomDeviceMangerEvents {
|
|
894
898
|
/**
|
|
@@ -3274,6 +3278,24 @@ declare class TUILiveGiftManager {
|
|
|
3274
3278
|
private observerFunction;
|
|
3275
3279
|
}
|
|
3276
3280
|
|
|
3281
|
+
declare class TUIRoomStoreManager {
|
|
3282
|
+
private roomEngineWASM;
|
|
3283
|
+
private roomEngine;
|
|
3284
|
+
private logger;
|
|
3285
|
+
private eventEmitter;
|
|
3286
|
+
constructor(options: {
|
|
3287
|
+
logger: Logger;
|
|
3288
|
+
roomEngineWASM: any;
|
|
3289
|
+
roomEngine: TUIRoomEngine;
|
|
3290
|
+
});
|
|
3291
|
+
private setupRoomEngineEvents;
|
|
3292
|
+
call(apiName: string, params: any): any;
|
|
3293
|
+
get(apiName: string, params?: any): Promise<unknown>;
|
|
3294
|
+
query(apiName: string, params: any): any;
|
|
3295
|
+
on(event: string, func: (...args: any[]) => void): void;
|
|
3296
|
+
off(event: string, func: (...args: any[]) => void): void;
|
|
3297
|
+
}
|
|
3298
|
+
|
|
3277
3299
|
/**
|
|
3278
3300
|
* TUIRoomEngine 提供了音视频房间的能力
|
|
3279
3301
|
*
|
|
@@ -3293,6 +3315,7 @@ declare class TUIRoomEngine {
|
|
|
3293
3315
|
private liveConnectionManager;
|
|
3294
3316
|
private liveBattleManager;
|
|
3295
3317
|
private liveGiftManager;
|
|
3318
|
+
private roomStoreManager;
|
|
3296
3319
|
private static userId;
|
|
3297
3320
|
private static sdkAppId;
|
|
3298
3321
|
private static Module;
|
|
@@ -4796,6 +4819,7 @@ declare class TUIRoomEngine {
|
|
|
4796
4819
|
* @returns {TUIConferenceInvitationManager} conferenceInvitationManager
|
|
4797
4820
|
*/
|
|
4798
4821
|
getConferenceInvitationManager(): TUIConferenceInvitationManager;
|
|
4822
|
+
getRoomStoreManager(): TUIRoomStoreManager;
|
|
4799
4823
|
/**
|
|
4800
4824
|
* 获取 trtcCloud 实例
|
|
4801
4825
|
* @returns {TRTCCloud} trtcCloud
|
|
@@ -4832,6 +4856,19 @@ declare class TUIRoomEngine {
|
|
|
4832
4856
|
*/
|
|
4833
4857
|
callExperimentalAPI(jsonStr: string): Promise<any>;
|
|
4834
4858
|
private static handleSetFramework;
|
|
4859
|
+
/**
|
|
4860
|
+
* Bind event listeners for jsBridge layer events
|
|
4861
|
+
*
|
|
4862
|
+
* Subscribes to events emitted from jsBridge layer (jsLEBPlayer, jsTCPlayer, etc.)
|
|
4863
|
+
* and forwards them to TUIRoomEngine event emitter.
|
|
4864
|
+
*/
|
|
4865
|
+
private bindJSBridgeEvents;
|
|
4866
|
+
/**
|
|
4867
|
+
* Handle the auto-play event of the CDN link
|
|
4868
|
+
*
|
|
4869
|
+
* @param event TUIAutoPlayCallbackInfo
|
|
4870
|
+
*/
|
|
4871
|
+
private onAutoPlayFailed;
|
|
4835
4872
|
}
|
|
4836
4873
|
|
|
4837
4874
|
export { TRTCRole, TUIAudioQuality, TUIAudioRoute, TUIBattleCode, TUIBattleStoppedReason, TUICaptureSourceType, TUIChangeReason, TUIConferenceCancelReason, TUIConferenceInvitationManager, TUIConferenceInvitationManagerEvents, TUIConferenceListManager, TUIConferenceListManagerEvents, TUIConferenceStatus, TUIConnectionCode, TUIDeviceStatus, TUIErrorCode, TUIInvitationCode, TUIInvitationRejectedReason, TUIInvitationStatus, TUIKickedOutOfRoomReason, TUILiveBattleManagerEvents, TUILiveConnectionManagerEvents, TUILiveGiftManagerEvents, TUILiveLayoutManager, TUILiveLayoutManagerEvents, TUILiveListManager, TUILiveListManagerEvents, TUILiveModifyFlag, TUILiveStatisticsModifyFlag, TUIMediaDevice, TUIMediaDeviceState, TUIMediaDeviceType, TUIMoveSeatPolicy, TUINetworkQuality, TUIRenderMode, TUIRequestAction, TUIRequestCallbackType, TUIResolutionMode, TUIRole, TUIRoomDeviceManager, TUIRoomDeviceMangerEvents, TUIRoomDismissedReason, TUIRoomEvents, TUIRoomType, TUISeatMode, TUIUserInfoModifyFlag, TUIVideoQuality, TUIVideoStreamType, TUIRoomEngine as default };
|