tencentcloud-sdk-nodejs-trtc 4.0.460 → 4.0.461

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.
@@ -103,42 +103,59 @@ export interface MixLayout {
103
103
  SubBackgroundImage?: string;
104
104
  }
105
105
  /**
106
- * RemoveUserByStrRoomId返回参数结构体
106
+ * 混流转推的视频相关参数。
107
107
  */
108
- export interface RemoveUserByStrRoomIdResponse {
108
+ export interface McuVideoParams {
109
109
  /**
110
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
110
+ * 输出流视频编码参数。
111
111
  */
112
- RequestId?: string;
113
- }
114
- /**
115
- * StartMCUMixTranscode请求参数结构体
116
- */
117
- export interface StartMCUMixTranscodeRequest {
112
+ VideoEncode?: VideoEncode;
118
113
  /**
119
- * TRTC的SDKAppId。
114
+ * 混流布局参数。
120
115
  */
121
- SdkAppId: number;
116
+ LayoutParams?: McuLayoutParams;
122
117
  /**
123
- * 房间号。
118
+ * 整个画布背景颜色,常用的颜色有:
119
+ 红色:0xcc0033。
120
+ 黄色:0xcc9900。
121
+ 绿色:0xcccc33。
122
+ 蓝色:0x99CCFF。
123
+ 黑色:0x000000。
124
+ 白色:0xFFFFFF。
125
+ 灰色:0x999999。
126
+ */
127
+ BackGroundColor?: string;
128
+ /**
129
+ * 整个画布的背景图url,优先级高于BackGroundColor。
124
130
  */
125
- RoomId: number;
131
+ BackgroundImageUrl?: string;
126
132
  /**
127
- * 混流输出控制参数。
133
+ * 混流布局的水印参数。
128
134
  */
129
- OutputParams: OutputParams;
135
+ WaterMarkList?: Array<McuWaterMarkParams>;
136
+ }
137
+ /**
138
+ * RemoveUserByStrRoomId返回参数结构体
139
+ */
140
+ export interface RemoveUserByStrRoomIdResponse {
130
141
  /**
131
- * 混流输出编码参数。
142
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
132
143
  */
133
- EncodeParams: EncodeParams;
144
+ RequestId?: string;
145
+ }
146
+ /**
147
+ * 音量布局SEI参数,可以自定义AppData和PayloadType类型。
148
+ 该参数内容可以为空,表示携带默认的音量布局SEI。
149
+ */
150
+ export interface McuLayoutVolume {
134
151
  /**
135
- * 混流输出布局参数。
152
+ * AppData的内容,会被写入自定义SEI中的app_data字段,长度需小于4096。
136
153
  */
137
- LayoutParams: LayoutParams;
154
+ AppData?: string;
138
155
  /**
139
- * 第三方CDN转推参数。
156
+ * SEI消息的payload_type,默认值100,取值范围100-254(244除外,244为我们内部自定义的时间戳SEI)
140
157
  */
141
- PublishCdnParams?: PublishCdnParams;
158
+ PayloadType?: number;
142
159
  }
143
160
  /**
144
161
  * DescribeUserEvent请求参数结构体
@@ -172,33 +189,31 @@ export interface DescribeUserEventRequest {
172
189
  SdkAppId: number;
173
190
  }
174
191
  /**
175
- * StartMCUMixTranscodeByStrRoomId请求参数结构体
192
+ * StopPublishCdnStream返回参数结构体
176
193
  */
177
- export interface StartMCUMixTranscodeByStrRoomIdRequest {
194
+ export interface StopPublishCdnStreamResponse {
178
195
  /**
179
- * TRTC的SDKAppId。
196
+ * 转推任务唯一的String Id
180
197
  */
181
- SdkAppId: number;
182
- /**
183
- * 字符串房间号。
184
- */
185
- StrRoomId: string;
186
- /**
187
- * 混流输出控制参数。
188
- */
189
- OutputParams: OutputParams;
198
+ TaskId: string;
190
199
  /**
191
- * 混流输出编码参数。
200
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
192
201
  */
193
- EncodeParams: EncodeParams;
202
+ RequestId?: string;
203
+ }
204
+ /**
205
+ * 造成异常体验可能的异常事件类型
206
+ */
207
+ export interface AbnormalEvent {
194
208
  /**
195
- * 混流输出布局参数。
209
+ * 异常事件ID,具体值查看附录:异常体验ID映射表:https://cloud.tencent.com/document/product/647/44916
196
210
  */
197
- LayoutParams: LayoutParams;
211
+ AbnormalEventId: number;
198
212
  /**
199
- * 第三方CDN转推参数。
200
- */
201
- PublishCdnParams?: PublishCdnParams;
213
+ * 远端用户ID,"":表示异常事件不是由远端用户产生
214
+ 注意:此字段可能返回 null,表示取不到有效值。
215
+ */
216
+ PeerId: string;
202
217
  }
203
218
  /**
204
219
  * 历史规模信息
@@ -224,6 +239,23 @@ export interface ScaleInfomation {
224
239
  */
225
240
  RoomNumbers: number;
226
241
  }
242
+ /**
243
+ * 转推服务加入TRTC房间的机器人参数。
244
+ */
245
+ export interface AgentParams {
246
+ /**
247
+ * 转推服务在TRTC房间使用的[UserId](https://cloud.tencent.com/document/product/647/46351#userid),注意这个userId不能与其他TRTC或者转推服务等已经使用的UserId重复,建议可以把房间ID作为userId的标识的一部分。
248
+ */
249
+ UserId: string;
250
+ /**
251
+ * 转推服务加入TRTC房间的用户签名,当前 UserId 对应的验证签名,相当于登录密码,具体计算方法请参考TRTC计算[UserSig](https://cloud.tencent.com/document/product/647/45910#UserSig)的方案。
252
+ */
253
+ UserSig?: string;
254
+ /**
255
+ * 所有参与混流转推的主播持续离开TRTC房间超过MaxIdleTime的时长,自动停止转推,单位:秒。默认值为 30 秒,该值需大于等于 5秒,且小于等于 86400秒(24小时)。
256
+ */
257
+ MaxIdleTime?: number;
258
+ }
227
259
  /**
228
260
  * DescribeUserEvent返回参数结构体
229
261
  */
@@ -237,6 +269,31 @@ export interface DescribeUserEventResponse {
237
269
  */
238
270
  RequestId?: string;
239
271
  }
272
+ /**
273
+ * 视频编码参数。
274
+ */
275
+ export interface VideoEncode {
276
+ /**
277
+ * 输出流宽,音视频输出时必填。取值范围[0,1920],单位为像素值。
278
+ */
279
+ Width: number;
280
+ /**
281
+ * 输出流高,音视频输出时必填。取值范围[0,1080],单位为像素值。
282
+ */
283
+ Height: number;
284
+ /**
285
+ * 输出流帧率,音视频输出时必填。取值范围[1,60],表示混流的输出帧率可选范围为1到60fps。
286
+ */
287
+ Fps: number;
288
+ /**
289
+ * 输出流码率,音视频输出时必填。取值范围[1,10000],单位为kbps。
290
+ */
291
+ BitRate: number;
292
+ /**
293
+ * 输出流gop,音视频输出时必填。取值范围[1,5],单位为秒。
294
+ */
295
+ Gop: number;
296
+ }
240
297
  /**
241
298
  * StopMCUMixTranscodeByStrRoomId返回参数结构体
242
299
  */
@@ -608,6 +665,23 @@ export interface CloudVod {
608
665
  */
609
666
  TencentVod?: TencentVod;
610
667
  }
668
+ /**
669
+ * SdkAppId级别实时音视频的用量数据
670
+ */
671
+ export interface SdkAppIdNewTrtcTimeUsage {
672
+ /**
673
+ * SdkAppId的值。
674
+ */
675
+ SdkAppId: string;
676
+ /**
677
+ * 统计的时间点数据。
678
+ */
679
+ TrtcTimeUsages: Array<TrtcTimeNewUsage>;
680
+ /**
681
+ * 统计的麦下用量的时间点数据。
682
+ */
683
+ AudienceTrtcTimeUsages: Array<TrtcTimeNewUsage>;
684
+ }
611
685
  /**
612
686
  * MCU混流输出流编码参数
613
687
  */
@@ -691,6 +765,27 @@ export interface DescribeCallDetailInfoResponse {
691
765
  */
692
766
  RequestId?: string;
693
767
  }
768
+ /**
769
+ * 混流自定义裁剪参数
770
+ */
771
+ export interface McuCustomCrop {
772
+ /**
773
+ * 自定义裁剪起始位置的X偏移,单位为像素值,大于等于0。
774
+ */
775
+ LocationX: number;
776
+ /**
777
+ * 自定义裁剪起始位置的Y偏移,单位为像素值,大于等于0。
778
+ */
779
+ LocationY: number;
780
+ /**
781
+ * 自定义裁剪画面的宽度,单位为像素值,大于0,且LocationX+Width不超过10000
782
+ */
783
+ Width: number;
784
+ /**
785
+ * 自定义裁剪画面的高度,单位为像素值,大于0,且LocationY+Height不超过10000
786
+ */
787
+ Height: number;
788
+ }
694
789
  /**
695
790
  * 实时音视频用量的某一时间段的统计信息.
696
791
  */
@@ -858,6 +953,28 @@ export interface WaterMarkImage {
858
953
  */
859
954
  Height: number;
860
955
  }
956
+ /**
957
+ * 混流用户参数
958
+ */
959
+ export interface McuUserInfoParams {
960
+ /**
961
+ * 用户参数。
962
+ */
963
+ UserInfo: MixUserInfo;
964
+ }
965
+ /**
966
+ * 用户媒体流参数。
967
+ */
968
+ export interface UserMediaStream {
969
+ /**
970
+ * TRTC用户参数。
971
+ */
972
+ UserInfo?: MixUserInfo;
973
+ /**
974
+ * 主辅路流类型,0为摄像头,1为屏幕分享,不填默认为0。
975
+ */
976
+ StreamType?: number;
977
+ }
861
978
  /**
862
979
  * sdk或webrtc的事件列表。
863
980
  */
@@ -906,6 +1023,68 @@ export interface DescribeRoomInfoResponse {
906
1023
  */
907
1024
  RequestId?: string;
908
1025
  }
1026
+ /**
1027
+ * 混流布局参数。
1028
+ */
1029
+ export interface McuLayoutParams {
1030
+ /**
1031
+ * 布局模式:动态布局(1:悬浮布局(默认),2:屏幕分享布局,3:九宫格布局),静态布局(4:自定义布局)。
1032
+ */
1033
+ MixLayoutMode?: number;
1034
+ /**
1035
+ * 纯音频上行是否占布局位置,只在动态布局中有效。0表示纯音频占布局位置,1表示纯音频不占布局位置,不填默认为0。
1036
+ */
1037
+ PureAudioHoldPlaceMode?: number;
1038
+ /**
1039
+ * 自定义模板中有效,指定用户视频在混合画面中的位置。
1040
+ */
1041
+ MixLayoutList?: Array<McuLayout>;
1042
+ /**
1043
+ * 指定动态布局中悬浮布局和屏幕分享布局的大画面信息,只在悬浮布局和屏幕分享布局有效。
1044
+ */
1045
+ MaxVideoUser?: MaxVideoUser;
1046
+ }
1047
+ /**
1048
+ * UpdatePublishCdnStream请求参数结构体
1049
+ */
1050
+ export interface UpdatePublishCdnStreamRequest {
1051
+ /**
1052
+ * TRTC的[SdkAppId](https://cloud.tencent.com/document/product/647/46351#sdkappid),和转推的房间所对应的SdkAppId相同。
1053
+ */
1054
+ SdkAppId: number;
1055
+ /**
1056
+ * 唯一标识转推任务。
1057
+ */
1058
+ TaskId: string;
1059
+ /**
1060
+ * 客户保证同一个任务,每次更新请求中的SequenceNumber递增,防止请求乱序。
1061
+ */
1062
+ SequenceNumber: number;
1063
+ /**
1064
+ * 是否转码,0表示无需转码,1表示需要转码。
1065
+ */
1066
+ WithTranscoding: number;
1067
+ /**
1068
+ * 更新相关参数,只支持更新参与混音的主播列表参数。不填表示不更新此参数。
1069
+ */
1070
+ AudioParams?: McuAudioParams;
1071
+ /**
1072
+ * 更新视频相关参数,转码时支持更新除编码类型之外的编码参数,视频布局参数,背景图片和背景颜色参数,水印参数。不填表示不更新此参数。
1073
+ */
1074
+ VideoParams?: McuVideoParams;
1075
+ /**
1076
+ * 更新单流转推的用户上行参数,仅在非转码时有效。不填表示不更新此参数。
1077
+ */
1078
+ SingleSubscribeParams?: SingleSubscribeParams;
1079
+ /**
1080
+ * 更新转推的CDN参数。不填表示不更新此参数。
1081
+ */
1082
+ PublishCdnParams?: Array<McuPublishCdnParam>;
1083
+ /**
1084
+ * 混流SEI参数
1085
+ */
1086
+ SeiParams?: McuSeiParams;
1087
+ }
909
1088
  /**
910
1089
  * 查询旁路转码计费时长。
911
1090
  查询时间小于等于1天时,返回每5分钟粒度的数据;查询时间大于1天时,返回按天汇总的数据。
@@ -936,6 +1115,58 @@ export interface SdkAppIdTrtcMcuTranscodeTimeUsage {
936
1115
  */
937
1116
  Flux: number;
938
1117
  }
