tencentcloud-sdk-nodejs-trtc 4.0.460 → 4.0.462
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 +359 -0
- package/SERVICE_CHANGELOG.md +363 -110
- package/package.json +1 -1
- package/products.md +16 -16
- package/src/services/trtc/v20190722/trtc_client.ts +79 -5
- package/src/services/trtc/v20190722/trtc_models.ts +691 -106
- package/tencentcloud/services/trtc/v20190722/trtc_client.d.ts +32 -1
- package/tencentcloud/services/trtc/v20190722/trtc_client.js +37 -0
- package/tencentcloud/services/trtc/v20190722/trtc_models.d.ts +558 -62
package/products.md
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
| billing | [计费相关](https://cloud.tencent.com/document/product/555) | 2022-08-15 06:09:23 |
|
|
25
25
|
| bizlive | [商业直播](https://cloud.tencent.com/document/product) | 2020-03-10 01:08:07 |
|
|
26
26
|
| bm | [黑石物理服务器1.0](https://cloud.tencent.com/document/product/386) | 2022-08-09 11:50:03 |
|
|
27
|
-
| bma | [品牌经营管家](https://cloud.tencent.com/document/product/1296) | 2022-10-
|
|
27
|
+
| bma | [品牌经营管家](https://cloud.tencent.com/document/product/1296) | 2022-10-17 06:09:59 |
|
|
28
28
|
| bmeip | [黑石弹性公网IP](https://cloud.tencent.com/document/product/1028) | 2022-04-19 06:04:56 |
|
|
29
29
|
| bmlb | [黑石负载均衡](https://cloud.tencent.com/document/product/1027) | 2022-04-04 06:09:37 |
|
|
30
30
|
| bmvpc | [黑石私有网络](https://cloud.tencent.com/document/product/1024) | 2022-04-15 06:02:36 |
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
| bsca | [二进制软件成分分析](https://cloud.tencent.com/document/product/1483) | 2022-09-29 06:12:03 |
|
|
34
34
|
| btoe | [区块链可信取证](https://cloud.tencent.com/document/product/1259) | 2022-04-04 06:10:17 |
|
|
35
35
|
| cam | [访问管理](https://cloud.tencent.com/document/product/598) | 2022-09-23 06:11:49 |
|
|
36
|
-
| captcha | [验证码](https://cloud.tencent.com/document/product/1110) | 2022-10-
|
|
36
|
+
| captcha | [验证码](https://cloud.tencent.com/document/product/1110) | 2022-10-18 06:13:00 |
|
|
37
37
|
| car | [应用云渲染](https://cloud.tencent.com/document/product/1547) | 2022-08-03 06:08:12 |
|
|
38
38
|
| casb | [云数据加密代理网关](https://cloud.tencent.com/document/product/1303) | 2022-04-04 06:11:55 |
|
|
39
39
|
| cat | [云拨测](https://cloud.tencent.com/document/product/280) | 2022-09-15 11:03:22 |
|
|
@@ -58,14 +58,14 @@
|
|
|
58
58
|
| cloudstudio | [云端 IDE](https://cloud.tencent.com/document/product/1039) | 2022-09-28 17:57:07 |
|
|
59
59
|
| cls | [日志服务](https://cloud.tencent.com/document/product/614) | 2022-10-13 06:17:18 |
|
|
60
60
|
| cme | [多媒体创作引擎](https://cloud.tencent.com/document/product/1156) | 2022-08-24 06:19:05 |
|
|
61
|
-
| cmq | [消息队列 CMQ](https://cloud.tencent.com/document/product/406) | 2022-
|
|
61
|
+
| cmq | [消息队列 CMQ](https://cloud.tencent.com/document/product/406) | 2022-10-17 06:17:26 |
|
|
62
62
|
| cms | [内容安全](https://cloud.tencent.com/document/product) | 2020-10-29 08:03:08 |
|
|
63
63
|
| cpdp | [企业收付平台](https://cloud.tencent.com/document/product/1122) | 2022-10-14 06:19:40 |
|
|
64
64
|
| cr | [金融联络机器人](https://cloud.tencent.com/document/product/656) | 2021-02-24 08:03:24 |
|
|
65
65
|
| cvm | [云服务器](https://cloud.tencent.com/document/product/213) | 2022-10-12 06:23:14 |
|
|
66
66
|
| cwp | [主机安全](https://cloud.tencent.com/document/product/296) | 2022-10-14 06:21:52 |
|
|
67
67
|
| cws | [漏洞扫描服务](https://cloud.tencent.com/document/product) | 2019-11-22 12:16:15 |
|
|
68
|
-
| cynosdb | [云原生数据库 TDSQL-C](https://cloud.tencent.com/document/product/1003) | 2022-10-
|
|
68
|
+
| cynosdb | [云原生数据库 TDSQL-C](https://cloud.tencent.com/document/product/1003) | 2022-10-17 13:57:08 |
|
|
69
69
|
| dasb | [堡垒机](https://cloud.tencent.com/document/product/1025) | 2022-08-16 06:19:02 |
|
|
70
70
|
| dataintegration | [数据接入平台](https://cloud.tencent.com/document/product/1591) | 2022-07-26 15:32:15 |
|
|
71
71
|
| dayu | [DDoS 高防包](https://cloud.tencent.com/document/product/1021) | 2022-07-29 06:07:15 |
|
|
@@ -89,9 +89,9 @@
|
|
|
89
89
|
| emr | [弹性 MapReduce](https://cloud.tencent.com/document/product/589) | 2022-09-06 06:30:34 |
|
|
90
90
|
| es | [Elasticsearch Service](https://cloud.tencent.com/document/product/845) | 2022-09-28 06:30:23 |
|
|
91
91
|
| ess | [电子签服务](https://cloud.tencent.com/document/product/1323) | 2022-09-30 06:31:46 |
|
|
92
|
-
| essbasic | [腾讯电子签(基础版)](https://cloud.tencent.com/document/product/1420) | 2022-10-10
|
|
92
|
+
| essbasic | [腾讯电子签(基础版)](https://cloud.tencent.com/document/product/1420) | 2022-10-14 10:03:19 |
|
|
93
93
|
| facefusion | [人脸融合](https://cloud.tencent.com/document/product/670) | 2022-06-15 06:09:10 |
|
|
94
|
-
| faceid | [人脸核身](https://cloud.tencent.com/document/product/1007) | 2022-
|
|
94
|
+
| faceid | [人脸核身](https://cloud.tencent.com/document/product/1007) | 2022-10-17 06:26:28 |
|
|
95
95
|
| fmu | [人脸试妆](https://cloud.tencent.com/document/product/1172) | 2022-04-04 06:43:06 |
|
|
96
96
|
| ft | [人像变换](https://cloud.tencent.com/document/product/1202) | 2022-04-04 06:43:12 |
|
|
97
97
|
| gaap | [全球应用加速](https://cloud.tencent.com/document/product/608) | 2022-10-13 06:28:02 |
|
|
@@ -112,12 +112,12 @@
|
|
|
112
112
|
| iotcloud | [物联网通信](https://cloud.tencent.com/document/product/634) | 2022-08-16 06:27:22 |
|
|
113
113
|
| iotexplorer | [物联网开发平台](https://cloud.tencent.com/document/product/1081) | 2022-09-12 06:28:33 |
|
|
114
114
|
| iottid | [物联网设备身份认证](https://cloud.tencent.com/document/product/1086) | 2022-04-04 06:49:46 |
|
|
115
|
-
| iotvideo | [物联网智能视频服务](https://cloud.tencent.com/document/product/1131) | 2022-
|
|
115
|
+
| iotvideo | [物联网智能视频服务](https://cloud.tencent.com/document/product/1131) | 2022-10-18 06:34:47 |
|
|
116
116
|
| iotvideoindustry | [物联网智能视频服务(行业版)](https://cloud.tencent.com/document/product/1361) | 2022-08-11 06:37:02 |
|
|
117
117
|
| irp | [智能推荐平台](https://cloud.tencent.com/document/product/1541) | 2022-08-19 06:27:03 |
|
|
118
118
|
| ivld | [视频智能标签](https://cloud.tencent.com/document/product/1509) | 2022-09-20 19:36:34 |
|
|
119
119
|
| kms | [密钥管理系统](https://cloud.tencent.com/document/product/573) | 2022-08-05 06:26:44 |
|
|
120
|
-
| lcic | [低代码互动课堂](https://cloud.tencent.com/document/product/1639) | 2022-10-
|
|
120
|
+
| lcic | [低代码互动课堂](https://cloud.tencent.com/document/product/1639) | 2022-10-18 06:36:52 |
|
|
121
121
|
| lighthouse | [轻量应用服务器](https://cloud.tencent.com/document/product/1207) | 2022-09-14 06:27:13 |
|
|
122
122
|
| live | [云直播](https://cloud.tencent.com/document/product/267) | 2022-09-23 06:36:42 |
|
|
123
123
|
| lowcode | [云开发低码](https://cloud.tencent.com/document/product/1301) | 2022-04-04 06:56:51 |
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
| privatedns | [私有域解析 Private DNS](https://cloud.tencent.com/document/product/1338) | 2022-09-19 06:43:11 |
|
|
147
147
|
| pts | [云压测](https://cloud.tencent.com/document/product/1484) | 2022-09-19 06:43:24 |
|
|
148
148
|
| rce | [全栈式风控引擎](https://cloud.tencent.com/document/product/1343) | 2022-09-23 06:43:17 |
|
|
149
|
-
| redis | [云数据库 Redis](https://cloud.tencent.com/document/product/239) | 2022-10-
|
|
149
|
+
| redis | [云数据库 Redis](https://cloud.tencent.com/document/product/239) | 2022-10-18 06:44:04 |
|
|
150
150
|
| region | [地域管理系统](https://cloud.tencent.com/document/product/1596) | 2022-07-27 21:10:02 |
|
|
151
151
|
| rkp | [风险探针](https://cloud.tencent.com/document/product/1169) | 2022-04-04 07:04:04 |
|
|
152
152
|
| rp | [注册保护](https://cloud.tencent.com/document/product/1191) | 2022-04-04 07:04:06 |
|
|
@@ -160,7 +160,7 @@
|
|
|
160
160
|
| solar | [智汇零售](https://cloud.tencent.com/document/product) | 2020-03-19 08:01:59 |
|
|
161
161
|
| sqlserver | [云数据库 SQL Server](https://cloud.tencent.com/document/product/238) | 2022-10-13 06:43:00 |
|
|
162
162
|
| ssa | [安全运营中心](https://cloud.tencent.com/document/product/664) | 2022-08-16 06:39:20 |
|
|
163
|
-
| ssl | [证书](https://cloud.tencent.com/document/product/400) | 2022-10-
|
|
163
|
+
| ssl | [证书](https://cloud.tencent.com/document/product/400) | 2022-10-18 06:47:25 |
|
|
164
164
|
| sslpod | [SSL 证书监控](https://cloud.tencent.com/document/product/1084) | 2022-04-04 07:07:55 |
|
|
165
165
|
| ssm | [凭据管理系统](https://cloud.tencent.com/document/product/1140) | 2022-07-18 06:15:58 |
|
|
166
166
|
| sts | [安全凭证服务](https://cloud.tencent.com/document/product/1312) | 2022-07-07 06:15:25 |
|
|
@@ -182,10 +182,10 @@
|
|
|
182
182
|
| tcss | [容器安全服务](https://cloud.tencent.com/document/product/1285) | 2022-09-08 06:41:25 |
|
|
183
183
|
| tdcpg | [TDSQL-C PostgreSQL 版](https://cloud.tencent.com/document/product/1556) | 2022-10-14 06:51:40 |
|
|
184
184
|
| tdid | [分布式身份](https://cloud.tencent.com/document/product/1439) | 2022-04-04 07:15:50 |
|
|
185
|
-
| tdmq | [分布式消息队列](https://cloud.tencent.com/document/product/1179) | 2022-
|
|
185
|
+
| tdmq | [分布式消息队列](https://cloud.tencent.com/document/product/1179) | 2022-10-17 06:45:52 |
|
|
186
186
|
| tds | [设备安全](https://cloud.tencent.com/document/product/1628) | 2022-10-10 06:42:56 |
|
|
187
187
|
| tem | [弹性微服务](https://cloud.tencent.com/document/product/1371) | 2022-09-28 06:54:52 |
|
|
188
|
-
| teo | [边缘安全加速平台](https://cloud.tencent.com/document/product/1552) | 2022-10-
|
|
188
|
+
| teo | [边缘安全加速平台](https://cloud.tencent.com/document/product/1552) | 2022-10-18 06:53:22 |
|
|
189
189
|
| thpc | [高性能计算平台](https://cloud.tencent.com/document/product/1527) | 2022-06-02 06:15:03 |
|
|
190
190
|
| tia | [智能钛机器学习](https://cloud.tencent.com/document/product/851) | 2021-10-21 11:12:52 |
|
|
191
191
|
| tic | [腾讯云IaC平台](https://cloud.tencent.com/document/product/1213) | 2022-04-04 07:16:52 |
|
|
@@ -195,12 +195,12 @@
|
|
|
195
195
|
| tiia | [图像分析](https://cloud.tencent.com/document/product/865) | 2022-09-20 06:53:40 |
|
|
196
196
|
| tione | [腾讯云 TI 平台 TI-ONE](https://cloud.tencent.com/document/product/851) | 2022-09-30 07:00:21 |
|
|
197
197
|
| tiw | [互动白板](https://cloud.tencent.com/document/product/1137) | 2022-05-17 06:17:19 |
|
|
198
|
-
| tke | [容器服务](https://cloud.tencent.com/document/product/457) | 2022-10-
|
|
198
|
+
| tke | [容器服务](https://cloud.tencent.com/document/product/457) | 2022-10-18 06:55:58 |
|
|
199
199
|
| tkgdq | [腾讯知识图谱数据查询](https://cloud.tencent.com/document/product) | 2020-03-10 00:51:44 |
|
|
200
200
|
| tms | [文本内容安全](https://cloud.tencent.com/document/product/1124) | 2022-04-04 07:18:11 |
|
|
201
201
|
| tmt | [机器翻译](https://cloud.tencent.com/document/product/551) | 2022-08-31 06:55:53 |
|
|
202
|
-
| trp | [T-Sec-安心平台(RP)](https://cloud.tencent.com/document/product/1458) | 2022-10-
|
|
203
|
-
| trtc | [实时音视频](https://cloud.tencent.com/document/product/647) | 2022-10-
|
|
202
|
+
| trp | [T-Sec-安心平台(RP)](https://cloud.tencent.com/document/product/1458) | 2022-10-18 06:57:39 |
|
|
203
|
+
| trtc | [实时音视频](https://cloud.tencent.com/document/product/647) | 2022-10-17 06:50:00 |
|
|
204
204
|
| tse | [腾讯云微服务引擎](https://cloud.tencent.com/document/product/1364) | 2022-10-12 07:03:55 |
|
|
205
205
|
| tsf | [腾讯微服务平台 TSF](https://cloud.tencent.com/document/product/649) | 2022-10-11 07:02:55 |
|
|
206
206
|
| tsw | [腾讯微服务观测平台 TSW](https://cloud.tencent.com/document/product/1311) | 2022-04-04 07:22:40 |
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
| vpc | [私有网络](https://cloud.tencent.com/document/product/215) | 2022-10-10 06:50:01 |
|
|
213
213
|
| waf | [Web 应用防火墙](https://cloud.tencent.com/document/product/627) | 2022-09-15 06:49:04 |
|
|
214
214
|
| wav | [企业微信汽车行业版](https://cloud.tencent.com/document/product/1318) | 2022-10-12 07:10:28 |
|
|
215
|
-
| wedata | [数据开发治理平台 WeData](https://cloud.tencent.com/document/product/1267) | 2022-10-
|
|
215
|
+
| wedata | [数据开发治理平台 WeData](https://cloud.tencent.com/document/product/1267) | 2022-10-17 06:55:30 |
|
|
216
216
|
| wss | [SSL证书管理服务](https://cloud.tencent.com/document/product) | 2020-04-01 08:53:44 |
|
|
217
217
|
| yinsuda | [音速达直播音乐版权引擎](https://cloud.tencent.com/document/product/1592) | 2022-09-16 06:52:09 |
|
|
218
218
|
| youmall | [](https://cloud.tencent.com/document/product) | 2019-01-11 11:24:15 |
|
|
@@ -20,12 +20,16 @@ import {
|
|
|
20
20
|
CreatePictureRequest,
|
|
21
21
|
DescribeRelayUsageRequest,
|
|
22
22
|
MixLayout,
|
|
23
|
+
McuVideoParams,
|
|
23
24
|
RemoveUserByStrRoomIdResponse,
|
|
24
|
-
|
|
25
|
+
McuLayoutVolume,
|
|
25
26
|
DescribeUserEventRequest,
|
|
26
|
-
|
|
27
|
+
StopPublishCdnStreamResponse,
|
|
28
|
+
AbnormalEvent,
|
|
27
29
|
ScaleInfomation,
|
|
30
|
+
AgentParams,
|
|
28
31
|
DescribeUserEventResponse,
|
|
32
|
+
VideoEncode,
|
|
29
33
|
StopMCUMixTranscodeByStrRoomIdResponse,
|
|
30
34
|
PictureInfo,
|
|
31
35
|
DescribeCallDetailInfoRequest,
|
|
@@ -43,22 +47,33 @@ import {
|
|
|
43
47
|
DescribeRoomInfoRequest,
|
|
44
48
|
StorageParams,
|
|
45
49
|
CloudVod,
|
|
50
|
+
SdkAppIdNewTrtcTimeUsage,
|
|
46
51
|
EncodeParams,
|
|
47
52
|
DescribeCallDetailInfoResponse,
|
|
53
|
+
McuCustomCrop,
|
|
48
54
|
TrtcTimeNewUsage,
|
|
49
55
|
DescribeMixTranscodingUsageRequest,
|
|
50
56
|
ModifyPictureRequest,
|
|
51
57
|
SmallVideoLayoutParams,
|
|
52
58
|
SubscribeStreamUserIds,
|
|
53
59
|
WaterMarkImage,
|
|
60
|
+
McuUserInfoParams,
|
|
61
|
+
UserMediaStream,
|
|
54
62
|
EventList,
|
|
55
63
|
DescribeTrtcUsageRequest,
|
|
56
64
|
DescribeRoomInfoResponse,
|
|
65
|
+
McuLayoutParams,
|
|
66
|
+
UpdatePublishCdnStreamRequest,
|
|
57
67
|
SdkAppIdTrtcMcuTranscodeTimeUsage,
|
|
68
|
+
McuLayout,
|
|
58
69
|
DescribeUserInfoResponse,
|
|
70
|
+
StartMCUMixTranscodeRequest,
|
|
71
|
+
McuWaterMarkImage,
|
|
72
|
+
StartPublishCdnStreamResponse,
|
|
59
73
|
TrtcUsage,
|
|
60
74
|
DescribeRelayUsageResponse,
|
|
61
75
|
DescribeRecordingUsageResponse,
|
|
76
|
+
StopMCUMixTranscodeRequest,
|
|
62
77
|
ModifyPictureResponse,
|
|
63
78
|
DescribeRecordingUsageRequest,
|
|
64
79
|
StorageFile,
|
|
@@ -67,13 +82,13 @@ import {
|
|
|
67
82
|
MixLayoutParams,
|
|
68
83
|
StopMCUMixTranscodeResponse,
|
|
69
84
|
DescribeMixTranscodingUsageResponse,
|
|
70
|
-
|
|
85
|
+
AudioEncode,
|
|
71
86
|
RemoveUserRequest,
|
|
72
87
|
DismissRoomRequest,
|
|
73
88
|
DescribeUnusualEventRequest,
|
|
74
89
|
DescribeCloudRecordingRequest,
|
|
75
90
|
TencentVod,
|
|
76
|
-
|
|
91
|
+
McuPassThrough,
|
|
77
92
|
LayoutParams,
|
|
78
93
|
RecordUsage,
|
|
79
94
|
CreateCloudRecordingRequest,
|
|
@@ -81,9 +96,11 @@ import {
|
|
|
81
96
|
DeleteCloudRecordingResponse,
|
|
82
97
|
StopMCUMixTranscodeByStrRoomIdRequest,
|
|
83
98
|
QualityData,
|
|
99
|
+
StopPublishCdnStreamRequest,
|
|
84
100
|
DeletePictureResponse,
|
|
85
101
|
ModifyCloudRecordingRequest,
|
|
86
102
|
VideoParams,
|
|
103
|
+
StartPublishCdnStreamRequest,
|
|
87
104
|
OneSdkAppIdTranscodeTimeUsagesInfo,
|
|
88
105
|
CreateCloudRecordingResponse,
|
|
89
106
|
StartMCUMixTranscodeResponse,
|
|
@@ -98,17 +115,25 @@ import {
|
|
|
98
115
|
DismissRoomByStrRoomIdResponse,
|
|
99
116
|
DescribeUnusualEventResponse,
|
|
100
117
|
ModifyCloudRecordingResponse,
|
|
101
|
-
|
|
118
|
+
StartMCUMixTranscodeByStrRoomIdRequest,
|
|
102
119
|
DescribeCloudRecordingResponse,
|
|
120
|
+
MixUserInfo,
|
|
103
121
|
DismissRoomResponse,
|
|
122
|
+
MaxVideoUser,
|
|
104
123
|
DeletePictureRequest,
|
|
124
|
+
McuSeiParams,
|
|
105
125
|
DescribeExternalTrtcMeasureRequest,
|
|
126
|
+
UpdatePublishCdnStreamResponse,
|
|
106
127
|
RemoveUserByStrRoomIdRequest,
|
|
107
128
|
RecordParams,
|
|
108
129
|
SdkAppIdRecordUsage,
|
|
130
|
+
McuAudioParams,
|
|
109
131
|
PresetLayoutConfig,
|
|
132
|
+
McuPublishCdnParam,
|
|
110
133
|
AudioParams,
|
|
134
|
+
SingleSubscribeParams,
|
|
111
135
|
PublishCdnParams,
|
|
136
|
+
McuWaterMarkParams,
|
|
112
137
|
AbnormalExperience,
|
|
113
138
|
RoomState,
|
|
114
139
|
CreatePictureResponse,
|
|
@@ -152,6 +177,35 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
152
177
|
return this.request("DescribeTrtcUsage", req, cb)
|
|
153
178
|
}
|
|
154
179
|
|
|
180
|
+
/**
|
|
181
|
+
* 接口说明:启动旁路以及混流转推任务。TRTC 的房间中可能会同时存在多路音视频流,您可以通过此API接口,实现以下几种效果:
|
|
182
|
+
1、支持将单个主播的音视频流发布(也称作“转推”)到直播CDN上,请参考示例2(发起单流音视频旁路转推)和示例3(发起单流纯音频旁路转推)。
|
|
183
|
+
2、支持将同个房间多个主播或者不同房间多个主播的音视频混合成1路后再发布到直播CDN上,您可以通过AudioParams.SubscribeAudioList和VideoParams.LayoutParams调整参与混音的用户列表以及指定各路混流画面的布局位置。请参考示例1(发起混流转推)。
|
|
184
|
+
3、支持预先设置一个房间的混流模板,将该房间中的多个音视频混合成1路发布到直播CDN,腾讯云后台实时监控TRTC房间中的主播变化,自动按照混流模板调整布局。目前已经支持了如下几种混流预设模板:
|
|
185
|
+
- 悬浮模板:第一个进入房间的用户的视频画面会铺满整个屏幕,其他用户的视频画面从左下角依次水平排列,显示为小画面,最多4行,每行4个,小画面悬浮于大画面之上。最多支持1个大画面和15个小画面。
|
|
186
|
+
- 九宫格模板:所有用户的视频画面大小一致,平分整个屏幕,人数越多,每个画面的尺寸越小,最多支持16个画面。
|
|
187
|
+
- 屏幕分享模板:适合视频会议和在线教育场景的布局,屏幕分享(或者主讲的摄像头)始终占据屏幕左侧的大画面位置,其他用户依次垂直排列于右侧,最多两列,每列最多8个小画面。最多支持1个大画面和15个小画面。若上行分辨率宽高比与画面输出宽高比不一致时,左侧大画面为了保持内容的完整性采用缩放方式处理,右侧小画面采用裁剪方式处理。
|
|
188
|
+
4、支持同时将音视频流发布到最多10个直播CDN上。您可以通过PublishCdnParams.PublishCdnUrl指定转推CDN的url,如果您想转推到腾讯云CDN,PublishCdnParams.IsTencentCdn填为1。
|
|
189
|
+
5、支持通过配置服务端回调,实时将转推状态以HTTP/HTTPS POST 请求发送给您的服务器,如果您需要接入转推事件回调,请联系腾讯云技术支持。
|
|
190
|
+
注意:
|
|
191
|
+
1、**混流转码为收费功能,调用接口将产生云端混流转码费用,详见[云端混流转推计费说明](https://intl.cloud.tencent.com/zh/document/product/647/47631)。**
|
|
192
|
+
2、**转推非腾讯云CDN将产生云端转推费用,详见[云端混流转推计费说明](https://intl.cloud.tencent.com/zh/document/product/647/47631)。**
|
|
193
|
+
|
|
194
|
+
其他使用说明如下:
|
|
195
|
+
1、使用混流转推接口时,您需要先调用启动转推任务接口(StartPublishCdnStream),获取启动转推任务响应中的任务ID标识(TaskId)。后续传入任务ID标识(TaskId)来更新转推任务(UpdatePublishCdnStream)和停止转推任务(StopPublishCdnStream)。
|
|
196
|
+
2、为了确保转推链接的稳定,同一个转推任务不支持纯音频、音视频、纯视频之间的切换。
|
|
197
|
+
3、为了确保转推链接的稳定,更新转推任务接口(UpdatePublishCdnStream)不支持时更改视频参数(codec)和音频参数(codec、采样率、码率、声道数)。
|
|
198
|
+
4、发起单流旁路任务时,AudioParams和VideoParams都填写表示音视频旁路,如果仅填写AudioParams表示纯音频旁路,任务进行过程中不支持纯音频到音视频的切换。音视频旁路时,VideoParams中的Width、Height、Fps、BitRate、Gop需要按照真实上行参数填写。
|
|
199
|
+
5、更新转推任务(UpdatePublishCdnStream)必须携带SequenceNumber参数,用于防止请求乱序。客户保证对同一个任务更新时的SequenceNumber参数递增:腾讯云返回InternalError错误码时,需重试请求(不换SequenceNumber);腾讯云返回FailedOperation.OutdateRequest过期错误码时,无需处理即可。
|
|
200
|
+
6、您可以在主播进房前,提前创建转推任务,结束转推任务时需要主动调用停止接口。如果您没有调用停止转推任务接口时,腾讯云后台会按照所有参与混流的用户没有任何数据上行的时间算起,直到超过启动转推任务时设置的超时时间(AgentParams.MaxIdleTime)为止,自动停止混流转推任务。
|
|
201
|
+
*/
|
|
202
|
+
async StartPublishCdnStream(
|
|
203
|
+
req: StartPublishCdnStreamRequest,
|
|
204
|
+
cb?: (error: string, rep: StartPublishCdnStreamResponse) => void
|
|
205
|
+
): Promise<StartPublishCdnStreamResponse> {
|
|
206
|
+
return this.request("StartPublishCdnStream", req, cb)
|
|
207
|
+
}
|
|
208
|
+
|
|
155
209
|
/**
|
|
156
210
|
* 查询指定时间内的用户列表及用户通话质量数据,可查询14天内数据。DataType 不为null,查询起止时间不超过1个小时,查询用户不超过6个,支持跨天查询。DataType为null时,查询起止时间不超过4个小时, 默认查询6个用户,同时支持每页查询100以内用户个数(PageSize不超过100)。接口用于查询质量问题,不推荐作为计费使用。(同老接口DescribeCallDetail)
|
|
157
211
|
**注意**:
|
|
@@ -474,6 +528,16 @@ TRTC 的一个房间中可能会同时存在多路音视频流,您可以通过
|
|
|
474
528
|
return this.request("ModifyPicture", req, cb)
|
|
475
529
|
}
|
|
476
530
|
|
|
531
|
+
/**
|
|
532
|
+
* 更新转推任务。
|
|
533
|
+
*/
|
|
534
|
+
async UpdatePublishCdnStream(
|
|
535
|
+
req: UpdatePublishCdnStreamRequest,
|
|
536
|
+
cb?: (error: string, rep: UpdatePublishCdnStreamResponse) => void
|
|
537
|
+
): Promise<UpdatePublishCdnStreamResponse> {
|
|
538
|
+
return this.request("UpdatePublishCdnStream", req, cb)
|
|
539
|
+
}
|
|
540
|
+
|
|
477
541
|
/**
|
|
478
542
|
* 成功开启录制后,可以使用此接口来停止录制任务。停止录制成功后不代表文件全部传输完成,如果未完成后台将会继续上传文件,成功后通过事件回调通知客户文件全部传输完成状态。
|
|
479
543
|
*/
|
|
@@ -494,6 +558,16 @@ TRTC 的一个房间中可能会同时存在多路音视频流,您可以通过
|
|
|
494
558
|
return this.request("DescribePicture", req, cb)
|
|
495
559
|
}
|
|
496
560
|
|
|
561
|
+
/**
|
|
562
|
+
* 停止转推任务。
|
|
563
|
+
*/
|
|
564
|
+
async StopPublishCdnStream(
|
|
565
|
+
req: StopPublishCdnStreamRequest,
|
|
566
|
+
cb?: (error: string, rep: StopPublishCdnStreamResponse) => void
|
|
567
|
+
): Promise<StopPublishCdnStreamResponse> {
|
|
568
|
+
return this.request("StopPublishCdnStream", req, cb)
|
|
569
|
+
}
|
|
570
|
+
|
|
497
571
|
/**
|
|
498
572
|
* 查询SdkAppId下任意20条异常体验事件,返回异常体验ID与可能产生异常体验的原因。可查询14天内数据,查询起止时间不超过1个小时。支持跨天查询。(同老接口DescribeAbnormalEvent)
|
|
499
573
|
异常体验ID映射见:https://cloud.tencent.com/document/product/647/44916
|