tencentcloud-sdk-nodejs-trtc 4.0.397 → 4.0.432
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/CHANGELOG.md +5389 -0
- package/README.md +3 -3
- package/SERVICE_CHANGELOG.md +3620 -52
- package/package.json +1 -1
- package/products.md +92 -92
- package/src/services/trtc/v20190722/trtc_client.ts +134 -130
- package/src/services/trtc/v20190722/trtc_models.ts +1214 -934
- package/tencentcloud/services/trtc/v20190722/trtc_client.d.ts +42 -36
- package/tencentcloud/services/trtc/v20190722/trtc_client.js +48 -46
- package/tencentcloud/services/trtc/v20190722/trtc_models.d.ts +1142 -906
|
@@ -17,83 +17,93 @@
|
|
|
17
17
|
*/
|
|
18
18
|
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common"
|
|
19
19
|
import {
|
|
20
|
-
DescribeAbnormalEventResponse,
|
|
21
|
-
SdkAppIdRecordUsage,
|
|
22
|
-
EncodeParams,
|
|
23
|
-
DescribeAbnormalEventRequest,
|
|
24
|
-
DescribeScaleInfoRequest,
|
|
25
|
-
ModifyPictureResponse,
|
|
26
|
-
StartMCUMixTranscodeByStrRoomIdRequest,
|
|
27
|
-
LayoutParams,
|
|
28
|
-
DescribeScaleInfoResponse,
|
|
29
20
|
CreatePictureRequest,
|
|
30
|
-
|
|
31
|
-
SdkAppIdTrtcMcuTranscodeTimeUsage,
|
|
32
|
-
RemoveUserByStrRoomIdRequest,
|
|
33
|
-
DismissRoomResponse,
|
|
34
|
-
EventMessage,
|
|
35
|
-
DescribeRecordStatisticRequest,
|
|
36
|
-
DescribeUserInformationRequest,
|
|
37
|
-
DescribeCallDetailRequest,
|
|
38
|
-
ScaleInfomation,
|
|
39
|
-
DescribeUserInformationResponse,
|
|
40
|
-
SdkAppIdNewTrtcTimeUsage,
|
|
41
|
-
DescribeTrtcMcuTranscodeTimeResponse,
|
|
21
|
+
MixLayout,
|
|
42
22
|
RemoveUserByStrRoomIdResponse,
|
|
43
23
|
StartMCUMixTranscodeRequest,
|
|
44
|
-
StopMCUMixTranscodeRequest,
|
|
45
|
-
DescribeCallDetailInfoResponse,
|
|
46
24
|
DescribeUserEventRequest,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
25
|
+
StartMCUMixTranscodeByStrRoomIdRequest,
|
|
26
|
+
ScaleInfomation,
|
|
27
|
+
DescribeUserEventResponse,
|
|
28
|
+
StopMCUMixTranscodeByStrRoomIdResponse,
|
|
29
|
+
PictureInfo,
|
|
30
|
+
DescribeCallDetailInfoRequest,
|
|
31
|
+
MixTranscodeParams,
|
|
32
|
+
DescribeUserInfoRequest,
|
|
33
|
+
WaterMarkParams,
|
|
34
|
+
DescribeRecordStatisticResponse,
|
|
35
|
+
StartMCUMixTranscodeByStrRoomIdResponse,
|
|
36
|
+
CloudStorage,
|
|
37
|
+
TimeValue,
|
|
38
|
+
DismissRoomByStrRoomIdRequest,
|
|
39
|
+
EventMessage,
|
|
40
|
+
DescribeRecordStatisticRequest,
|
|
53
41
|
DescribeRoomInfoRequest,
|
|
54
|
-
|
|
42
|
+
StorageParams,
|
|
43
|
+
CloudVod,
|
|
44
|
+
EncodeParams,
|
|
45
|
+
DescribeCallDetailInfoResponse,
|
|
46
|
+
TrtcTimeNewUsage,
|
|
55
47
|
ModifyPictureRequest,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
QualityData,
|
|
60
|
-
AbnormalEvent,
|
|
61
|
-
StopMCUMixTranscodeByStrRoomIdResponse,
|
|
62
|
-
DeletePictureResponse,
|
|
48
|
+
SmallVideoLayoutParams,
|
|
49
|
+
SubscribeStreamUserIds,
|
|
50
|
+
WaterMarkImage,
|
|
63
51
|
EventList,
|
|
64
52
|
DescribeRoomInfoResponse,
|
|
65
|
-
|
|
66
|
-
DescribeDetailEventResponse,
|
|
67
|
-
DismissRoomByStrRoomIdRequest,
|
|
68
|
-
UserInformation,
|
|
69
|
-
DescribeExternalTrtcMeasureResponse,
|
|
70
|
-
DescribeUserEventResponse,
|
|
71
|
-
DescribeCallDetailInfoRequest,
|
|
72
|
-
DescribePictureRequest,
|
|
73
|
-
DescribeUnusualEventRequest,
|
|
53
|
+
SdkAppIdTrtcMcuTranscodeTimeUsage,
|
|
74
54
|
DescribeUserInfoResponse,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
55
|
+
ModifyPictureResponse,
|
|
56
|
+
StorageFile,
|
|
57
|
+
WaterMark,
|
|
58
|
+
DescribeScaleInfoResponse,
|
|
59
|
+
MixLayoutParams,
|
|
78
60
|
StopMCUMixTranscodeResponse,
|
|
79
|
-
|
|
61
|
+
SdkAppIdNewTrtcTimeUsage,
|
|
62
|
+
RemoveUserRequest,
|
|
63
|
+
DismissRoomRequest,
|
|
64
|
+
DescribeUnusualEventRequest,
|
|
65
|
+
DescribeCloudRecordingRequest,
|
|
66
|
+
TencentVod,
|
|
67
|
+
StopMCUMixTranscodeRequest,
|
|
68
|
+
LayoutParams,
|
|
69
|
+
RecordUsage,
|
|
70
|
+
CreateCloudRecordingRequest,
|
|
71
|
+
OutputParams,
|
|
72
|
+
DeleteCloudRecordingResponse,
|
|
73
|
+
StopMCUMixTranscodeByStrRoomIdRequest,
|
|
74
|
+
QualityData,
|
|
75
|
+
DeletePictureResponse,
|
|
76
|
+
ModifyCloudRecordingRequest,
|
|
77
|
+
VideoParams,
|
|
80
78
|
OneSdkAppIdTranscodeTimeUsagesInfo,
|
|
79
|
+
CreateCloudRecordingResponse,
|
|
80
|
+
StartMCUMixTranscodeResponse,
|
|
81
|
+
DescribeTrtcMcuTranscodeTimeResponse,
|
|
82
|
+
DeleteCloudRecordingRequest,
|
|
83
|
+
DescribePictureRequest,
|
|
84
|
+
DescribeExternalTrtcMeasureResponse,
|
|
81
85
|
DescribePictureResponse,
|
|
86
|
+
DescribeTrtcMcuTranscodeTimeRequest,
|
|
87
|
+
UserInformation,
|
|
88
|
+
DescribeScaleInfoRequest,
|
|
89
|
+
DismissRoomByStrRoomIdResponse,
|
|
90
|
+
DescribeUnusualEventResponse,
|
|
91
|
+
ModifyCloudRecordingResponse,
|
|
92
|
+
AbnormalEvent,
|
|
93
|
+
DescribeCloudRecordingResponse,
|
|
94
|
+
DismissRoomResponse,
|
|
95
|
+
DeletePictureRequest,
|
|
96
|
+
DescribeExternalTrtcMeasureRequest,
|
|
97
|
+
RemoveUserByStrRoomIdRequest,
|
|
98
|
+
RecordParams,
|
|
99
|
+
SdkAppIdRecordUsage,
|
|
100
|
+
PresetLayoutConfig,
|
|
101
|
+
AudioParams,
|
|
82
102
|
PublishCdnParams,
|
|
83
|
-
DescribeRoomInformationRequest,
|
|
84
|
-
DescribeUserInfoRequest,
|
|
85
|
-
DescribeDetailEventRequest,
|
|
86
103
|
AbnormalExperience,
|
|
87
|
-
StartMCUMixTranscodeResponse,
|
|
88
104
|
RoomState,
|
|
89
105
|
CreatePictureResponse,
|
|
90
|
-
|
|
91
|
-
DescribeRecordStatisticResponse,
|
|
92
|
-
DismissRoomByStrRoomIdResponse,
|
|
93
|
-
DescribeHistoryScaleResponse,
|
|
94
|
-
DescribeUnusualEventResponse,
|
|
95
|
-
StartMCUMixTranscodeByStrRoomIdResponse,
|
|
96
|
-
PictureInfo,
|
|
106
|
+
RemoveUserResponse,
|
|
97
107
|
} from "./trtc_models"
|
|
98
108
|
|
|
99
109
|
/**
|
|
@@ -106,9 +116,11 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
106
116
|
}
|
|
107
117
|
|
|
108
118
|
/**
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
119
|
+
* 查询SdkAppId下的房间列表。默认返回10条通话,一次最多返回100条通话。可查询14天内的数据。(同老接口DescribeRoomInformation)
|
|
120
|
+
**注意**:
|
|
121
|
+
1.该接口只用于历史数据统计或核对数据使用,实时类关键业务逻辑不能使用。
|
|
122
|
+
2.该接口目前免费提供中,监控仪表盘商业化计费后该接口需要订阅付费版后方可调用,仪表盘商业化说明请见:https://cloud.tencent.com/document/product/647/77735
|
|
123
|
+
*/
|
|
112
124
|
async DescribeRoomInfo(
|
|
113
125
|
req: DescribeRoomInfoRequest,
|
|
114
126
|
cb?: (error: string, rep: DescribeRoomInfoResponse) => void
|
|
@@ -147,20 +159,11 @@ TRTC 的一个房间中可能会同时存在多路音视频流,您可以通过
|
|
|
147
159
|
}
|
|
148
160
|
|
|
149
161
|
/**
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
cb?: (error: string, rep: DescribeRoomInformationResponse) => void
|
|
156
|
-
): Promise<DescribeRoomInformationResponse> {
|
|
157
|
-
return this.request("DescribeRoomInformation", req, cb)
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
/**
|
|
161
|
-
* 查询指定时间内的用户列表及用户通话质量数据,可查询14天内数据。DataType 不为null,查询起止时间不超过1个小时,查询用户不超过6个,支持跨天查询。DataType为null时,查询起止时间不超过4个小时, 默认查询6个用户,同时支持每页查询100以内用户个数(PageSize不超过100)。接口用于查询质量问题,不推荐作为计费使用。(同老接口DescribeCallDetail)
|
|
162
|
-
**注意**:该接口只用于历史数据统计或核对数据使用,实时类关键业务逻辑不能使用。
|
|
163
|
-
*/
|
|
162
|
+
* 查询指定时间内的用户列表及用户通话质量数据,可查询14天内数据。DataType 不为null,查询起止时间不超过1个小时,查询用户不超过6个,支持跨天查询。DataType为null时,查询起止时间不超过4个小时, 默认查询6个用户,同时支持每页查询100以内用户个数(PageSize不超过100)。接口用于查询质量问题,不推荐作为计费使用。(同老接口DescribeCallDetail)
|
|
163
|
+
**注意**:
|
|
164
|
+
1.该接口只用于历史数据统计或核对数据使用,实时类关键业务逻辑不能使用。
|
|
165
|
+
2.该接口目前免费提供中,监控仪表盘商业化计费后该接口需要订阅付费版后方可调用,仪表盘商业化说明请见:https://cloud.tencent.com/document/product/647/77735
|
|
166
|
+
*/
|
|
164
167
|
async DescribeCallDetailInfo(
|
|
165
168
|
req: DescribeCallDetailInfoRequest,
|
|
166
169
|
cb?: (error: string, rep: DescribeCallDetailInfoResponse) => void
|
|
@@ -178,16 +181,6 @@ TRTC 的一个房间中可能会同时存在多路音视频流,您可以通过
|
|
|
178
181
|
return this.request("StopMCUMixTranscode", req, cb)
|
|
179
182
|
}
|
|
180
183
|
|
|
181
|
-
/**
|
|
182
|
-
* 可查询SdkAppId每天的房间数和用户数,按天统计,可查询最近14天的数据。当天未结束,数据未统计完成,无法查到当天的房间数与用户数
|
|
183
|
-
*/
|
|
184
|
-
async DescribeHistoryScale(
|
|
185
|
-
req: DescribeHistoryScaleRequest,
|
|
186
|
-
cb?: (error: string, rep: DescribeHistoryScaleResponse) => void
|
|
187
|
-
): Promise<DescribeHistoryScaleResponse> {
|
|
188
|
-
return this.request("DescribeHistoryScale", req, cb)
|
|
189
|
-
}
|
|
190
|
-
|
|
191
184
|
/**
|
|
192
185
|
* 如果您需要在 [云端混流转码](https://cloud.tencent.com/document/product/647/16827) 时频繁删除自定义背景图或水印,可通过此接口删除已上传的图片。无需频繁删除图片的场景,建议直接在 [控制台 > 应用管理 > 素材管理](https://cloud.tencent.com/document/product/647/50769) 中操作。
|
|
193
186
|
*/
|
|
@@ -219,14 +212,13 @@ TRTC 的一个房间中可能会同时存在多路音视频流,您可以通过
|
|
|
219
212
|
}
|
|
220
213
|
|
|
221
214
|
/**
|
|
222
|
-
*
|
|
223
|
-
**注意**:该接口只用于历史数据统计或核对数据使用,实时类关键业务逻辑不能使用。
|
|
215
|
+
* 成功开启录制后,可以使用此接口来更新录制任务。仅在录制任务进行时有效,录制退出后更新将会返回错误。更新操作是全量覆盖,并不是增量更新的模式,也就是说每次更新都需要携带全量的信息。
|
|
224
216
|
*/
|
|
225
|
-
async
|
|
226
|
-
req:
|
|
227
|
-
cb?: (error: string, rep:
|
|
228
|
-
): Promise<
|
|
229
|
-
return this.request("
|
|
217
|
+
async ModifyCloudRecording(
|
|
218
|
+
req: ModifyCloudRecordingRequest,
|
|
219
|
+
cb?: (error: string, rep: ModifyCloudRecordingResponse) => void
|
|
220
|
+
): Promise<ModifyCloudRecordingResponse> {
|
|
221
|
+
return this.request("ModifyCloudRecording", req, cb)
|
|
230
222
|
}
|
|
231
223
|
|
|
232
224
|
/**
|
|
@@ -239,6 +231,27 @@ TRTC 的一个房间中可能会同时存在多路音视频流,您可以通过
|
|
|
239
231
|
return this.request("DescribeUserEvent", req, cb)
|
|
240
232
|
}
|
|
241
233
|
|
|
234
|
+
/**
|
|
235
|
+
* 接口说明:
|
|
236
|
+
启动云端录制功能,完成房间内的音视频录制,并上传到指定的云存储。您可以通过此 API 接口把TRTC 房间中的每一路音视频流做单独的录制有或者多路视频画面混流一路。
|
|
237
|
+
|
|
238
|
+
您可以通过此接口实现如下目标:
|
|
239
|
+
* 指定订阅流参数(RecordParams)来指定需要录制的主播的黑名单或者白名单。
|
|
240
|
+
* 指定第三方存储的参数(StorageParams)来指定上传到您希望的云存储,目前仅支持云点播存储(CloudVod)
|
|
241
|
+
* 指定混流模式下的音视频转码详细参数(MixTranscodeParams),包括视频分辨率、视频码率、视频帧率、以及声音质量等
|
|
242
|
+
* 指定混流模式各路画面的位置和布局或者也可以指定自动模板的方式来配置。
|
|
243
|
+
|
|
244
|
+
关键名词:
|
|
245
|
+
* 单流录制:分别录制房间的订阅UserId的音频和视频。录制服务会实时将录制文件上传至云点播存储。
|
|
246
|
+
* 合流录制:将房间内订阅UserId的音视频混录成一个音视频文件,并将录制文件上传至云点播存储。
|
|
247
|
+
*/
|
|
248
|
+
async CreateCloudRecording(
|
|
249
|
+
req: CreateCloudRecordingRequest,
|
|
250
|
+
cb?: (error: string, rep: CreateCloudRecordingResponse) => void
|
|
251
|
+
): Promise<CreateCloudRecordingResponse> {
|
|
252
|
+
return this.request("CreateCloudRecording", req, cb)
|
|
253
|
+
}
|
|
254
|
+
|
|
242
255
|
/**
|
|
243
256
|
* 获取Trtc的用量统计数据。走计费渠道二期 只允许查两天的数据
|
|
244
257
|
*/
|
|
@@ -270,9 +283,11 @@ TRTC 的一个房间中可能会同时存在多路音视频流,您可以通过
|
|
|
270
283
|
}
|
|
271
284
|
|
|
272
285
|
/**
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
286
|
+
* 查询指定时间内的用户列表,可查询14天内数据,查询起止时间不超过4小时。默认每页查询6个用户,支持每页最大查询100个用户PageSize不超过100)。(同老接口DescribeUserInformation)
|
|
287
|
+
**注意**:
|
|
288
|
+
1.该接口只用于历史数据统计或核对数据使用,实时类关键业务逻辑不能使用。
|
|
289
|
+
2.该接口目前免费提供中,监控仪表盘商业化计费后该接口需要订阅付费版后方可调用,仪表盘商业化说明请见:https://cloud.tencent.com/document/product/647/77735
|
|
290
|
+
*/
|
|
276
291
|
async DescribeUserInfo(
|
|
277
292
|
req: DescribeUserInfoRequest,
|
|
278
293
|
cb?: (error: string, rep: DescribeUserInfoResponse) => void
|
|
@@ -300,17 +315,6 @@ TRTC 的一个房间中可能会同时存在多路音视频流,您可以通过
|
|
|
300
315
|
return this.request("StopMCUMixTranscodeByStrRoomId", req, cb)
|
|
301
316
|
}
|
|
302
317
|
|
|
303
|
-
/**
|
|
304
|
-
* 查询SdkAppId下任意20条异常体验事件,返回异常体验ID与可能产生异常体验的原因。可查询14天内数据,查询起止时间不超过1个小时。支持跨天查询。
|
|
305
|
-
异常体验ID映射见:https://cloud.tencent.com/document/product/647/44916
|
|
306
|
-
*/
|
|
307
|
-
async DescribeAbnormalEvent(
|
|
308
|
-
req: DescribeAbnormalEventRequest,
|
|
309
|
-
cb?: (error: string, rep: DescribeAbnormalEventResponse) => void
|
|
310
|
-
): Promise<DescribeAbnormalEventResponse> {
|
|
311
|
-
return this.request("DescribeAbnormalEvent", req, cb)
|
|
312
|
-
}
|
|
313
|
-
|
|
314
318
|
/**
|
|
315
319
|
* 接口说明:启动云端混流,并指定混流画面中各路画面的布局位置。
|
|
316
320
|
|
|
@@ -390,6 +394,27 @@ TRTC 的一个房间中可能会同时存在多路音视频流,您可以通过
|
|
|
390
394
|
return this.request("DescribeTrtcMcuTranscodeTime", req, cb)
|
|
391
395
|
}
|
|
392
396
|
|
|
397
|
+
/**
|
|
398
|
+
* 成功开启录制后,可以使用此接口来查询录制状态。仅在录制任务进行时有效,录制退出后查询将会返回错误。
|
|
399
|
+
录制文件上传到云点播VOD时,StorageFileList中不会返回录制文件信息,请订阅相关录制文件回调事件,获取录制文件信息。
|
|
400
|
+
*/
|
|
401
|
+
async DescribeCloudRecording(
|
|
402
|
+
req: DescribeCloudRecordingRequest,
|
|
403
|
+
cb?: (error: string, rep: DescribeCloudRecordingResponse) => void
|
|
404
|
+
): Promise<DescribeCloudRecordingResponse> {
|
|
405
|
+
return this.request("DescribeCloudRecording", req, cb)
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
/**
|
|
409
|
+
* 成功开启录制后,可以使用此接口来停止录制任务。停止录制成功后不代表文件全部传输完成,如果未完成后台将会继续上传文件,成功后通过事件回调通知客户文件全部传输完成状态。
|
|
410
|
+
*/
|
|
411
|
+
async DeleteCloudRecording(
|
|
412
|
+
req: DeleteCloudRecordingRequest,
|
|
413
|
+
cb?: (error: string, rep: DeleteCloudRecordingResponse) => void
|
|
414
|
+
): Promise<DeleteCloudRecordingResponse> {
|
|
415
|
+
return this.request("DeleteCloudRecording", req, cb)
|
|
416
|
+
}
|
|
417
|
+
|
|
393
418
|
/**
|
|
394
419
|
* 如果您需要在 [云端混流转码](https://cloud.tencent.com/document/product/647/16827) 时频繁查找自定义背景图或水印信息,可通过此接口查找已上传的图片信息。无需频繁查找图片信息的场景,建议直接在 [控制台 > 应用管理 > 素材管理](https://cloud.tencent.com/document/product/647/50769) 中查看。
|
|
395
420
|
*/
|
|
@@ -400,16 +425,6 @@ TRTC 的一个房间中可能会同时存在多路音视频流,您可以通过
|
|
|
400
425
|
return this.request("DescribePicture", req, cb)
|
|
401
426
|
}
|
|
402
427
|
|
|
403
|
-
/**
|
|
404
|
-
* 查询用户某次通话内的进退房,视频开关等详细事件。可查询14天内数据。
|
|
405
|
-
*/
|
|
406
|
-
async DescribeDetailEvent(
|
|
407
|
-
req: DescribeDetailEventRequest,
|
|
408
|
-
cb?: (error: string, rep: DescribeDetailEventResponse) => void
|
|
409
|
-
): Promise<DescribeDetailEventResponse> {
|
|
410
|
-
return this.request("DescribeDetailEvent", req, cb)
|
|
411
|
-
}
|
|
412
|
-
|
|
413
428
|
/**
|
|
414
429
|
* 查询SdkAppId下任意20条异常体验事件,返回异常体验ID与可能产生异常体验的原因。可查询14天内数据,查询起止时间不超过1个小时。支持跨天查询。(同老接口DescribeAbnormalEvent)
|
|
415
430
|
异常体验ID映射见:https://cloud.tencent.com/document/product/647/44916
|
|
@@ -420,15 +435,4 @@ TRTC 的一个房间中可能会同时存在多路音视频流,您可以通过
|
|
|
420
435
|
): Promise<DescribeUnusualEventResponse> {
|
|
421
436
|
return this.request("DescribeUnusualEvent", req, cb)
|
|
422
437
|
}
|
|
423
|
-
|
|
424
|
-
/**
|
|
425
|
-
* 查询指定时间内的用户列表,可查询14天内数据,查询起止时间不超过4小时。默认每页查询6个用户,支持每页最大查询100个用户PageSize不超过100)。
|
|
426
|
-
**注意**:该接口只用于历史数据统计或核对数据使用,实时类关键业务逻辑不能使用。
|
|
427
|
-
*/
|
|
428
|
-
async DescribeUserInformation(
|
|
429
|
-
req: DescribeUserInformationRequest,
|
|
430
|
-
cb?: (error: string, rep: DescribeUserInformationResponse) => void
|
|
431
|
-
): Promise<DescribeUserInformationResponse> {
|
|
432
|
-
return this.request("DescribeUserInformation", req, cb)
|
|
433
|
-
}
|
|
434
438
|
}
|