1118
+ /**
1119
+ * 混流布局参数。
1120
+ */
1121
+ export interface McuLayout {
1122
+ /**
1123
+ * 用户媒体流参数。不填时腾讯云后台按照上行主播的进房顺序自动填充。
1124
+ */
1125
+ UserMediaStream?: UserMediaStream;
1126
+ /**
1127
+ * 子画面在输出时的宽度,单位为像素值,不填默认为0。
1128
+ */
1129
+ ImageWidth?: number;
1130
+ /**
1131
+ * 子画面在输出时的高度,单位为像素值,不填默认为0。
1132
+ */
1133
+ ImageHeight?: number;
1134
+ /**
1135
+ * 子画面在输出时的X偏移,单位为像素值,LocationX与ImageWidth之和不能超过混流输出的总宽度,不填默认为0。
1136
+ */
1137
+ LocationX?: number;
1138
+ /**
1139
+ * 子画面在输出时的Y偏移,单位为像素值,LocationY与ImageHeight之和不能超过混流输出的总高度,不填默认为0。
1140
+ */
1141
+ LocationY?: number;
1142
+ /**
1143
+ * 子画面在输出时的层级,不填默认为0。
1144
+ */
1145
+ ZOrder?: number;
1146
+ /**
1147
+ * 子画面在输出时的显示模式:0为裁剪,1为缩放,2为缩放并显示黑底。不填默认为0。
1148
+ */
1149
+ RenderMode?: number;
1150
+ /**
1151
+ * 子画面的背景颜色,常用的颜色有:
1152
+ 红色:0xcc0033。
1153
+ 黄色:0xcc9900。
1154
+ 绿色:0xcccc33。
1155
+ 蓝色:0x99CCFF。
1156
+ 黑色:0x000000。
1157
+ 白色:0xFFFFFF。
1158
+ 灰色:0x999999。
1159
+ */
1160
+ BackGroundColor?: string;
1161
+ /**
1162
+ * 子画面的背景图url,填写该参数,当用户关闭摄像头或未进入TRTC房间时,会在布局位置填充为指定图片。若指定图片与布局位置尺寸比例不一致,则会对图片进行拉伸处理,优先级高于BackGroundColor。
1163
+ */
1164
+ BackgroundImageUrl?: string;
1165
+ /**
1166
+ * 客户自定义裁剪,针对原始输入流裁剪
1167
+ */
1168
+ CustomCrop?: McuCustomCrop;
1169
+ }
939
1170
  /**
940
1171
  * DescribeUserInfo返回参数结构体
941
1172
  */
