@tencentcloud/tuiroom-engine-electron 0.0.4 → 1.0.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
@@ -4,8 +4,8 @@
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://write.woa.com/document/96640299265654784)
8
- + [体验 Demo](https://write.woa.com/document/93119368721211392)
7
+ + [官方文档](https://cloud.tencent.com/document/product/647/81959)
8
+ + [体验 Demo](https://cloud.tencent.com/document/product/647/81959#TUICallKit-.E4.B8.8B.E8.BD.BD)
9
9
  + [github](https://github.com/tencentyun/TUIRoom/tree/main/Electron)
10
10
 
11
11
  ### 安装
@@ -102,69 +102,69 @@ init();
102
102
 
103
103
  | API | 含义 |
104
104
  | :-------------------------------- | :----------------- |
105
- | [init](https://write.woa.com/document/93177225215877120#init) | 初始化 TUIRoomEngine |
106
- | [setSelfInfo](https://write.woa.com/document/93177225215877120#setSelfInfo) | 设置当前用户基本信息(用户名、用户头像) |
107
- | [createRoom](https://write.woa.com/document/93177225215877120#createRoom) | 创建房间 |
108
- | [enterRoom](https://write.woa.com/document/93177225215877120#enterRoom) | 进入房间 |
109
- | [destroyRoom](https://write.woa.com/document/93177225215877120#destroyRoom) | 销毁房间 |
110
- | [exitRoom](https://write.woa.com/document/93177225215877120#exitRoom) | 离开房间 |
111
- | [getRoomInfo](https://write.woa.com/document/93177225215877120#getRoomInfo) | 获取房间信息 |
112
- | [updateRoomInfo](https://write.woa.com/document/93177225215877120#updateRoomInfo) | 更新房间信息 |
113
- | [getUserList](https://write.woa.com/document/93177225215877120#getUserList) | 获取当前房间用户列表 |
114
- | [getUserInfo](https://write.woa.com/document/93177225215877120#getUserInfo) | 获取用户的详细信息 |
115
- | [takeSeat](https://write.woa.com/document/93177225215877120#takeSeat) | 获取麦位 |
116
- | [leaveSeat](https://write.woa.com/document/93177225215877120#leaveSeat) | 释放麦位 |
117
- | [getSeatList](https://write.woa.com/document/93177225215877120#getSeatList) | 获取麦位信息 |
118
- | [requestToOpenRemoteCamera](https://write.woa.com/document/93177225215877120#requestToOpenRemoteCamera) | 请求远端用户打开摄像头 |
119
- | [closeRemoteCamera](https://write.woa.com/document/93177225215877120#closeRemoteCamera) | 关闭远端用户摄像头 |
120
- | [requestToOpenRemoteMicrophone](https://write.woa.com/document/93177225215877120#requestToOpenRemoteMicrophone) | 请求远端用户打开麦克风 |
121
- | [closeRemoteMicrophone](https://write.woa.com/document/93177225215877120#closeRemoteMicrophone) | 关闭远端用户麦克风 |
122
- | [requestRemoteUserOnSeat](https://write.woa.com/document/93177225215877120#requestRemoteUserOnSeat) | 邀请其他人上麦 |
123
- | [kickRemoteUserOffSeat](https://write.woa.com/document/93177225215877120#kickRemoteUserOffSeat) | 要求其他人下麦 |
124
- | [cancelRequest](https://write.woa.com/document/93177225215877120#cancelRequest) | 取消已经发出的请求 |
125
- | [responseRemoteRequest](https://write.woa.com/document/93177225215877120#responseRemoteRequest) | 回复远端用户的请求 |
126
- | [setLocalRenderView](https://write.woa.com/document/93177225215877120#setLocalRenderView) | 设置本地流的渲染位置 |
127
- | [openLocalCamera](https://write.woa.com/document/93177225215877120#openLocalCamera) | 本地摄像头视频流采集 |
128
- | [closeLocalCamera](https://write.woa.com/document/93177225215877120#closeLocalCamera) | 关闭本地摄像头 |
129
- | [openLocalMicrophone](https://write.woa.com/document/93177225215877120#openLocalMicrophone) | 打开本地麦克风 |
130
- | [closeLocalMicrophone](https://write.woa.com/document/93177225215877120#closeLocalMicrophone) | 关闭本地麦克风 |
131
- | [setLocalVideoProfile](https://write.woa.com/document/93177225215877120#setLocalVideoProfile) | 设置本地视频的参数 |
132
- | [setLocalAudioProfile](https://write.woa.com/document/93177225215877120#setLocalAudioProfile) | 设置本地音频的参数 |
133
- | [startPushLocalVideo](https://write.woa.com/document/93177225215877120#startPushLocalVideo) | 开始向远端推本地视频流 |
134
- | [stopPushLocalVideo](https://write.woa.com/document/93177225215877120#stopPushLocalVideo) | 停止向远端推本地视频流 |
135
- | [startPushLocalAudio](https://write.woa.com/document/93177225215877120#startPushLocalAudio) | 开始向远端推本地音频流 |
136
- | [stopPushLocalAudio](https://write.woa.com/document/93177225215877120#stopPushLocalAudio) | 停止向远端推本地音频流 |
137
- | [setRemoteRenderView](https://write.woa.com/document/93177225215877120#setRemoteRenderView) | 设置远端流渲染的区域 |
138
- | [startPlayRemoteVideo](https://write.woa.com/document/93177225215877120#startPlayRemoteVideo) | 开始播放远端用户视频流 |
139
- | [stopPlayRemoteVideo](https://write.woa.com/document/93177225215877120#stopPlayRemoteVideo) | 停止播放远端用户视频流 |
140
- | [changeUserRole](https://write.woa.com/document/93177225215877120#changeUserRole) | 改变用户的角色 |
141
- | [muteRemoteUser](https://write.woa.com/document/93177225215877120#muteRemoteUser) | 禁止远端用户发送消息 |
142
- | [unmuteRemoteUser](https://write.woa.com/document/93177225215877120#unmuteRemoteUser) | 取消禁止远端用户发送消息 |
143
- | [kickOutRemoteUser](https://write.woa.com/document/93177225215877120#kickOutRemoteUser) | 将用户踢出房间 |
144
- | [sendTextMessage](https://write.woa.com/document/93177225215877120#sendTextMessage) | 发送文本消息 |
145
- | [sendCustomMessage](https://write.woa.com/document/93177225215877120#sendCustomMessage) | 发送自定义消息 |
146
- | [startScreenSharingElectron](https://write.woa.com/document/93177225215877120#startScreenSharingElectron) | 开始屏幕共享 |
147
- | [stopScreenSharingElectron](https://write.woa.com/document/93177225215877120#stopScreenSharingElectron) | 停止屏幕共享 |
148
- | [getScreenSharingTarget](https://write.woa.com/document/93177225215877120#getScreenSharingTarget) | 获取屏幕分享列表 |
149
- | [selectScreenSharingTarget](https://write.woa.com/document/93177225215877120#selectScreenSharingTarget) | 切换屏幕分享窗口 |
150
- | [on](https://write.woa.com/document/93177225215877120#on) | 监听 roomEngine 的事件 |
151
- | [off](https://write.woa.com/document/93177225215877120#off) | 取消监听 roomEngine 的事件 |
152
- | [getCameraDevicesList](https://write.woa.com/document/93177225215877120#getCameraDevicesList) | 获取摄像头设备列表 |
153
- | [getMicDevicesList](https://write.woa.com/document/93177225215877120#getMicDevicesList) | 获取麦克风设备列表 |
154
- | [getSpeakerDevicesList](https://write.woa.com/document/93177225215877120#getSpeakerDevicesList) | 获取扬声器设备列表 |
155
- | [setCurrentCameraDevice](https://write.woa.com/document/93177225215877120#setCurrentCameraDevice) | 设置要使用的摄像头设备 |
156
- | [setCurrentMicDevice](https://write.woa.com/document/93177225215877120#setCurrentMicDevice) | 设置要使用的麦克风设备 |
157
- | [setCurrentSpeakerDevice](https://write.woa.com/document/93177225215877120#setCurrentSpeakerDevice) | 设置要使用的扬声器设备 |
158
- | [getCurrentCameraDevice](https://write.woa.com/document/93177225215877120#getCurrentCameraDevice) | 获取当前正在使用的摄像头设备 |
159
- | [getCurrentMicDevice](https://write.woa.com/document/93177225215877120#getCurrentMicDevice) | 获取当前正在使用的麦克风设备 |
160
- | [getCurrentSpeakerDevice](https://write.woa.com/document/93177225215877120#getCurrentSpeakerDevice) | 获取当前正在使用的扬声器设备 |
161
- | [startCameraDeviceTest](https://write.woa.com/document/93177225215877120#startCameraDeviceTest) | 开始进行摄像头测试 |
162
- | [stopCameraDeviceTest](https://write.woa.com/document/93177225215877120#stopCameraDeviceTest) | 停止摄像头测试 |
163
- | [getTRTCCloud](https://write.woa.com/document/93177225215877120#getTRTCCloud) | 获取 trtcCloud 实例 |
164
- | [getTIM](https://write.woa.com/document/93177225215877120#getTIM) | 获取 tim 实例 |
105
+ | [init](https://cloud.tencent.com/document/product/647/84265#init) | 初始化 TUIRoomEngine |
106
+ | [setSelfInfo](https://cloud.tencent.com/document/product/647/84265#setSelfInfo) | 设置当前用户基本信息(用户名、用户头像) |
107
+ | [createRoom](https://cloud.tencent.com/document/product/647/84265#createRoom) | 创建房间 |
108
+ | [enterRoom](https://cloud.tencent.com/document/product/647/84265#enterRoom) | 进入房间 |
109
+ | [destroyRoom](https://cloud.tencent.com/document/product/647/84265#destroyRoom) | 销毁房间 |
110
+ | [exitRoom](https://cloud.tencent.com/document/product/647/84265#exitRoom) | 离开房间 |
111
+ | [getRoomInfo](https://cloud.tencent.com/document/product/647/84265#getRoomInfo) | 获取房间信息 |
112
+ | [updateRoomInfo](https://cloud.tencent.com/document/product/647/84265#updateRoomInfo) | 更新房间信息 |
113
+ | [getUserList](https://cloud.tencent.com/document/product/647/84265#getUserList) | 获取当前房间用户列表 |
114
+ | [getUserInfo](https://cloud.tencent.com/document/product/647/84265#getUserInfo) | 获取用户的详细信息 |
115
+ | [takeSeat](https://cloud.tencent.com/document/product/647/84265#takeSeat) | 获取麦位 |
116
+ | [leaveSeat](https://cloud.tencent.com/document/product/647/84265#leaveSeat) | 释放麦位 |
117
+ | [getSeatList](https://cloud.tencent.com/document/product/647/84265#getSeatList) | 获取麦位信息 |
118
+ | [requestToOpenRemoteCamera](https://cloud.tencent.com/document/product/647/84265#requestToOpenRemoteCamera) | 请求远端用户打开摄像头 |
119
+ | [closeRemoteCamera](https://cloud.tencent.com/document/product/647/84265#closeRemoteCamera) | 关闭远端用户摄像头 |
120
+ | [requestToOpenRemoteMicrophone](https://cloud.tencent.com/document/product/647/84265#requestToOpenRemoteMicrophone) | 请求远端用户打开麦克风 |
121
+ | [closeRemoteMicrophone](https://cloud.tencent.com/document/product/647/84265#closeRemoteMicrophone) | 关闭远端用户麦克风 |
122
+ | [requestRemoteUserOnSeat](https://cloud.tencent.com/document/product/647/84265#requestRemoteUserOnSeat) | 邀请其他人上麦 |
123
+ | [kickRemoteUserOffSeat](https://cloud.tencent.com/document/product/647/84265#kickRemoteUserOffSeat) | 要求其他人下麦 |
124
+ | [cancelRequest](https://cloud.tencent.com/document/product/647/84265#cancelRequest) | 取消已经发出的请求 |
125
+ | [responseRemoteRequest](https://cloud.tencent.com/document/product/647/84265#responseRemoteRequest) | 回复远端用户的请求 |
126
+ | [setLocalRenderView](https://cloud.tencent.com/document/product/647/84265#setLocalRenderView) | 设置本地流的渲染位置 |
127
+ | [openLocalCamera](https://cloud.tencent.com/document/product/647/84265#openLocalCamera) | 本地摄像头视频流采集 |
128
+ | [closeLocalCamera](https://cloud.tencent.com/document/product/647/84265#closeLocalCamera) | 关闭本地摄像头 |
129
+ | [openLocalMicrophone](https://cloud.tencent.com/document/product/647/84265#openLocalMicrophone) | 打开本地麦克风 |
130
+ | [closeLocalMicrophone](https://cloud.tencent.com/document/product/647/84265#closeLocalMicrophone) | 关闭本地麦克风 |
131
+ | [setLocalVideoProfile](https://cloud.tencent.com/document/product/647/84265#setLocalVideoProfile) | 设置本地视频的参数 |
132
+ | [setLocalAudioProfile](https://cloud.tencent.com/document/product/647/84265#setLocalAudioProfile) | 设置本地音频的参数 |
133
+ | [startPushLocalVideo](https://cloud.tencent.com/document/product/647/84265#startPushLocalVideo) | 开始向远端推本地视频流 |
134
+ | [stopPushLocalVideo](https://cloud.tencent.com/document/product/647/84265#stopPushLocalVideo) | 停止向远端推本地视频流 |
135
+ | [startPushLocalAudio](https://cloud.tencent.com/document/product/647/84265#startPushLocalAudio) | 开始向远端推本地音频流 |
136
+ | [stopPushLocalAudio](https://cloud.tencent.com/document/product/647/84265#stopPushLocalAudio) | 停止向远端推本地音频流 |
137
+ | [setRemoteRenderView](https://cloud.tencent.com/document/product/647/84265#setRemoteRenderView) | 设置远端流渲染的区域 |
138
+ | [startPlayRemoteVideo](https://cloud.tencent.com/document/product/647/84265#startPlayRemoteVideo) | 开始播放远端用户视频流 |
139
+ | [stopPlayRemoteVideo](https://cloud.tencent.com/document/product/647/84265#stopPlayRemoteVideo) | 停止播放远端用户视频流 |
140
+ | [changeUserRole](https://cloud.tencent.com/document/product/647/84265#changeUserRole) | 改变用户的角色 |
141
+ | [muteRemoteUser](https://cloud.tencent.com/document/product/647/84265#muteRemoteUser) | 禁止远端用户发送消息 |
142
+ | [unmuteRemoteUser](https://cloud.tencent.com/document/product/647/84265#unmuteRemoteUser) | 取消禁止远端用户发送消息 |
143
+ | [kickOutRemoteUser](https://cloud.tencent.com/document/product/647/84265#kickOutRemoteUser) | 将用户踢出房间 |
144
+ | [sendTextMessage](https://cloud.tencent.com/document/product/647/84265#sendTextMessage) | 发送文本消息 |
145
+ | [sendCustomMessage](https://cloud.tencent.com/document/product/647/84265#sendCustomMessage) | 发送自定义消息 |
146
+ | [startScreenSharingElectron](https://cloud.tencent.com/document/product/647/84265#startScreenSharingElectron) | 开始屏幕共享 |
147
+ | [stopScreenSharingElectron](https://cloud.tencent.com/document/product/647/84265#stopScreenSharingElectron) | 停止屏幕共享 |
148
+ | [getScreenSharingTarget](https://cloud.tencent.com/document/product/647/84265#getScreenSharingTarget) | 获取屏幕分享列表 |
149
+ | [selectScreenSharingTarget](https://cloud.tencent.com/document/product/647/84265#selectScreenSharingTarget) | 切换屏幕分享窗口 |
150
+ | [on](https://cloud.tencent.com/document/product/647/84265#on) | 监听 roomEngine 的事件 |
151
+ | [off](https://cloud.tencent.com/document/product/647/84265#off) | 取消监听 roomEngine 的事件 |
152
+ | [getCameraDevicesList](https://cloud.tencent.com/document/product/647/84265#getCameraDevicesList) | 获取摄像头设备列表 |
153
+ | [getMicDevicesList](https://cloud.tencent.com/document/product/647/84265#getMicDevicesList) | 获取麦克风设备列表 |
154
+ | [getSpeakerDevicesList](https://cloud.tencent.com/document/product/647/84265#getSpeakerDevicesList) | 获取扬声器设备列表 |
155
+ | [setCurrentCameraDevice](https://cloud.tencent.com/document/product/647/84265#setCurrentCameraDevice) | 设置要使用的摄像头设备 |
156
+ | [setCurrentMicDevice](https://cloud.tencent.com/document/product/647/84265#setCurrentMicDevice) | 设置要使用的麦克风设备 |
157
+ | [setCurrentSpeakerDevice](https://cloud.tencent.com/document/product/647/84265#setCurrentSpeakerDevice) | 设置要使用的扬声器设备 |
158
+ | [getCurrentCameraDevice](https://cloud.tencent.com/document/product/647/84265#getCurrentCameraDevice) | 获取当前正在使用的摄像头设备 |
159
+ | [getCurrentMicDevice](https://cloud.tencent.com/document/product/647/84265#getCurrentMicDevice) | 获取当前正在使用的麦克风设备 |
160
+ | [getCurrentSpeakerDevice](https://cloud.tencent.com/document/product/647/84265#getCurrentSpeakerDevice) | 获取当前正在使用的扬声器设备 |
161
+ | [startCameraDeviceTest](https://cloud.tencent.com/document/product/647/84265#startCameraDeviceTest) | 开始进行摄像头测试 |
162
+ | [stopCameraDeviceTest](https://cloud.tencent.com/document/product/647/84265#stopCameraDeviceTest) | 停止摄像头测试 |
163
+ | [getTRTCCloud](https://cloud.tencent.com/document/product/647/84265#getTRTCCloud) | 获取 trtcCloud 实例 |
164
+ | [getTIM](https://cloud.tencent.com/document/product/647/84265#getTIM) | 获取 tim 实例 |
165
165
 
166
166
  ### 参考文档
167
- - [TUIRoomEngine](https://write.woa.com/document/93177225215877120)
168
- - [快速接入 TUIRoomKit Web](https://write.woa.com/document/93119862767460352)
167
+ - [TUIRoomEngine](https://cloud.tencent.com/document/product/647/84265)
168
+ - [快速接入 TUIRoomKit Electron](https://cloud.tencent.com/document/product/647/84238)
169
169
  - [腾讯实时音视频 TRTC](https://cloud.tencent.com/document/product/647/16788)
170
170
  - [腾讯云即时通信 IM](https://cloud.tencent.com/document/product/269/1498)
package/index.cjs.js CHANGED
@@ -9607,22 +9607,22 @@ class Logger {
9607
9607
  sdkAppId,
9608
9608
  });
9609
9609
  }
9610
- else {
9611
- this.logger = {
9612
- debug: (msg) => {
9613
- console.debug(msg);
9614
- },
9615
- info: (msg) => {
9616
- console.info(msg);
9617
- },
9618
- warn: (msg) => {
9619
- console.warn(msg);
9620
- },
9621
- error: (msg) => {
9622
- console.error(msg);
9623
- }
9624
- };
9625
- }
9610
+ }
9611
+ if (!this.logger) {
9612
+ this.logger = {
9613
+ debug: (msg) => {
9614
+ console.debug(msg);
9615
+ },
9616
+ info: (msg) => {
9617
+ console.info(msg);
9618
+ },
9619
+ warn: (msg) => {
9620
+ console.warn(msg);
9621
+ },
9622
+ error: (msg) => {
9623
+ console.error(msg);
9624
+ }
9625
+ };
9626
9626
  }
9627
9627
  }
9628
9628
  getLogMessage(params) {
@@ -9664,7 +9664,7 @@ class Logger {
9664
9664
  }
9665
9665
  }
9666
9666
 
9667
- var version = "0.0.4";
9667
+ var version = "1.0.0";
9668
9668
 
9669
9669
  const userAgent = navigator.userAgent.toLowerCase();
9670
9670
  const isElectron = userAgent.indexOf(' electron/') > -1;
package/index.esm.js CHANGED
@@ -9598,22 +9598,22 @@ class Logger {
9598
9598
  sdkAppId,
9599
9599
  });
9600
9600
  }
9601
- else {
9602
- this.logger = {
9603
- debug: (msg) => {
9604
- console.debug(msg);
9605
- },
9606
- info: (msg) => {
9607
- console.info(msg);
9608
- },
9609
- warn: (msg) => {
9610
- console.warn(msg);
9611
- },
9612
- error: (msg) => {
9613
- console.error(msg);
9614
- }
9615
- };
9616
- }
9601
+ }
9602
+ if (!this.logger) {
9603
+ this.logger = {
9604
+ debug: (msg) => {
9605
+ console.debug(msg);
9606
+ },
9607
+ info: (msg) => {
9608
+ console.info(msg);
9609
+ },
9610
+ warn: (msg) => {
9611
+ console.warn(msg);
9612
+ },
9613
+ error: (msg) => {
9614
+ console.error(msg);
9615
+ }
9616
+ };
9617
9617
  }
9618
9618
  }
9619
9619
  getLogMessage(params) {
@@ -9655,7 +9655,7 @@ class Logger {
9655
9655
  }
9656
9656
  }
9657
9657
 
9658
- var version = "0.0.4";
9658
+ var version = "1.0.0";
9659
9659
 
9660
9660
  const userAgent = navigator.userAgent.toLowerCase();
9661
9661
  const isElectron = userAgent.indexOf(' electron/') > -1;
package/index.js CHANGED
@@ -9605,22 +9605,22 @@
9605
9605
  sdkAppId,
9606
9606
  });
9607
9607
  }
9608
- else {
9609
- this.logger = {
9610
- debug: (msg) => {
9611
- console.debug(msg);
9612
- },
9613
- info: (msg) => {
9614
- console.info(msg);
9615
- },
9616
- warn: (msg) => {
9617
- console.warn(msg);
9618
- },
9619
- error: (msg) => {
9620
- console.error(msg);
9621
- }
9622
- };
9623
- }
9608
+ }
9609
+ if (!this.logger) {
9610
+ this.logger = {
9611
+ debug: (msg) => {
9612
+ console.debug(msg);
9613
+ },
9614
+ info: (msg) => {
9615
+ console.info(msg);
9616
+ },
9617
+ warn: (msg) => {
9618
+ console.warn(msg);
9619
+ },
9620
+ error: (msg) => {
9621
+ console.error(msg);
9622
+ }
9623
+ };
9624
9624
  }
9625
9625
  }
9626
9626
  getLogMessage(params) {
@@ -9662,7 +9662,7 @@
9662
9662
  }
9663
9663
  }
9664
9664
 
9665
- var version = "0.0.4";
9665
+ var version = "1.0.0";
9666
9666
 
9667
9667
  const userAgent = navigator.userAgent.toLowerCase();
9668
9668
  const isElectron = userAgent.indexOf(' electron/') > -1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tencentcloud/tuiroom-engine-electron",
3
- "version": "0.0.4",
3
+ "version": "1.0.0",
4
4
  "description": "TUIRoomEngine Electron SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -10,7 +10,7 @@
10
10
  "im",
11
11
  "javascript"
12
12
  ],
13
- "homepage": "https://write.woa.com/document/96640299265654784",
13
+ "homepage": "https://cloud.tencent.com/document/product/647/84265",
14
14
  "repository": {
15
15
  "type": "git",
16
16
  "url": "git@github.com:tencentyun/TUIRoom.git"