tencentcloud-sdk-nodejs 4.0.817 → 4.0.818

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.
@@ -381,6 +381,15 @@ export interface DescribeTRTCRealTimeScaleMetricDataRequest {
381
381
  */
382
382
  RoomId?: string;
383
383
  }
384
+ /**
385
+ * StopWebRecord请求参数结构体
386
+ */
387
+ export interface StopWebRecordRequest {
388
+ /**
389
+ * 需要停止的任务Id
390
+ */
391
+ TaskId: string;
392
+ }
384
393
  /**
385
394
  * 视频转码参数
386
395
  */
@@ -444,55 +453,6 @@ export interface VideoEncode {
444
453
  */
445
454
  Gop: number;
446
455
  }
447
- /**
448
- * MCU混流布局参数
449
- */
450
- export interface LayoutParams {
451
- /**
452
- * 混流布局模板ID,0为悬浮模板(默认);1为九宫格模板;2为屏幕分享模板;3为画中画模板;4为自定义模板。
453
- */
454
- Template?: number;
455
- /**
456
- * 屏幕分享模板、悬浮模板、画中画模板中有效,代表大画面对应的用户ID。
457
- */
458
- MainVideoUserId?: string;
459
- /**
460
- * 屏幕分享模板、悬浮模板、画中画模板中有效,代表大画面对应的流类型,0为摄像头,1为屏幕分享。左侧大画面为web用户时此值填0。
461
- */
462
- MainVideoStreamType?: number;
463
- /**
464
- * 画中画模板中有效,代表小画面的布局参数。
465
- */
466
- SmallVideoLayoutParams?: SmallVideoLayoutParams;
467
- /**
468
- * 屏幕分享模板有效。设置为1时代表大画面居右,小画面居左布局。默认为0。
469
- */
470
- MainVideoRightAlign?: number;
471
- /**
472
- * 指定混视频的用户ID列表。设置此参数后,输出流混合此参数中包含用户的音视频,以及其他用户的纯音频。悬浮模板、九宫格、屏幕分享模板有效,最多可设置16个用户。
473
- */
474
- MixVideoUids?: Array<string>;
475
- /**
476
- * 自定义模板中有效,指定用户视频在混合画面中的位置。
477
- */
478
- PresetLayoutConfig?: Array<PresetLayoutConfig>;
479
- /**
480
- * 自定义模板中有效,设置为1时代表启用占位图功能,0时代表不启用占位图功能,默认为0。启用占位图功能时,在预设位置的用户没有上行视频时可显示对应的占位图。
481
- */
482
- PlaceHolderMode?: number;
483
- /**
484
- * 悬浮模板、九宫格、屏幕分享模板生效,用于控制纯音频上行是否占用画面布局位置。设置为0是代表后台默认处理方式,悬浮小画面占布局位置,九宫格画面占布局位置、屏幕分享小画面不占布局位置;设置为1时代表纯音频上行占布局位置;设置为2时代表纯音频上行不占布局位置。默认为0。
485
- */
486
- PureAudioHoldPlaceMode?: number;
487
- /**
488
- * 水印参数。
489
- */
490
- WaterMarkParams?: WaterMarkParams;
491
- /**
492
- * 屏幕分享模板、悬浮模板、九宫格模板、画中画模版有效,画面在输出时的显示模式:0为裁剪,1为缩放,2为缩放并显示黑底,不填采用后台的默认渲染方式(屏幕分享大画面为缩放,其他为裁剪)。若此参数不生效,请提交工单寻求帮助。
493
- */
494
- RenderMode?: number;
495
- }
496
456
  /**
497
457
  * StopMCUMixTranscodeByStrRoomId返回参数结构体
498
458
  */
@@ -633,6 +593,20 @@ export interface ModifyPictureRequest {
633
593
  */
634
594
  YPosition?: number;
635
595
  }
596
+ /**
597
+ * DescribeWebRecord返回参数结构体
598
+ */
599
+ export interface DescribeWebRecordResponse {
600
+ /**
601
+ * 1: 正在录制中
602
+ 2: 任务不存在
603
+ */
604
+ Status?: number;
605
+ /**
606
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
607
+ */
608
+ RequestId?: string;
609
+ }
636
610
  /**
637
611
  * DescribeUserInfo请求参数结构体
638
612
  */
@@ -671,6 +645,20 @@ export interface DescribeUserInfoRequest {
671
645
  */
672
646
  PageSize?: number;
673
647
  }
