@tcic/core-sdk-v1 1.0.5 → 1.0.6
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 +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/tcic.d.ts +7 -0
- package/dist/tcic_watch_sdk.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -254,6 +254,7 @@ const tcic = SDK.create({
|
|
|
254
254
|
userId: 'xxx'; //
|
|
255
255
|
token: 'token_of_the_userid';
|
|
256
256
|
classId: 345678; // got from cloud api
|
|
257
|
+
groupLiveCode: "", // 学员分组码,仅对学生端有效,传入后会对学员进行分组管理,通过云 apiDescribeGroupLiveCodes获取。
|
|
257
258
|
});
|
|
258
259
|
|
|
259
260
|
const trtcClient = SDK.createTrtcClient(tcic);
|
package/dist/index.d.ts
CHANGED
package/dist/tcic.d.ts
CHANGED
|
@@ -218,11 +218,13 @@ export declare class TCIC {
|
|
|
218
218
|
_myInfo?: MemberInfo;
|
|
219
219
|
_hostInfo?: MemberInfo;
|
|
220
220
|
playerConf: any;
|
|
221
|
+
groupLiveCode?: string;
|
|
221
222
|
constructor(opts: {
|
|
222
223
|
token: string;
|
|
223
224
|
userId: string;
|
|
224
225
|
classId: number;
|
|
225
226
|
playerConf?: any;
|
|
227
|
+
groupLiveCode?: string;
|
|
226
228
|
});
|
|
227
229
|
trtc: any;
|
|
228
230
|
setTRTC(trtc: any): void;
|
|
@@ -232,6 +234,7 @@ export declare class TCIC {
|
|
|
232
234
|
* 当前应用信息,
|
|
233
235
|
* 台上用户等等
|
|
234
236
|
* @param ready - 初始化完成回调
|
|
237
|
+
* @param groupId - 分组ID
|
|
235
238
|
*/
|
|
236
239
|
init(opts?: {
|
|
237
240
|
ready?: () => void;
|
|
@@ -316,4 +319,8 @@ export declare class TCIC {
|
|
|
316
319
|
* 设置上报是否控制台打印
|
|
317
320
|
*/
|
|
318
321
|
setReportShowConsole(showConsole: boolean): void;
|
|
322
|
+
/**
|
|
323
|
+
* 获取task列表
|
|
324
|
+
*/
|
|
325
|
+
getTasks(): Promise<unknown>;
|
|
319
326
|
}
|