@tencentcloud/tuiroom-engine-electron 1.0.1 → 1.2.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/README.md CHANGED
@@ -48,11 +48,6 @@ function onKickedOutOfRoom(eventInfo) {
48
48
  console.log(`roomId: ${eventInfo.roomId}, ${eventInfo.message}`);
49
49
  }
50
50
 
51
- // 用户是否被禁止发消息
52
- function onUserMuteStateChanged(eventInfo) {
53
- console.log(`user ${eventInfo.userId} isMute:${eventInfo.muted}`);
54
- }
55
-
56
51
  // 用户签名 userSig 过期
57
52
  function onUserSigExpired() {
58
53
  console.log('userSig expire');
@@ -63,11 +58,6 @@ function onKickedOffLine(eventInfo) {
63
58
  console.log(`user offline, reason: ${eventInfo.message}`);
64
59
  }
65
60
 
66
- // 房间信息变更
67
- function onRoomInfoChanged(eventInfo) {
68
- console.log(`roomInfo ${JSON.stringify(eventInfo)}`);
69
- }
70
-
71
61
  // 设备变化:设备切换、设备插拔事件
72
62
  function onDeviceChange(eventInfo) {
73
63
  console.log(`deviceChange ${JSON.stringify(eventInfo)}`);
@@ -80,11 +70,9 @@ async function init() {
80
70
  roomEngine.on(TUIRoomEvents.onUserVoiceVolumeChanged, onUserVoiceVolumeChanged);
81
71
  roomEngine.on(TUIRoomEvents.onUserNetworkQualityChanged, onUserNetworkQualityChanged);
82
72
  roomEngine.on(TUIRoomEvents.onKickedOutOfRoom, onKickedOutOfRoom);
83
- roomEngine.on(TUIRoomEvents.onUserMuteStateChanged, onUserMuteStateChanged);
84
73
 
85
74
  roomEngine.on(TUIRoomEvents.onUserSigExpired, onUserSigExpired);
86
75
  roomEngine.on(TUIRoomEvents.onKickedOffLine, onKickedOffLine);
87
- roomEngine.on(TUIRoomEvents.onRoomInfoChanged, onRoomInfoChanged);
88
76
 
89
77
  roomEngine.on(TUIRoomEvents.onDeviceChange, onDeviceChange);
90
78
  });
@@ -105,44 +93,49 @@ init();
105
93
  | :-------------------------------- | :----------------- |
106
94
  | [TUIRoomEngine.login](https://cloud.tencent.com/document/product/647/84265#login) | 登录TUIRoomEngine |
107
95
  | [TUIRoomEngine.setSelfInfo](https://cloud.tencent.com/document/product/647/84265#setSelfInfo) | 设置当前用户基本信息(用户名、用户头像) |
96
+ | [TUIRoomEngine.getSelfInfo](https://cloud.tencent.com/document/product/647/84265#getSelfInfo) | 获取当前用户信息 |
108
97
  | [TUIRoomEngine.logout](https://cloud.tencent.com/document/product/647/84265#logout) | 登出 TUIRoomEngine |
109
98
  | [roomEngine.createRoom](https://cloud.tencent.com/document/product/647/84265#createRoom) | 创建房间 |
110
99
  | [roomEngine.enterRoom](https://cloud.tencent.com/document/product/647/84265#enterRoom) | 进入房间 |
111
100
  | [roomEngine.destroyRoom](https://cloud.tencent.com/document/product/647/84265#destroyRoom) | 销毁房间 |
112
101
  | [roomEngine.exitRoom](https://cloud.tencent.com/document/product/647/84265#exitRoom) | 离开房间 |
113
- | [roomEngine.getRoomInfo](https://cloud.tencent.com/document/product/647/84265#getRoomInfo) | 获取房间信息 |
114
- | [roomEngine.updateRoomInfo](https://cloud.tencent.com/document/product/647/84265#updateRoomInfo) | 更新房间信息 |
102
+ | [roomEngine.fetchRoomInfo](https://cloud.tencent.com/document/product/647/84265#fetchRoomInfo) | 获取房间信息 |
103
+ | [roomEngine.updateRoomNameByAdmin](https://cloud.tencent.com/document/product/647/84265#updateRoomNameByAdmin) | 更新房间的名字(仅群主或者管理员可以调用) |
104
+ | [roomEngine.updateRoomSpeechModeByAdmin](https://cloud.tencent.com/document/product/647/84265#updateRoomSpeechModeByAdmin) | 更新房间的发言模式 |
115
105
  | [roomEngine.getUserList](https://cloud.tencent.com/document/product/647/84265#getUserList) | 获取当前房间用户列表 |
116
106
  | [roomEngine.getUserInfo](https://cloud.tencent.com/document/product/647/84265#getUserInfo) | 获取用户的详细信息 |
117
107
  | [roomEngine.takeSeat](https://cloud.tencent.com/document/product/647/84265#takeSeat) | 获取麦位 |
108
+ | [roomEngine.setMaxSeatCount](https://cloud.tencent.com/document/product/647/84265#setMaxSeatCount) | 设置房间麦位最大值 |
118
109
  | [roomEngine.leaveSeat](https://cloud.tencent.com/document/product/647/84265#leaveSeat) | 释放麦位 |
110
+ | [roomEngine.lockSeatByAdmin](https://cloud.tencent.com/document/product/647/84265#lockSeatByAdmin) | 锁定某个麦位状态 |
119
111
  | [roomEngine.getSeatList](https://cloud.tencent.com/document/product/647/84265#getSeatList) | 获取麦位信息 |
120
- | [roomEngine.requestToOpenRemoteCamera](https://cloud.tencent.com/document/product/647/84265#requestToOpenRemoteCamera) | 请求远端用户打开摄像头 |
121
- | [roomEngine.closeRemoteCamera](https://cloud.tencent.com/document/product/647/84265#closeRemoteCamera) | 关闭远端用户摄像头 |
122
- | [roomEngine.requestToOpenRemoteMicrophone](https://cloud.tencent.com/document/product/647/84265#requestToOpenRemoteMicrophone) | 请求远端用户打开麦克风 |
123
- | [roomEngine.closeRemoteMicrophone](https://cloud.tencent.com/document/product/647/84265#closeRemoteMicrophone) | 关闭远端用户麦克风 |
124
- | [roomEngine.requestRemoteUserOnSeat](https://cloud.tencent.com/document/product/647/84265#requestRemoteUserOnSeat) | 邀请其他人上麦 |
125
- | [roomEngine.kickRemoteUserOffSeat](https://cloud.tencent.com/document/product/647/84265#kickRemoteUserOffSeat) | 要求其他人下麦 |
112
+ | [roomEngine.openRemoteDeviceByAdmin](https://cloud.tencent.com/document/product/647/84265#openRemoteDeviceByAdmin) | 请求远端用户打开摄像头 |
113
+ | [roomEngine.applyToAdminToOpenLocalDevice](https://cloud.tencent.com/document/product/647/84265#applyToAdminToOpenLocalDevice) | 参会者向主持人申请打开设备 |
114
+ | [roomEngine.closeRemoteDeviceByAdmin](https://cloud.tencent.com/document/product/647/84265#closeRemoteDeviceByAdmin) | 关闭远端用户设备 |
115
+ | [roomEngine.takeUserOnSeatByAdmin](https://cloud.tencent.com/document/product/647/84265#takeUserOnSeatByAdmin) | 邀请其他人上麦 |
116
+ | [roomEngine.kickUserOffSeatByAdmin](https://cloud.tencent.com/document/product/647/84265#kickUserOffSeatByAdmin) | 要求其他人下麦 |
126
117
  | [roomEngine.cancelRequest](https://cloud.tencent.com/document/product/647/84265#cancelRequest) | 取消已经发出的请求 |
127
118
  | [roomEngine.responseRemoteRequest](https://cloud.tencent.com/document/product/647/84265#responseRemoteRequest) | 回复远端用户的请求 |
128
- | [roomEngine.setLocalRenderView](https://cloud.tencent.com/document/product/647/84265#setLocalRenderView) | 设置本地流的渲染位置 |
119
+ | [roomEngine.setLocalVideoView](https://cloud.tencent.com/document/product/647/84265#setLocalVideoView) | 设置本地流的渲染位置 |
129
120
  | [roomEngine.openLocalCamera](https://cloud.tencent.com/document/product/647/84265#openLocalCamera) | 本地摄像头视频流采集 |
130
121
  | [roomEngine.closeLocalCamera](https://cloud.tencent.com/document/product/647/84265#closeLocalCamera) | 关闭本地摄像头 |
131
122
  | [roomEngine.openLocalMicrophone](https://cloud.tencent.com/document/product/647/84265#openLocalMicrophone) | 打开本地麦克风 |
132
123
  | [roomEngine.closeLocalMicrophone](https://cloud.tencent.com/document/product/647/84265#closeLocalMicrophone) | 关闭本地麦克风 |
133
- | [roomEngine.setLocalVideoProfile](https://cloud.tencent.com/document/product/647/84265#setLocalVideoProfile) | 设置本地视频的参数 |
134
- | [roomEngine.setLocalAudioProfile](https://cloud.tencent.com/document/product/647/84265#setLocalAudioProfile) | 设置本地音频的参数 |
124
+ | [roomEngine.updateVideoQuality](https://cloud.tencent.com/document/product/647/84265#updateVideoQuality) | 设置本地视频流的编码参数 |
125
+ | [roomEngine.updateAudioQuality](https://cloud.tencent.com/document/product/647/84265#updateAudioQuality) | 设置本地音频的参数 |
135
126
  | [roomEngine.startPushLocalVideo](https://cloud.tencent.com/document/product/647/84265#startPushLocalVideo) | 开始向远端推本地视频流 |
136
127
  | [roomEngine.stopPushLocalVideo](https://cloud.tencent.com/document/product/647/84265#stopPushLocalVideo) | 停止向远端推本地视频流 |
137
128
  | [roomEngine.startPushLocalAudio](https://cloud.tencent.com/document/product/647/84265#startPushLocalAudio) | 开始向远端推本地音频流 |
138
129
  | [roomEngine.stopPushLocalAudio](https://cloud.tencent.com/document/product/647/84265#stopPushLocalAudio) | 停止向远端推本地音频流 |
139
- | [roomEngine.setRemoteRenderView](https://cloud.tencent.com/document/product/647/84265#setRemoteRenderView) | 设置远端流渲染的区域 |
130
+ | [roomEngine.setRemoteVideoView](https://cloud.tencent.com/document/product/647/84265#setRemoteVideoView) | 设置远端流渲染的区域 |
140
131
  | [roomEngine.startPlayRemoteVideo](https://cloud.tencent.com/document/product/647/84265#startPlayRemoteVideo) | 开始播放远端用户视频流 |
141
132
  | [roomEngine.stopPlayRemoteVideo](https://cloud.tencent.com/document/product/647/84265#stopPlayRemoteVideo) | 停止播放远端用户视频流 |
133
+ | [roomEngine.muteRemoteAudioStream](https://cloud.tencent.com/document/product/647/84265#muteRemoteAudioStream) | 停止播放远端用户的音频流 |
142
134
  | [roomEngine.changeUserRole](https://cloud.tencent.com/document/product/647/84265#changeUserRole) | 改变用户的角色 |
143
- | [roomEngine.muteRemoteUser](https://cloud.tencent.com/document/product/647/84265#muteRemoteUser) | 禁止远端用户发送消息 |
144
- | [roomEngine.unmuteRemoteUser](https://cloud.tencent.com/document/product/647/84265#unmuteRemoteUser) | 取消禁止远端用户发送消息 |
145
- | [roomEngine.kickOutRemoteUser](https://cloud.tencent.com/document/product/647/84265#kickOutRemoteUser) | 将用户踢出房间 |
135
+ | [roomEngine.kickRemoteUserOutOfRoom](https://cloud.tencent.com/document/product/647/84265#kickRemoteUserOutOfRoom) | 将用户踢出房间 |
136
+ | [roomEngine.disableDeviceForAllUserByAdmin](https://cloud.tencent.com/document/product/647/84265#disableDeviceForAllUserByAdmin) | 所有用户的设备是否允许被使用 |
137
+ | [roomEngine.disableSendingMessageForAllUser](https://cloud.tencent.com/document/product/647/84265#disableSendingMessageForAllUser) | 所有用户是否被允许发消息 |
138
+ | [roomEngine.disableSendingMessageByAdmin](https://cloud.tencent.com/document/product/647/84265#disableSendingMessageByAdmin) | 特定用户是否被允许发消息 |
146
139
  | [roomEngine.sendTextMessage](https://cloud.tencent.com/document/product/647/84265#sendTextMessage) | 发送文本消息 |
147
140
  | [roomEngine.sendCustomMessage](https://cloud.tencent.com/document/product/647/84265#sendCustomMessage) | 发送自定义消息 |
148
141
  | [roomEngine.startScreenSharingElectron](https://cloud.tencent.com/document/product/647/84265#startScreenSharingElectron) | 开始屏幕共享 |