648
+ /**
649
+ * DescribeTRTCMarketQualityData返回参数结构体
650
+ */
651
+ export interface DescribeTRTCMarketQualityDataResponse {
652
+ /**
653
+ * TRTC监控数据出参
654
+ 注意:此字段可能返回 null,表示取不到有效值。
655
+ */
656
+ Data?: TRTCDataResult;
657
+ /**
658
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
659
+ */
660
+ RequestId?: string;
661
+ }
674
662
  /**
675
663
  * DescribeRelayUsage请求参数结构体
676
664
  */
@@ -840,6 +828,15 @@ export interface DescribeTRTCMarketQualityMetricDataRequest {
840
828
  */
841
829
  Period: string;
842
830
  }
831
+ /**
832
+ * DescribeWebRecord请求参数结构体
833
+ */
834
+ export interface DescribeWebRecordRequest {
835
+ /**
836
+ * 开始页面录制时返回的任务id
837
+ */
838
+ TaskId: string;
839
+ }
843
840
  /**
844
841
  * DescribeTRTCRealTimeScaleData返回参数结构体
845
842
  */
@@ -1106,18 +1103,25 @@ export interface StopStreamIngestRequest {
1106
1103
  TaskId: string;
1107
1104
  }
1108
1105
  /**
1109
- * DescribeTRTCMarketQualityData返回参数结构体
1106
+ * DescribeTRTCRealTimeQualityData请求参数结构体
1110
1107
  */
1111
- export interface DescribeTRTCMarketQualityDataResponse {
1108
+ export interface DescribeTRTCRealTimeQualityDataRequest {
1112
1109
  /**
1113
- * TRTC监控数据出参
1114
- 注意:此字段可能返回 null,表示取不到有效值。
1110
+ * 用户SdkAppId(如:1400xxxxxx)
1115
1111
  */
1116
- Data?: TRTCDataResult;
1112
+ SdkAppId: string;
1117
1113
  /**
1118
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1114
+ * 开始时间,unix时间戳,单位:秒(查询时间范围根据监控仪表盘功能版本而定,基础版可查近3小时,进阶版可查近12小时)
1119
1115
  */
1120
- RequestId?: string;
1116
+ StartTime: number;
1117
+ /**
1118
+ * 结束时间,unix时间戳,单位:秒
1119
+ */
1120
+ EndTime: number;
1121
+ /**
1122
+ * 房间ID
1123
+ */
1124
+ RoomId?: string;
1121
1125
  }
1122
1126
  /**
1123
1127
  * 画中画模板中有效,代表小画面的布局参数
@@ -1460,6 +1464,24 @@ export interface StartMCUMixTranscodeRequest {
1460
1464
  */
1461
1465
  PublishCdnParams?: PublishCdnParams;
1462
1466
  }
1467
+ /**
1468
+ * 页面录制视频参数
1469
+ */
1470
+ export interface WebRecordVideoParams {
1471
+ /**
1472
+ * 录制画面宽度,默认为1280,取值范围[0, 1920]
1473
+ */
1474
+ Width?: number;
1475
+ /**
1476
+ * 录制画面高度,默认为720,取值范围[0, 1080]
1477
+ */
1478
+ Height?: number;
1479
+ /**
1480
+ * 指定输出格式,可选hls,mp4
1481
+
1482
+ */
1483
+ Format?: string;
1484
+ }
1463
1485
  /**
1464
1486
  * 图片水印参数。
1465
1487
  */
@@ -2019,7 +2041,7 @@ export interface TencentVod {
2019
2041
  */
2020
2042
  MediaType?: number;
2021
2043
  /**
2022
- * 仅支持API录制上传vod,该参数表示用户可以自定义录制文件名前缀,【限制长度为64字节,只允许包含大小写英文字母(a-zA-Z)、数字(0-9)及下划线和连词符】。前缀与自动生成的录制文件名之间用__UserDefine_u_分开。
2044
+ * 仅支持API录制上传vod,该参数表示用户可以自定义录制文件名前缀,【限制长度为64字节,只允许包含大小写英文字母(a-zA-Z)、数字(0-9)及下划线和连词符】。前缀与自动生成的录制文件名之间用`__UserDefine_u_` 分开。
2023
2045
  */
2024
2046
  UserDefineRecordId?: string;
2025
2047
  }