@@ -954,6 +1185,77 @@ export interface DescribeUserInfoResponse {
954
1185
  */
955
1186
  RequestId?: string;
956
1187
  }
1188
+ /**
1189
+ * StartMCUMixTranscode请求参数结构体
1190
+ */
1191
+ export interface StartMCUMixTranscodeRequest {
1192
+ /**
1193
+ * TRTC的SDKAppId。
1194
+ */
1195
+ SdkAppId: number;
1196
+ /**
1197
+ * 房间号。
1198
+ */
1199
+ RoomId: number;
1200
+ /**
1201
+ * 混流输出控制参数。
1202
+ */
1203
+ OutputParams: OutputParams;
1204
+ /**
1205
+ * 混流输出编码参数。
1206
+ */
1207
+ EncodeParams: EncodeParams;
1208
+ /**
1209
+ * 混流输出布局参数。
1210
+ */
1211
+ LayoutParams: LayoutParams;
1212
+ /**
1213
+ * 第三方CDN转推参数。
1214
+ */
1215
+ PublishCdnParams?: PublishCdnParams;
1216
+ }
1217
+ /**
1218
+ * 图片水印参数。
1219
+ */
1220
+ export interface McuWaterMarkImage {
1221
+ /**
1222
+ * 水印图片URL地址,支持png、jpg、jpeg格式。图片大小限制不超过5MB。
1223
+ */
1224
+ WaterMarkUrl: string;
1225
+ /**
1226
+ * 水印在输出时的宽。单位为像素值。
1227
+ */
1228
+ WaterMarkWidth: number;
1229
+ /**
1230
+ * 水印在输出时的高。单位为像素值。
1231
+ */
1232
+ WaterMarkHeight: number;
1233
+ /**
1234
+ * 水印在输出时的X偏移。单位为像素值。
1235
+ */
1236
+ LocationX: number;
1237
+ /**
1238
+ * 水印在输出时的Y偏移。单位为像素值。
1239
+ */
1240
+ LocationY: number;
1241
+ /**
1242
+ * 水印在输出时的层级,不填默认为0。
1243
+ */
1244
+ ZOrder?: number;
1245
+ }
1246
+ /**
1247
+ * StartPublishCdnStream返回参数结构体
1248
+ */
1249
+ export interface StartPublishCdnStreamResponse {
1250
+ /**
1251
+ * 用于唯一标识转推任务,由腾讯云服务端生成,后续更新和停止请求都需要携带TaskiD参数。
1252
+ */
1253
+ TaskId: string;
1254
+ /**
1255
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1256
+ */
1257
+ RequestId?: string;
1258
+ }
957
1259
  /**
958
1260
  * 实时音视频用量在某一时间段的统计信息。
959
1261
  */
