@plasosdk/plaso-electron-sdk 1.0.32 → 1.0.35

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plasosdk/plaso-electron-sdk",
3
- "version": "1.0.32",
3
+ "version": "1.0.35",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/readme.md CHANGED
@@ -10,6 +10,14 @@
10
10
 
11
11
  ## 1.1、下载
12
12
 
13
+ **前提**:**electron 版本 >=14.0.0, 需要install @electron/remote**
14
+
15
+ ```
16
+ npm install @electron/remote --global-style --no-save --legacy-peer-deps
17
+ ```
18
+
19
+
20
+
13
21
  **win:需要在windows平台上执行install**
14
22
 
15
23
  ​ **32位:**
@@ -123,13 +131,15 @@ PlasoElectronSdk.createPrepareClassWindow(classObj)
123
131
  | 参数 | 是否必传 | 类型 | 默认值 | 说明 |
124
132
  | ------------------------- | -------- | -------- | ------ | ------------------------------------------------------------ |
125
133
  | displayAvatarUrl | 否 | string | 无 | 用户头像地址 |
126
- | classMembers | 否 | object[] | 无 | 1、课对应的班级学生信息<br />2、初始化课堂参与人<br /><br />3、最多支持2000人,需要支持更多学生需要联系伯索平台进行额外申请<br />{<br /><br />/** 唯一标识该用户的id */<br />loginName: string,<br /><br />/** 用户显示的姓名 */<br />name: string,<br />/** 用户角色,"speaker","assistant","listener","superlistener" 之一 */<br />upimeRole: string,<br />/** 用户的id,和云学堂业务强相关,sdk用户非必要 */<br />unique_id: number \| string<br />/** 用户头像图片的url,非必要 */<br />displayAvatarUrl: string,<br />} |
134
+ | classMembers | 否 | object[] | 无 | 1、课对应的班级用户信息<br />2、初始化课堂参与人<br /><br />3、最多支持2000人,需要支持更多学生需要联系伯索平台进行额外申请<br />{<br /><br />/** 唯一标识该用户的id */<br />loginName: string,<br /><br />/** 用户显示的姓名 */<br />name: string,<br />/** 用户角色,"speaker","assistant","listener","superlistener" 之一 */<br />upimeRole: string,<br />/** 用户的id,和云学堂业务强相关,sdk用户非必要 */<br />unique_id: number \| string<br />/** 用户头像图片的url,非必要 */<br />displayAvatarUrl: string,<br />} |
127
135
  | enableENC | 否 | boolean | true | 是否启用降噪 |
128
136
  | enableRTC3A | 否 | boolean | true | 是否启用3A。<br />false:关闭回音消除、关闭降噪、关闭增益控制 |
129
- | version | 是 | string | 无 | 对应的sdk版本,具体的版本需要在对接时确定,格式参考:1.53.901 |
137
+ | version | 是 | string | 无 | 正式使用时的线上对应的sdk版本,具体的版本需要在对接时确定,格式参考:1.53.901<br />**对接时一般不在线上环境测试**,所以需要在classOptions里传入对应环境的 **dhost、rhost**,具体格式参考如下 |
130
138
  | query | 是 | string | 无 | 进课堂必传字段,具体拼接逻辑见下文 |
131
139
  | supportShowResourceCenter | 否 | boolean | false | true:显示资料中心,但核心的云盘和获取云盘文件地址的逻辑需要用户自己实现 |
132
140
  | supportSaveBoard | 否 | boolean | false | 是否支持保存板书 |
141
+ | dhost | 否 | string | 无 | https://${environment}.plaso.cn/<br />environment可选值:dev、test、itest、ftest |
142
+ | rhost | 否 | string | 无 | https://${environment}.plaso.cn/static/yxtsdk/<br /><br />environment可选值:dev、test、itest、ftest |
133
143
  | | | | | |
134
144
 
135
145
 
@@ -283,7 +293,7 @@ appId=plaso&appType=liveclassSDK&d_dimension=1280x720&dhost=https%3A%2F%2Fdev.pl
283
293
  | --------- | ------ | ------------------------------------------------------------ |
284
294
  | loginName | String | **唯一标识该用户的id**,不能为空,相同的loginName登录,后面一个会使前面一个登出; |
285
295
  | username | String | 登录的用户名,在列表中显示用 |
286
- | version | String | 对应的sdk版本,具体的版本需要在对接时确定,格式参考:1.53.901 |
296
+ | version | String | 正式使用时的线上对应的sdk版本,具体的版本需要在对接时确定,格式参考:1.53.901<br />**对接时一般不在线上环境测试**,所以需要在classOptions里传入对应环境的 **dhost、rhost**,具体格式参考 以下 可选参数中的说明 |
287
297
  | | | |
288
298
 
289
299
  ### 3.1.2、可选参数
@@ -293,6 +303,8 @@ appId=plaso&appType=liveclassSDK&d_dimension=1280x720&dhost=https%3A%2F%2Fdev.pl
293
303
  | displayAvatarUrl | String | 用户头像地址 |
294
304
  | topic | String | 默认值是中文的 “备课课堂” |
295
305
  | **d_enableObjectEraser** | number | 新板书配置,二进制位存储<br />default: 0;默认关闭对象擦<br />7:手写(对象擦);<br />**注意:该值需要和实时课堂的传值一样** |
306
+ | dhost | String | https://${environment}.plaso.cn/<br />environment可选值:dev、test、itest、ftest |
307
+ | rhost | String | https://${environment}.plaso.cn/static/yxtsdk/<br />environment可选值:dev、test、itest、ftest |
296
308
  | | | |
297
309
 
298
310
  **注意:**
@@ -105,18 +105,18 @@ const npmInstall = () => {
105
105
  };
106
106
  // installTrtc();
107
107
 
108
- const parentElectronRemote = path.join(__dirname, '../../../', '@electron/remote');
109
-
110
- fs.pathExists(parentElectronRemote).then((exists) => {
111
- if (!exists) {
112
- exec(electron_remote, (error, stdout, stderr) => {
113
- installCb(electron_remote, () => {}, error, stdout, stderr);
114
- const oldElectronRemote = path.join(__dirname, '../node_modules', '@electron');
115
- const newElectronRemote = path.join(__dirname, '../../../', '@electron');
116
- fs.move(oldElectronRemote, newElectronRemote, { overwrite: true }, (err) => {});
117
- });
118
- }
119
- });
108
+ // const parentElectronRemote = path.join(__dirname, '../../../', '@electron/remote');
109
+
110
+ // fs.pathExists(parentElectronRemote).then((exists) => {
111
+ // if (!exists) {
112
+ // exec(electron_remote, (error, stdout, stderr) => {
113
+ // installCb(electron_remote, () => {}, error, stdout, stderr);
114
+ // const oldElectronRemote = path.join(__dirname, '../node_modules', '@electron');
115
+ // const newElectronRemote = path.join(__dirname, '../../../', '@electron');
116
+ // fs.move(oldElectronRemote, newElectronRemote, { overwrite: true }, (err) => {});
117
+ // });
118
+ // }
119
+ // });
120
120
  };
121
121
 
122
122
  const downloadFile = (fileUrl, downloadFilePath, outputFilePath) => {