@tencentcloud/tuiroom-engine-js 3.3.1 → 3.3.2-beta.1
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 +39 -1
- package/index.esm.js +1 -1
- package/index.js +1 -1
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -159,6 +159,22 @@ declare enum TUIVideoStreamType {
|
|
|
159
159
|
kScreenStream = 1,
|
|
160
160
|
kCameraStreamLow = 2
|
|
161
161
|
}
|
|
162
|
+
/**
|
|
163
|
+
* 视频渲染模式
|
|
164
|
+
* @enum {String}
|
|
165
|
+
*/
|
|
166
|
+
declare enum TUIRenderMode {
|
|
167
|
+
/**
|
|
168
|
+
* 被替换的内容在保持其宽高比的同时填充元素的整个内容框。如果对象的宽高比与内容框不相匹配,该对象将被剪裁以适应内容框。
|
|
169
|
+
* 和 native 对齐,该模式对应着 web object-fit 属性的 cover 模式。
|
|
170
|
+
* */
|
|
171
|
+
kRenderModeFill = "fill",
|
|
172
|
+
/**
|
|
173
|
+
* 被替换的内容将被缩放,以在填充元素的内容框时保持其宽高比。
|
|
174
|
+
* 整个对象在填充盒子的同时保留其长宽比,因此如果宽高比与框的宽高比不匹配,该对象将被添加黑边。
|
|
175
|
+
* */
|
|
176
|
+
kRenderModeFit = "fit"
|
|
177
|
+
}
|
|
162
178
|
declare enum TUINetworkQuality {
|
|
163
179
|
kQualityUnknown = 0,
|
|
164
180
|
kQualityExcellent = 1,
|
|
@@ -3559,6 +3575,21 @@ declare class TUIRoomEngine {
|
|
|
3559
3575
|
userId: string;
|
|
3560
3576
|
isMute: boolean;
|
|
3561
3577
|
}): Promise<void>;
|
|
3578
|
+
/**
|
|
3579
|
+
* v3.3.1 版本后支持设置远端音频的播放音量
|
|
3580
|
+
* @param {object} options 设置远端用户音频音量的参数
|
|
3581
|
+
* @param {number} options.volume 远端音频的播放音量,取值0 - 150
|
|
3582
|
+
* @returns {Promise<void>}
|
|
3583
|
+
*
|
|
3584
|
+
* @example
|
|
3585
|
+
* const roomEngine = new TUIRoomEngine();
|
|
3586
|
+
* await roomEngine.setAudioPlayoutVolume({
|
|
3587
|
+
* volume: 20,
|
|
3588
|
+
* });
|
|
3589
|
+
*/
|
|
3590
|
+
setAudioPlayoutVolume(options: {
|
|
3591
|
+
volume: number;
|
|
3592
|
+
}): Promise<void>;
|
|
3562
3593
|
/**
|
|
3563
3594
|
* 请求远端用户打开媒体设备
|
|
3564
3595
|
* @param {object} options 请求远端用户打开摄像头的参数
|
|
@@ -4401,7 +4432,14 @@ declare class TUIRoomEngine {
|
|
|
4401
4432
|
* @returns
|
|
4402
4433
|
*/
|
|
4403
4434
|
static callExperimentalAPI(jsonStr: string): Promise<void>;
|
|
4435
|
+
/**
|
|
4436
|
+
* v3.3.1 版本起支持实例的实验性接口
|
|
4437
|
+
* @private
|
|
4438
|
+
* @param jsonStr jason 字符串
|
|
4439
|
+
* @returns
|
|
4440
|
+
*/
|
|
4441
|
+
callExperimentalAPI(jsonStr: string): Promise<void>;
|
|
4404
4442
|
private static handleSetFramework;
|
|
4405
4443
|
}
|
|
4406
4444
|
|
|
4407
|
-
export { TRTCRole, TUIAudioQuality, TUIAudioRoute, type TUIAutoPlayCallbackInfo, TUIBattleCode, type TUIBattleConfig, type TUIBattleInfo, TUIBattleStoppedReason, type TUIBattleUser, TUICaptureSourceType, TUIChangeReason, TUIConferenceCancelReason, type TUIConferenceInfo, TUIConferenceInvitationManager, TUIConferenceInvitationManagerEvents, TUIConferenceListManager, TUIConferenceListManagerEvents, type TUIConferenceModifyInfo, TUIConferenceStatus, type TUIDeviceInfo, TUIDeviceStatus, type TUIEnterRoomOptions, TUIErrorCode, type TUIInvitation, TUIInvitationCode, TUIInvitationRejectedReason, TUIInvitationStatus, TUIKickedOutOfRoomReason, TUILiveBattleManagerEvents, TUILiveConnectionManagerEvents, type TUILiveConnectionUser, type TUILiveInfo, TUILiveLayoutManager, TUILiveLayoutManagerEvents, TUILiveListManager, TUILiveListManagerEvents, type TUILiveListResult, TUILiveModifyFlag, type TUILiveModifyInfo, type TUILiveStatisticsData, type TUILoginUserInfo, TUIMediaDevice, TUIMediaDeviceState, TUIMediaDeviceType, type TUIMessage, type TUINetwork, TUINetworkQuality, type TUIRequest, TUIRequestAction, type TUIRequestCallback, TUIRequestCallbackType, TUIResolutionMode, TUIRole, TUIRoomDeviceManager, TUIRoomDeviceMangerEvents, TUIRoomDismissedReason, TUIRoomEvents, type TUIRoomInfo, TUIRoomType, type TUISeatInfo, type TUISeatLayout, type TUISeatLockParams, TUISeatMode, type TUISeatRegion, type TUIUserInfo, type TUIVideoEncoderParams, TUIVideoQuality, TUIVideoStreamType, TUIRoomEngine as default };
|
|
4445
|
+
export { TRTCRole, TUIAudioQuality, TUIAudioRoute, type TUIAutoPlayCallbackInfo, TUIBattleCode, type TUIBattleConfig, type TUIBattleInfo, TUIBattleStoppedReason, type TUIBattleUser, TUICaptureSourceType, TUIChangeReason, TUIConferenceCancelReason, type TUIConferenceInfo, TUIConferenceInvitationManager, TUIConferenceInvitationManagerEvents, TUIConferenceListManager, TUIConferenceListManagerEvents, type TUIConferenceModifyInfo, TUIConferenceStatus, type TUIDeviceInfo, TUIDeviceStatus, type TUIEnterRoomOptions, TUIErrorCode, type TUIInvitation, TUIInvitationCode, TUIInvitationRejectedReason, TUIInvitationStatus, TUIKickedOutOfRoomReason, TUILiveBattleManagerEvents, TUILiveConnectionManagerEvents, type TUILiveConnectionUser, type TUILiveInfo, TUILiveLayoutManager, TUILiveLayoutManagerEvents, TUILiveListManager, TUILiveListManagerEvents, type TUILiveListResult, TUILiveModifyFlag, type TUILiveModifyInfo, type TUILiveStatisticsData, type TUILoginUserInfo, TUIMediaDevice, TUIMediaDeviceState, TUIMediaDeviceType, type TUIMessage, type TUINetwork, TUINetworkQuality, TUIRenderMode, type TUIRequest, TUIRequestAction, type TUIRequestCallback, TUIRequestCallbackType, TUIResolutionMode, TUIRole, TUIRoomDeviceManager, TUIRoomDeviceMangerEvents, TUIRoomDismissedReason, TUIRoomEvents, type TUIRoomInfo, TUIRoomType, type TUISeatInfo, type TUISeatLayout, type TUISeatLockParams, TUISeatMode, type TUISeatRegion, type TUIUserInfo, type TUIVideoEncoderParams, TUIVideoQuality, TUIVideoStreamType, TUIRoomEngine as default };
|