@@ -2063,25 +2085,66 @@ export interface DescribeTRTCRealTimeQualityMetricDataResponse {
2063
2085
  RequestId?: string;
2064
2086
  }
2065
2087
  /**
2066
- * DescribeTRTCRealTimeQualityData请求参数结构体
2088
+ * MCU混流布局参数
2067
2089
  */
2068
- export interface DescribeTRTCRealTimeQualityDataRequest {
2090
+ export interface LayoutParams {
2069
2091
  /**
2070
- * 用户SdkAppId(如:1400xxxxxx)
2092
+ * 混流布局模板ID,0为悬浮模板(默认);1为九宫格模板;2为屏幕分享模板;3为画中画模板;4为自定义模板。
2071
2093
  */
2072
- SdkAppId: string;
2094
+ Template?: number;
2073
2095
  /**
2074
- * 开始时间,unix时间戳,单位:秒(查询时间范围根据监控仪表盘功能版本而定,基础版可查近3小时,进阶版可查近12小时)
2096
+ * 屏幕分享模板、悬浮模板、画中画模板中有效,代表大画面对应的用户ID。
2075
2097
  */
2076
- StartTime: number;
2098
+ MainVideoUserId?: string;
2077
2099
  /**
2078
- * 结束时间,unix时间戳,单位:秒
2100
+ * 屏幕分享模板、悬浮模板、画中画模板中有效,代表大画面对应的流类型,0为摄像头,1为屏幕分享。左侧大画面为web用户时此值填0。
2079
2101
  */
2080
- EndTime: number;
2102
+ MainVideoStreamType?: number;
2081
2103
  /**
2082
- * 房间ID
2104
+ * 画中画模板中有效,代表小画面的布局参数。
2083
2105
  */
2084
- RoomId?: string;
2106
+ SmallVideoLayoutParams?: SmallVideoLayoutParams;
2107
+ /**
2108
+ * 屏幕分享模板有效。设置为1时代表大画面居右,小画面居左布局。默认为0。
2109
+ */
2110
+ MainVideoRightAlign?: number;
2111
+ /**
2112
+ * 指定混视频的用户ID列表。设置此参数后,输出流混合此参数中包含用户的音视频,以及其他用户的纯音频。悬浮模板、九宫格、屏幕分享模板有效,最多可设置16个用户。
2113
+ */
2114
+ MixVideoUids?: Array<string>;
2115
+ /**
2116
+ * 自定义模板中有效,指定用户视频在混合画面中的位置。
2117
+ */
2118
+ PresetLayoutConfig?: Array<PresetLayoutConfig>;
2119
+ /**
2120
+ * 自定义模板中有效,设置为1时代表启用占位图功能,0时代表不启用占位图功能,默认为0。启用占位图功能时,在预设位置的用户没有上行视频时可显示对应的占位图。
2121
+ */
2122
+ PlaceHolderMode?: number;
2123
+ /**
2124
+ * 悬浮模板、九宫格、屏幕分享模板生效,用于控制纯音频上行是否占用画面布局位置。设置为0是代表后台默认处理方式,悬浮小画面占布局位置,九宫格画面占布局位置、屏幕分享小画面不占布局位置;设置为1时代表纯音频上行占布局位置;设置为2时代表纯音频上行不占布局位置。默认为0。
2125
+ */
2126
+ PureAudioHoldPlaceMode?: number;
2127
+ /**
2128
+ * 水印参数。
2129
+ */
2130
+ WaterMarkParams?: WaterMarkParams;
2131
+ /**
2132
+ * 屏幕分享模板、悬浮模板、九宫格模板、画中画模版有效,画面在输出时的显示模式:0为裁剪,1为缩放,2为缩放并显示黑底,不填采用后台的默认渲染方式(屏幕分享大画面为缩放,其他为裁剪)。若此参数不生效,请提交工单寻求帮助。
2133
+ */
2134
+ RenderMode?: number;
2135
+ }
2136
+ /**
2137
+ * StartWebRecord返回参数结构体
2138
+ */
2139
+ export interface StartWebRecordResponse {
2140
+ /**
2141
+ * 录制任务的唯一Id
2142
+ */
2143
+ TaskId?: string;
2144
+ /**
2145
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2146
+ */
2147
+ RequestId?: string;
2085
2148
  }
2086
2149
  /**
2087
2150
  * 录制的使用信息。
@@ -2811,6 +2874,38 @@ export interface UpdatePublishCdnStreamRequest {
2811
2874
  */
2812
2875
  FeedBackRoomParams?: Array<McuFeedBackRoomParams>;
2813
2876
  }