@@ -1001,6 +1303,19 @@ export interface DescribeRecordingUsageResponse {
1001
1303
  */
1002
1304
  RequestId?: string;
1003
1305
  }
1306
+ /**
1307
+ * StopMCUMixTranscode请求参数结构体
1308
+ */
1309
+ export interface StopMCUMixTranscodeRequest {
1310
+ /**
1311
+ * TRTC的SDKAppId。
1312
+ */
1313
+ SdkAppId: number;
1314
+ /**
1315
+ * 房间号。
1316
+ */
1317
+ RoomId: number;
1318
+ }
1004
1319
  /**
1005
1320
  * ModifyPicture返回参数结构体
1006
1321
  */
@@ -1177,21 +1492,25 @@ export interface DescribeMixTranscodingUsageResponse {
1177
1492
  RequestId?: string;
1178
1493
  }
1179
1494
  /**
1180
- * SdkAppId级别实时音视频的用量数据
1495
+ * 音频编码参数。
1181
1496
  */
1182
- export interface SdkAppIdNewTrtcTimeUsage {
1497
+ export interface AudioEncode {
1183
1498
  /**
1184
- * SdkAppId的值。
1499
+ * 输出流音频采样率。取值为[48000, 44100, 32000, 24000, 16000, 8000],单位是Hz。
1185
1500
  */
1186
- SdkAppId: string;
1501
+ SampleRate: number;
1187
1502
  /**
1188
- * 统计的时间点数据。
1503
+ * 输出流音频声道数,取值范围[1,2],1表示混流输出音频为单声道,2表示混流输出音频为双声道。
1189
1504
  */
1190
- TrtcTimeUsages: Array<TrtcTimeNewUsage>;
1505
+ Channel: number;
1191
1506
  /**
1192
- * 统计的麦下用量的时间点数据。
1507
+ * 输出流音频码率。取值范围[8,500],单位为kbps。
1193
1508
  */
1194
- AudienceTrtcTimeUsages: Array<TrtcTimeNewUsage>;
1509
+ BitRate: number;
1510
+ /**
1511
+ * 输出流音频编码类型,取值范围[0, 1, 2],0为LC-AAC,1为HE-AAC,2为HE-AACv2。默认值为0。当音频编码设置为HE-AACv2时,只支持输出流音频声道数为双声道。HE-AAC和HE-AACv2支持的输出流音频采样率范围为[48000, 44100, 32000, 24000, 16000]。
1512
+ */
1513
+ Codec?: number;
1195
1514
  }
1196
1515
  /**
1197
1516
  * RemoveUser请求参数结构体
@@ -1297,17 +1616,21 @@ export interface TencentVod {
1297
1616
  MediaType?: number;
1298
1617
  }
1299
1618
  /**
1300
- * StopMCUMixTranscode请求参数结构体
1619
+ * 自定义透传SEI
1301
1620
  */
1302
- export interface StopMCUMixTranscodeRequest {
1621
+ export interface McuPassThrough {
1303
1622
  /**
1304
- * TRTCSDKAppId。
1623
+ * 透传SEIpayload内容。
1305
1624
  */
1306
- SdkAppId: number;
1625
+ PayloadContent: string;
1307
1626
  /**
1308
- * 房间号。
1627
+ * SEI消息的payload_type,取值范围5、100-254(244除外,244为我们内部自定义的时间戳SEI)。
1309
1628
  */
1310
- RoomId: number;
1629
+ PayloadType: number;
1630
+ /**
1631
+ * PayloadType为5,PayloadUuid必须填写。PayloadType不是5时,不需要填写,填写会被后台忽略。该值必须是32长度的十六进制。
1632
+ */
1633
+ PayloadUuid?: string;
1311
1634
  }
1312
1635
  /**
1313
1636
  * MCU混流布局参数
@@ -1500,6 +1823,19 @@ export interface QualityData {
1500
1823
  */
1501
1824
  DataType: string;
1502
1825
  }
1826
+ /**
1827
+ * StopPublishCdnStream请求参数结构体
1828
+ */
1829
+ export interface StopPublishCdnStreamRequest {
1830
+ /**
1831
+ * TRTC的[SdkAppId](https://cloud.tencent.com/document/product/647/46351#sdkappid),和转推的房间所对应的SdkAppId相同。
1832
+ */
1833
+ SdkAppId: number;
1834
+ /**
1835
+ * 唯一标识转推任务。
1836
+ */
1837
+ TaskId: string;
1838
+ }
1503
1839
  /**
1504
1840
  * DeletePicture返回参数结构体
1505
1841
  */
@@ -1555,6 +1891,51 @@ export interface VideoParams {
1555
1891
  */
1556
1892
  Gop: number;
1557
1893
  }
1894
+ /**
1895
+ * StartPublishCdnStream请求参数结构体
1896
+ */
1897
+ export interface StartPublishCdnStreamRequest {
1898
+ /**
1899
+ * TRTC的[SdkAppId](https://cloud.tencent.com/document/product/647/46351#sdkappid),和转推的房间所对应的SdkAppId相同。
1900
+ */
1901
+ SdkAppId: number;
1902
+ /**
1903
+ * 主房间信息RoomId,转推的TRTC房间所对应的RoomId。
1904
+ */
1905
+ RoomId: string;
1906
+ /**
1907
+ * 主房间信息RoomType,必须和转推的房间所对应的RoomId类型相同,0为整形房间号,1为字符串房间号。
1908
+ */
1909
+ RoomIdType: number;
1910
+ /**
1911
+ * 转推服务加入TRTC房间的机器人参数。
1912
+ */
1913
+ AgentParams: AgentParams;
1914
+ /**
1915
+ * 是否转码,0表示无需转码,1表示需要转码。
1916
+ */
1917
+ WithTranscoding: number;
1918
+ /**
1919
+ * 转推流的音频编码参数。
1920
+ */
1921
+ AudioParams?: McuAudioParams;
1922
+ /**
1923
+ * 转推流的视频编码参数,不填表示纯音频转推。
1924
+ */
1925
+ VideoParams?: McuVideoParams;
1926
+ /**
1927
+ * 需要单流旁路转推的用户上行参数,单流旁路转推时,WithTranscoding需要设置为0。
1928
+ */
1929
+ SingleSubscribeParams?: SingleSubscribeParams;
1930
+ /**
1931
+ * 转推的CDN参数。
1932
+ */
1933
+ PublishCdnParams?: Array<McuPublishCdnParam>;
1934
+ /**
1935
+ * 混流SEI参数
1936
+ */
1937
+ SeiParams?: McuSeiParams;
1938
+ }
1558
1939
  /**
1559
1940
  * 旁路转码时长的查询结果
1560
1941
  */
@@ -1794,18 +2175,33 @@ export interface ModifyCloudRecordingResponse {
1794
2175
  RequestId?: string;
1795
2176
  }
1796
2177
  /**
1797
- * 造成异常体验可能的异常事件类型
2178
+ * StartMCUMixTranscodeByStrRoomId请求参数结构体
1798
2179
  */
1799
- export interface AbnormalEvent {
2180
+ export interface StartMCUMixTranscodeByStrRoomIdRequest {
1800
2181
  /**
1801
- * 异常事件ID,具体值查看附录:异常体验ID映射表:https://cloud.tencent.com/document/product/647/44916
2182
+ * TRTC的SDKAppId。
1802
2183
  */
1803
- AbnormalEventId: number;
2184
+ SdkAppId: number;
1804
2185
  /**
1805
- * 远端用户ID,"":表示异常事件不是由远端用户产生
1806
- 注意:此字段可能返回 null,表示取不到有效值。
1807
- */
1808
- PeerId: string;
2186
+ * 字符串房间号。
2187
+ */
2188
+ StrRoomId: string;
2189
+ /**
2190
+ * 混流输出控制参数。
2191
+ */
2192
+ OutputParams: OutputParams;
2193
+ /**
2194
+ * 混流输出编码参数。
2195
+ */
2196
+ EncodeParams: EncodeParams;
2197
+ /**
2198
+ * 混流输出布局参数。
2199
+ */
2200
+ LayoutParams: LayoutParams;
2201
+ /**
2202
+ * 第三方CDN转推参数。
2203
+ */
2204
+ PublishCdnParams?: PublishCdnParams;
1809
2205
  }
1810
2206
  /**
1811
2207
  * DescribeCloudRecording返回参数结构体
@@ -1832,6 +2228,23 @@ export interface DescribeCloudRecordingResponse {
1832
2228
  */
1833
2229
  RequestId?: string;
1834
2230
  }
2231
+ /**
2232
+ * TRTC用户参数。
2233
+ */
2234
+ export interface MixUserInfo {
2235
+ /**
2236
+ * 用户ID。
2237
+ */
2238
+ UserId: string;
2239
+ /**
2240
+ * 动态布局时房间信息必须和主房间信息保持一致,自定义布局时房间信息必须和MixLayoutList中对应用户的房间信息保持一致,不填时默认与主房间信息一致。
2241
+ */
2242
+ RoomId?: string;
2243
+ /**
2244
+ * 房间号类型,0为整形房间号,1为字符串房间号。
2245
+ */
2246
+ RoomIdType?: number;
2247
+ }
1835
2248
  /**
1836
2249
  * DismissRoom返回参数结构体
1837
2250
  */
@@ -1841,6 +2254,15 @@ export interface DismissRoomResponse {
1841
2254
  */
1842
2255
  RequestId?: string;
1843
2256
  }
2257
+ /**
2258
+ * 指定动态布局中悬浮布局和屏幕分享布局的大画面信息,只在悬浮布局和屏幕分享布局有效。
2259
+ */
2260
+ export interface MaxVideoUser {
2261
+ /**
2262
+ * 用户媒体流参数。
2263
+ */
2264
+ UserMediaStream: UserMediaStream;
2265
+ }
1844
2266
  /**
1845
2267
  * DeletePicture请求参数结构体
1846
2268
  */
@@ -1854,6 +2276,19 @@ export interface DeletePictureRequest {
1854
2276
  */
1855
2277
  SdkAppId: number;
1856
2278
  }
2279
+ /**
2280
+ * 混流SEI参数
2281
+ */
2282
+ export interface McuSeiParams {
2283
+ /**
2284
+ * 音量布局SEI
2285
+ */
2286
+ LayoutVolume?: McuLayoutVolume;
2287
+ /**
2288
+ * 透传SEI
2289
+ */
2290
+ PassThrough?: McuPassThrough;
2291
+ }
1857
2292
  /**
1858
2293
  * DescribeExternalTrtcMeasure请求参数结构体
1859
2294
  */
@@ -1871,6 +2306,19 @@ export interface DescribeExternalTrtcMeasureRequest {
1871
2306
  */
1872
2307
  SdkAppId?: number;
1873
2308
  }
2309
+ /**
2310
+ * UpdatePublishCdnStream返回参数结构体
2311
+ */
2312
+ export interface UpdatePublishCdnStreamResponse {
2313
+ /**
2314
+ * 转推任务唯一的String Id
2315
+ */
2316
+ TaskId: string;
2317
+ /**
2318
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2319
+ */
2320
+ RequestId?: string;
2321
+ }
1874
2322
  /**
1875
2323
  * RemoveUserByStrRoomId请求参数结构体
1876
2324
  */
@@ -1935,6 +2383,19 @@ export interface SdkAppIdRecordUsage {
1935
2383
  */
1936
2384
  Usages: Array<RecordUsage>;
1937
2385
  }
2386
+ /**
2387
+ * 混流转推的音频相关参数。
2388
+ */
2389
+ export interface McuAudioParams {
2390
+ /**
2391
+ * 音频编码参数。
2392
+ */
2393
+ AudioEncode?: AudioEncode;
2394
+ /**
2395
+ * 音频用户白名单,start时,为空或不填表示混所有主播音频,填具体值表示混指定主播音频;update时,不填表示不更新,为空表示更新为混所有主播音频,填具体值表示更新为混指定主播音频。
2396
+ */
2397
+ SubscribeAudioList?: Array<McuUserInfoParams>;
2398
+ }
1938
2399
  /**
1939
2400
  * 自定义模板中有效,指定用户视频在混合画面中的位置。
1940
2401
  */
@@ -1980,6 +2441,19 @@ export interface PresetLayoutConfig {
1980
2441
  */
1981
2442
  PlaceImageId?: number;
1982
2443
  }
2444
+ /**
2445
+ * 转推参数。
2446
+ */
2447
+ export interface McuPublishCdnParam {
2448
+ /**
2449
+ * CDN转推URL。
2450
+ */
2451
+ PublishCdnUrl: string;
2452
+ /**
2453
+ * 是否是腾讯云CDN,0为转推非腾讯云CDN,1为转推腾讯CDN。注意:为避免默认值误产生转推费用,该参数建议明确填写。转推非腾讯云CDN时会产生转推费用,详情参见接口文档说明。
2454
+ */
2455
+ IsTencentCdn?: number;
2456
+ }
1983
2457
  /**
1984
2458
  * 录制音频转码参数。
1985
2459
  */
@@ -2002,6 +2476,15 @@ export interface AudioParams {
2002
2476
  */
2003
2477
  BitRate: number;
2004
2478
  }
2479
+ /**
2480
+ * 单流旁路转推的用户上行信息。
2481
+ */
2482
+ export interface SingleSubscribeParams {
2483
+ /**
2484
+ * 用户媒体流参数。
2485
+ */
2486
+ UserMediaStream: UserMediaStream;
2487
+ }
2005
2488
  /**
2006
2489
  * 第三方CDN转推参数
2007
2490
  */
@@ -2015,6 +2498,19 @@ export interface PublishCdnParams {
2015
2498
  */
2016
2499
  PublishCdnUrls: Array<string>;
2017
2500
  }
2501
+ /**
2502
+ * 水印参数。
2503
+ */
2504
+ export interface McuWaterMarkParams {
2505
+ /**
2506
+ * 水印类型,0为图片(默认)。
2507
+ */
2508
+ WaterMarkType?: number;
2509
+ /**
2510
+ * 图片水印参数。WaterMarkType为0指定。
2511
+ */
2512
+ WaterMarkImage?: McuWaterMarkImage;
2513
+ }
2018
2514
  /**
2019
2515
  * 用户的异常体验及可能的原因
2020
2516
  */