@tencentcloud/tuiroom-engine-electron 0.0.4 → 1.0.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/README.md +69 -68
- package/index.cjs.js +3 -11422
- package/index.d.ts +28 -21
- package/index.esm.js +3 -11357
- package/index.js +3 -11424
- package/package.json +2 -2
- package/types.d.ts +11 -0
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
###TUIRoomEngine Electron SDK
|
|
1
|
+
### TUIRoomEngine Electron SDK
|
|
2
2
|
|
|
3
3
|
### 简介
|
|
4
4
|
|
|
5
5
|
TUIRoomEngine Electron SDK 依托腾讯云 [实时音视频 TRTC](https://cloud.tencent.com/document/product/647/16788) 和 [即时通信 IM](https://cloud.tencent.com/document/product/269/42440) 服务,为用户提供房间管理,多人实时音视频互动,屏幕分享,成员管理,即时聊天等功能。
|
|
6
6
|
|
|
7
|
-
+ [官方文档](https://
|
|
8
|
-
+ [体验 Demo](https://
|
|
9
|
-
+ [github](https://github.com/tencentyun/
|
|
7
|
+
+ [官方文档](https://cloud.tencent.com/document/product/647/84238)
|
|
8
|
+
+ [体验 Demo](https://cloud.tencent.com/document/product/647/81959#TUIRoomKit-download)
|
|
9
|
+
+ [github](https://github.com/tencentyun/TUIRoomKit/tree/main/Electron)
|
|
10
10
|
|
|
11
11
|
### 安装
|
|
12
12
|
|
|
@@ -89,8 +89,9 @@ async function init() {
|
|
|
89
89
|
roomEngine.on(TUIRoomEvents.onDeviceChange, onDeviceChange);
|
|
90
90
|
});
|
|
91
91
|
|
|
92
|
-
//
|
|
93
|
-
|
|
92
|
+
// sdkAppId 获取和 userSig 生成详见官网文档
|
|
93
|
+
// https://cloud.tencent.com/document/product/647/84238#step1
|
|
94
|
+
await TUIRoomEngine.login({ sdkAppId: 0, userId: '', userSig: '' });
|
|
94
95
|
await TUIRoomEngine.setSelfInfo({ userName: 'zhangsan', avatarUrl: 'https://testurl' });
|
|
95
96
|
}
|
|
96
97
|
|
|
@@ -102,69 +103,69 @@ init();
|
|
|
102
103
|
|
|
103
104
|
| API | 含义 |
|
|
104
105
|
| :-------------------------------- | :----------------- |
|
|
105
|
-
| [
|
|
106
|
-
| [setSelfInfo](https://
|
|
107
|
-
| [
|
|
108
|
-
| [
|
|
109
|
-
| [
|
|
110
|
-
| [
|
|
111
|
-
| [
|
|
112
|
-
| [
|
|
113
|
-
| [
|
|
114
|
-
| [
|
|
115
|
-
| [
|
|
116
|
-
| [
|
|
117
|
-
| [
|
|
118
|
-
| [
|
|
119
|
-
| [
|
|
120
|
-
| [
|
|
121
|
-
| [
|
|
122
|
-
| [
|
|
123
|
-
| [
|
|
124
|
-
| [
|
|
125
|
-
| [
|
|
126
|
-
| [
|
|
127
|
-
| [
|
|
128
|
-
| [
|
|
129
|
-
| [
|
|
130
|
-
| [
|
|
131
|
-
| [
|
|
132
|
-
| [
|
|
133
|
-
| [
|
|
134
|
-
| [
|
|
135
|
-
| [
|
|
136
|
-
| [
|
|
137
|
-
| [
|
|
138
|
-
| [
|
|
139
|
-
| [
|
|
140
|
-
| [
|
|
141
|
-
| [
|
|
142
|
-
| [
|
|
143
|
-
| [
|
|
144
|
-
| [
|
|
145
|
-
| [
|
|
146
|
-
| [
|
|
147
|
-
| [
|
|
148
|
-
| [
|
|
149
|
-
| [
|
|
150
|
-
| [
|
|
151
|
-
| [
|
|
152
|
-
| [
|
|
153
|
-
| [
|
|
154
|
-
| [
|
|
155
|
-
| [
|
|
156
|
-
| [
|
|
157
|
-
| [
|
|
158
|
-
| [
|
|
159
|
-
| [
|
|
160
|
-
| [
|
|
161
|
-
| [
|
|
162
|
-
| [
|
|
163
|
-
| [
|
|
164
|
-
| [
|
|
106
|
+
| [TUIRoomEngine.login](https://cloud.tencent.com/document/product/647/84265#login) | 登录TUIRoomEngine |
|
|
107
|
+
| [TUIRoomEngine.setSelfInfo](https://cloud.tencent.com/document/product/647/84265#setSelfInfo) | 设置当前用户基本信息(用户名、用户头像) |
|
|
108
|
+
| [TUIRoomEngine.logout](https://cloud.tencent.com/document/product/647/84265#logout) | 登出 TUIRoomEngine |
|
|
109
|
+
| [roomEngine.createRoom](https://cloud.tencent.com/document/product/647/84265#createRoom) | 创建房间 |
|
|
110
|
+
| [roomEngine.enterRoom](https://cloud.tencent.com/document/product/647/84265#enterRoom) | 进入房间 |
|
|
111
|
+
| [roomEngine.destroyRoom](https://cloud.tencent.com/document/product/647/84265#destroyRoom) | 销毁房间 |
|
|
112
|
+
| [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) | 更新房间信息 |
|
|
115
|
+
| [roomEngine.getUserList](https://cloud.tencent.com/document/product/647/84265#getUserList) | 获取当前房间用户列表 |
|
|
116
|
+
| [roomEngine.getUserInfo](https://cloud.tencent.com/document/product/647/84265#getUserInfo) | 获取用户的详细信息 |
|
|
117
|
+
| [roomEngine.takeSeat](https://cloud.tencent.com/document/product/647/84265#takeSeat) | 获取麦位 |
|
|
118
|
+
| [roomEngine.leaveSeat](https://cloud.tencent.com/document/product/647/84265#leaveSeat) | 释放麦位 |
|
|
119
|
+
| [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) | 要求其他人下麦 |
|
|
126
|
+
| [roomEngine.cancelRequest](https://cloud.tencent.com/document/product/647/84265#cancelRequest) | 取消已经发出的请求 |
|
|
127
|
+
| [roomEngine.responseRemoteRequest](https://cloud.tencent.com/document/product/647/84265#responseRemoteRequest) | 回复远端用户的请求 |
|
|
128
|
+
| [roomEngine.setLocalRenderView](https://cloud.tencent.com/document/product/647/84265#setLocalRenderView) | 设置本地流的渲染位置 |
|
|
129
|
+
| [roomEngine.openLocalCamera](https://cloud.tencent.com/document/product/647/84265#openLocalCamera) | 本地摄像头视频流采集 |
|
|
130
|
+
| [roomEngine.closeLocalCamera](https://cloud.tencent.com/document/product/647/84265#closeLocalCamera) | 关闭本地摄像头 |
|
|
131
|
+
| [roomEngine.openLocalMicrophone](https://cloud.tencent.com/document/product/647/84265#openLocalMicrophone) | 打开本地麦克风 |
|
|
132
|
+
| [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) | 设置本地音频的参数 |
|
|
135
|
+
| [roomEngine.startPushLocalVideo](https://cloud.tencent.com/document/product/647/84265#startPushLocalVideo) | 开始向远端推本地视频流 |
|
|
136
|
+
| [roomEngine.stopPushLocalVideo](https://cloud.tencent.com/document/product/647/84265#stopPushLocalVideo) | 停止向远端推本地视频流 |
|
|
137
|
+
| [roomEngine.startPushLocalAudio](https://cloud.tencent.com/document/product/647/84265#startPushLocalAudio) | 开始向远端推本地音频流 |
|
|
138
|
+
| [roomEngine.stopPushLocalAudio](https://cloud.tencent.com/document/product/647/84265#stopPushLocalAudio) | 停止向远端推本地音频流 |
|
|
139
|
+
| [roomEngine.setRemoteRenderView](https://cloud.tencent.com/document/product/647/84265#setRemoteRenderView) | 设置远端流渲染的区域 |
|
|
140
|
+
| [roomEngine.startPlayRemoteVideo](https://cloud.tencent.com/document/product/647/84265#startPlayRemoteVideo) | 开始播放远端用户视频流 |
|
|
141
|
+
| [roomEngine.stopPlayRemoteVideo](https://cloud.tencent.com/document/product/647/84265#stopPlayRemoteVideo) | 停止播放远端用户视频流 |
|
|
142
|
+
| [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) | 将用户踢出房间 |
|
|
146
|
+
| [roomEngine.sendTextMessage](https://cloud.tencent.com/document/product/647/84265#sendTextMessage) | 发送文本消息 |
|
|
147
|
+
| [roomEngine.sendCustomMessage](https://cloud.tencent.com/document/product/647/84265#sendCustomMessage) | 发送自定义消息 |
|
|
148
|
+
| [roomEngine.startScreenSharingElectron](https://cloud.tencent.com/document/product/647/84265#startScreenSharingElectron) | 开始屏幕共享 |
|
|
149
|
+
| [roomEngine.stopScreenSharingElectron](https://cloud.tencent.com/document/product/647/84265#stopScreenSharingElectron) | 停止屏幕共享 |
|
|
150
|
+
| [roomEngine.getScreenSharingTarget](https://cloud.tencent.com/document/product/647/84265#getScreenSharingTarget) | 获取屏幕分享列表 |
|
|
151
|
+
| [roomEngine.selectScreenSharingTarget](https://cloud.tencent.com/document/product/647/84265#selectScreenSharingTarget) | 切换屏幕分享窗口 |
|
|
152
|
+
| [roomEngine.on](https://cloud.tencent.com/document/product/647/84265#on) | 监听 roomEngine 的事件 |
|
|
153
|
+
| [roomEngine.off](https://cloud.tencent.com/document/product/647/84265#off) | 取消监听 roomEngine 的事件 |
|
|
154
|
+
| [roomEngine.getCameraDevicesList](https://cloud.tencent.com/document/product/647/84265#getCameraDevicesList) | 获取摄像头设备列表 |
|
|
155
|
+
| [roomEngine.getMicDevicesList](https://cloud.tencent.com/document/product/647/84265#getMicDevicesList) | 获取麦克风设备列表 |
|
|
156
|
+
| [roomEngine.getSpeakerDevicesList](https://cloud.tencent.com/document/product/647/84265#getSpeakerDevicesList) | 获取扬声器设备列表 |
|
|
157
|
+
| [roomEngine.setCurrentCameraDevice](https://cloud.tencent.com/document/product/647/84265#setCurrentCameraDevice) | 设置要使用的摄像头设备 |
|
|
158
|
+
| [roomEngine.setCurrentMicDevice](https://cloud.tencent.com/document/product/647/84265#setCurrentMicDevice) | 设置要使用的麦克风设备 |
|
|
159
|
+
| [roomEngine.setCurrentSpeakerDevice](https://cloud.tencent.com/document/product/647/84265#setCurrentSpeakerDevice) | 设置要使用的扬声器设备 |
|
|
160
|
+
| [roomEngine.getCurrentCameraDevice](https://cloud.tencent.com/document/product/647/84265#getCurrentCameraDevice) | 获取当前正在使用的摄像头设备 |
|
|
161
|
+
| [roomEngine.getCurrentMicDevice](https://cloud.tencent.com/document/product/647/84265#getCurrentMicDevice) | 获取当前正在使用的麦克风设备 |
|
|
162
|
+
| [roomEngine.getCurrentSpeakerDevice](https://cloud.tencent.com/document/product/647/84265#getCurrentSpeakerDevice) | 获取当前正在使用的扬声器设备 |
|
|
163
|
+
| [roomEngine.startCameraDeviceTest](https://cloud.tencent.com/document/product/647/84265#startCameraDeviceTest) | 开始进行摄像头测试 |
|
|
164
|
+
| [roomEngine.stopCameraDeviceTest](https://cloud.tencent.com/document/product/647/84265#stopCameraDeviceTest) | 停止摄像头测试 |
|
|
165
|
+
| [roomEngine.getTRTCCloud](https://cloud.tencent.com/document/product/647/84265#getTRTCCloud) | 获取 trtcCloud 实例 |
|
|
166
|
+
| [roomEngine.getTIM](https://cloud.tencent.com/document/product/647/84265#getTIM) | 获取 tim 实例 |
|
|
165
167
|
|
|
166
168
|
### 参考文档
|
|
167
|
-
- [TUIRoomEngine](https://
|
|
168
|
-
- [快速接入 TUIRoomKit Web](https://write.woa.com/document/93119862767460352)
|
|
169
|
+
- [TUIRoomEngine](https://cloud.tencent.com/document/product/647/84265)
|
|
169
170
|
- [腾讯实时音视频 TRTC](https://cloud.tencent.com/document/product/647/16788)
|
|
170
171
|
- [腾讯云即时通信 IM](https://cloud.tencent.com/document/product/269/1498)
|