2877
+ /**
2878
+ * StartWebRecord请求参数结构体
2879
+ */
2880
+ export interface StartWebRecordRequest {
2881
+ /**
2882
+ * 需要录制的网页URL
2883
+
2884
+ */
2885
+ RecordUrl: string;
2886
+ /**
2887
+ * 录制最大时长限制, 单位 s, 合法取值范围[0, 36000], 默认 36000s(10 小时)
2888
+
2889
+ */
2890
+ MaxDurationLimit?: number;
2891
+ /**
2892
+ * 云存储相关的参数,目前支持腾讯云对象存储,不支持第三方云存储以及VOD
2893
+ */
2894
+ StorageParams?: StorageParams;
2895
+ /**
2896
+ * 页面录制视频参数
2897
+ */
2898
+ WebRecordVideoParams?: WebRecordVideoParams;
2899
+ /**
2900
+ * TRTC的SdkAppId
2901
+ */
2902
+ SdkAppId?: number;
2903
+ /**
2904
+ * 当对重复任务敏感时,请关注此值: 为了避免任务在短时间内重复发起,导致任务重复
2905
+ 传入录制RecordId来标识此次任务, 小于32字节,若携带RecordId发起两次以上的开始录制请求,任务只会启动一个,第二个报错FailedOperation.TaskExist。注意StartWebRecord调用失败时而非FailedOperation.TaskExist错误,请更换RecordId重新发起。
2906
+ */
2907
+ RecordId?: string;
2908
+ }
2814
2909
  /**
2815
2910
  * 指定动态布局中悬浮布局和屏幕分享布局的大画面信息,只在悬浮布局和屏幕分享布局有效。
2816
2911
  */
@@ -2837,6 +2932,15 @@ export interface AgentParams {
2837
2932
  */
2838
2933
  MaxIdleTime?: number;
2839
2934
  }
2935
+ /**
2936
+ * StopWebRecord返回参数结构体
2937
+ */
2938
+ export interface StopWebRecordResponse {
2939
+ /**
2940
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2941
+ */
2942
+ RequestId?: string;
2943
+ }
2840
2944
  /**
2841
2945
  * DeletePicture请求参数结构体
2842
2946
  */
@@ -48,6 +48,16 @@ it("trtc.v20190722.DescribeTRTCMarketQualityMetricData", async function () {
48
48
  }
49
49
  })
50
50
 
51
+ it("trtc.v20190722.DescribeWebRecord", async function () {
52
+ try {
53
+ const data = await client.DescribeWebRecord({})
54
+ expect(data).to.be.ok
55
+ } catch(error) {
56
+ expect(error.requestId).to.be.ok
57
+ expect(error.code).to.be.ok
58
+ }
59
+ })
60
+
51
61
  it("trtc.v20190722.StartPublishCdnStream", async function () {
52
62
  try {
53
63
  const data = await client.StartPublishCdnStream({})
@@ -198,6 +208,16 @@ it("trtc.v20190722.DescribeUserEvent", async function () {
198
208
  }
199
209
  })
200
210
 
211
+ it("trtc.v20190722.StartWebRecord", async function () {
212
+ try {
213
+ const data = await client.StartWebRecord({})
214
+ expect(data).to.be.ok
215
+ } catch(error) {
216
+ expect(error.requestId).to.be.ok
217
+ expect(error.code).to.be.ok
218
+ }
219
+ })
220
+
201
221
  it("trtc.v20190722.StartMCUMixTranscode", async function () {
202
222
  try {
203
223
  const data = await client.StartMCUMixTranscode({})
@@ -218,6 +238,16 @@ it("trtc.v20190722.DescribeTRTCMarketScaleData", async function () {
218
238
  }
219
239
  })
220
240
 
241
+ it("trtc.v20190722.StopWebRecord", async function () {
242
+ try {
243
+ const data = await client.StopWebRecord({})
244
+ expect(data).to.be.ok
245
+ } catch(error) {
246
+ expect(error.requestId).to.be.ok
247
+ expect(error.code).to.be.ok
248
+ }
249
+ })
250
+
221
251
  it("trtc.v20190722.CreateCloudRecording", async function () {
222
252
  try {
223
253
  const data = await client.CreateCloudRecording({})