tencentcloud-sdk-nodejs 4.0.371 → 4.0.372
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 +120 -0
- package/SERVICE_CHANGELOG.md +187 -183
- package/package.json +1 -1
- package/products.md +11 -11
- package/src/common/sdk_version.ts +1 -1
- package/src/services/batch/v20170312/batch_models.ts +4 -3
- package/src/services/clb/v20180317/clb_models.ts +6 -0
- package/src/services/cls/v20201016/cls_client.ts +13 -64
- package/src/services/cls/v20201016/cls_models.ts +162 -467
- package/src/services/cvm/v20170312/cvm_models.ts +10 -3
- package/src/services/cwp/v20180228/cwp_models.ts +6 -0
- package/src/services/mmps/v20200710/mmps_models.ts +1 -1
- package/src/services/ocr/v20181119/ocr_models.ts +14 -12
- package/src/services/tdmq/v20200217/tdmq_client.ts +22 -2
- package/src/services/tdmq/v20200217/tdmq_models.ts +17 -12
- package/src/services/trtc/v20190722/trtc_client.ts +42 -115
- package/src/services/trtc/v20190722/trtc_models.ts +799 -1431
- package/src/services/tsf/v20180326/tsf_models.ts +1 -1
- package/src/services/vpc/v20170312/vpc_models.ts +1 -1
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/batch/v20170312/batch_models.d.ts +2 -1
- package/tencentcloud/services/clb/v20180317/clb_models.d.ts +5 -0
- package/tencentcloud/services/cls/v20201016/cls_client.d.ts +3 -19
- package/tencentcloud/services/cls/v20201016/cls_client.js +3 -27
- package/tencentcloud/services/cls/v20201016/cls_models.d.ts +148 -406
- package/tencentcloud/services/cvm/v20170312/cvm_models.d.ts +8 -1
- package/tencentcloud/services/cwp/v20180228/cwp_models.d.ts +5 -0
- package/tencentcloud/services/mmps/v20200710/mmps_models.d.ts +1 -1
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +14 -12
- package/tencentcloud/services/tdmq/v20200217/tdmq_client.d.ts +21 -1
- package/tencentcloud/services/tdmq/v20200217/tdmq_client.js +21 -1
- package/tencentcloud/services/tdmq/v20200217/tdmq_models.d.ts +16 -12
- package/tencentcloud/services/trtc/v20190722/trtc_client.d.ts +1 -28
- package/tencentcloud/services/trtc/v20190722/trtc_client.js +0 -35
- package/tencentcloud/services/trtc/v20190722/trtc_models.d.ts +773 -1310
- package/tencentcloud/services/tsf/v20180326/tsf_models.d.ts +1 -1
- package/tencentcloud/services/vpc/v20170312/vpc_models.d.ts +1 -1
- package/test/cls.v20201016.test.js +2 -42
- package/test/trtc.v20190722.test.js +0 -40
|
@@ -516,8 +516,9 @@ export interface SystemDisk {
|
|
|
516
516
|
DiskType?: string
|
|
517
517
|
|
|
518
518
|
/**
|
|
519
|
-
|
|
520
|
-
|
|
519
|
+
* 系统盘ID。LOCAL_BASIC 和 LOCAL_SSD 类型没有ID。暂时不支持该参数。
|
|
520
|
+
该参数目前仅用于`DescribeInstances`等查询类接口的返回参数,不可用于`RunInstances`等写接口的入参。
|
|
521
|
+
*/
|
|
521
522
|
DiskId?: string
|
|
522
523
|
|
|
523
524
|
/**
|
|
@@ -4029,6 +4030,12 @@ export interface DescribeZoneInstanceConfigInfosRequest {
|
|
|
4029
4030
|
<p style="padding-left: 30px;">按照【<strong>实例机型</strong>】进行过滤。不同实例机型指定了不同的资源规格,具体取值可通过调用接口 [DescribeInstanceTypeConfigs](https://cloud.tencent.com/document/product/213/15749) 来获得最新的规格表或参见[实例类型](https://cloud.tencent.com/document/product/213/11518)描述。若不指定该参数,则默认机型为S1.SMALL1。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
|
4030
4031
|
<li><strong>instance-charge-type</strong></li>
|
|
4031
4032
|
<p style="padding-left: 30px;">按照【<strong>实例计费模式</strong>】进行过滤。(PREPAID:表示预付费,即包年包月 | POSTPAID_BY_HOUR:表示后付费,即按量计费 )</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
|
4033
|
+
<li><strong>sort-keys</strong></li>
|
|
4034
|
+
<p style="padding-left: 30px;">按关键字进行排序,格式为排序字段加排序方式,中间用冒号分隔。 例如: 按cpu数逆序排序 "cpu:desc", 按mem大小顺序排序 "mem:asc"</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
|
4035
|
+
<li><strong>offset</strong></li>
|
|
4036
|
+
<p style="padding-left: 30px;">按照偏移量进行分页</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
|
4037
|
+
<li><strong>limit</strong></li>
|
|
4038
|
+
<p style="padding-left: 30px;">每页返回的数据条数</p><p style="padding-left: 30px;">类型:Integer</p><p style="padding-left: 30px;">必选:否</p>
|
|
4032
4039
|
每次请求的`Filters`的上限为10,`Filter.Values`的上限为100。
|
|
4033
4040
|
*/
|
|
4034
4041
|
Filters?: Array<Filter>
|
|
@@ -5656,7 +5663,7 @@ export interface DataDisk {
|
|
|
5656
5663
|
|
|
5657
5664
|
/**
|
|
5658
5665
|
* 数据盘ID。LOCAL_BASIC 和 LOCAL_SSD 类型没有ID,暂时不支持该参数。
|
|
5659
|
-
该参数目前仅用于`DescribeInstances
|
|
5666
|
+
该参数目前仅用于`DescribeInstances`等查询类接口的返回参数,不可用于`RunInstances`等写接口的入参。
|
|
5660
5667
|
*/
|
|
5661
5668
|
DiskId?: string
|
|
5662
5669
|
|
|
@@ -6921,66 +6921,68 @@ export interface BizLicenseOCRResponse {
|
|
|
6921
6921
|
/**
|
|
6922
6922
|
* 统一社会信用代码(三合一之前为注册号)
|
|
6923
6923
|
*/
|
|
6924
|
-
RegNum
|
|
6924
|
+
RegNum: string
|
|
6925
6925
|
|
|
6926
6926
|
/**
|
|
6927
6927
|
* 公司名称
|
|
6928
6928
|
*/
|
|
6929
|
-
Name
|
|
6929
|
+
Name: string
|
|
6930
6930
|
|
|
6931
6931
|
/**
|
|
6932
6932
|
* 注册资本
|
|
6933
6933
|
*/
|
|
6934
|
-
Capital
|
|
6934
|
+
Capital: string
|
|
6935
6935
|
|
|
6936
6936
|
/**
|
|
6937
6937
|
* 法定代表人
|
|
6938
6938
|
*/
|
|
6939
|
-
Person
|
|
6939
|
+
Person: string
|
|
6940
6940
|
|
|
6941
6941
|
/**
|
|
6942
6942
|
* 地址
|
|
6943
6943
|
*/
|
|
6944
|
-
Address
|
|
6944
|
+
Address: string
|
|
6945
6945
|
|
|
6946
6946
|
/**
|
|
6947
6947
|
* 经营范围
|
|
6948
6948
|
*/
|
|
6949
|
-
Business
|
|
6949
|
+
Business: string
|
|
6950
6950
|
|
|
6951
6951
|
/**
|
|
6952
6952
|
* 主体类型
|
|
6953
6953
|
*/
|
|
6954
|
-
Type
|
|
6954
|
+
Type: string
|
|
6955
6955
|
|
|
6956
6956
|
/**
|
|
6957
6957
|
* 营业期限
|
|
6958
6958
|
*/
|
|
6959
|
-
Period
|
|
6959
|
+
Period: string
|
|
6960
6960
|
|
|
6961
6961
|
/**
|
|
6962
6962
|
* 组成形式
|
|
6963
6963
|
*/
|
|
6964
|
-
ComposingForm
|
|
6964
|
+
ComposingForm: string
|
|
6965
6965
|
|
|
6966
6966
|
/**
|
|
6967
6967
|
* 成立日期
|
|
6968
6968
|
*/
|
|
6969
|
-
SetDate
|
|
6969
|
+
SetDate: string
|
|
6970
6970
|
|
|
6971
6971
|
/**
|
|
6972
6972
|
* Code 告警码列表和释义:
|
|
6973
6973
|
-20001 非营业执照
|
|
6974
|
+
-9102 黑白复印件告警
|
|
6974
6975
|
注:告警码可以同时存在多个
|
|
6975
6976
|
*/
|
|
6976
|
-
RecognizeWarnCode
|
|
6977
|
+
RecognizeWarnCode: Array<number>
|
|
6977
6978
|
|
|
6978
6979
|
/**
|
|
6979
6980
|
* 告警码说明:
|
|
6980
6981
|
OCR_WARNING_TPYE_NOT_MATCH 非营业执照
|
|
6982
|
+
WARN_COPY_CARD 黑白复印件告警
|
|
6981
6983
|
注:告警信息可以同时存在多个
|
|
6982
6984
|
*/
|
|
6983
|
-
RecognizeWarnMsg
|
|
6985
|
+
RecognizeWarnMsg: Array<string>
|
|
6984
6986
|
|
|
6985
6987
|
/**
|
|
6986
6988
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
@@ -938,8 +938,28 @@ export class Client extends AbstractClient {
|
|
|
938
938
|
}
|
|
939
939
|
|
|
940
940
|
/**
|
|
941
|
-
|
|
942
|
-
|
|
941
|
+
* 接收发送到指定 topic 中的消息,当 Topic 中没有消息但还去尝试调用该接口时,会抛出 ReceiveTimeout 的异常。
|
|
942
|
+
|
|
943
|
+
如何使用 BatchReceivePolicy:
|
|
944
|
+
|
|
945
|
+
BatchReceive 接口提供了如下三个参数:
|
|
946
|
+
|
|
947
|
+
● MaxNumMessages: 即每次使用 BatchReceive 的时候,最多一次Receive接口返回多少条消息。
|
|
948
|
+
● MaxNumBytes:即每次使用 BatchReceive 的时候,最多一次Receive接口返回多大内容的消息,单位是:bytes。
|
|
949
|
+
● Timeout:即每次使用 BatchReceive 的时候,最多一次 Receive 接口的超时时间是多久,单位是:MS。
|
|
950
|
+
|
|
951
|
+
默认如果上述三个参数都不指定,即关闭 BatchReceive 的特性。如果三个参数中的任意一个参数指定的数值大于 0,即开启 BatchReceive。BatchReceive 的结束条件为到达上述三个参数中任意一个指定的阈值。
|
|
952
|
+
|
|
953
|
+
注意:MaxNumMessages 和 MaxNumBytes 每一次接收的最大消息同时受限于 ReceiveQueueSize 的大小,如果 ReceiveQueueSize 的大小设置为 5,MaxNumMessages 设置为10,那么一次 BatchReceive 接收的最多的消息是 5条,而不是10条。
|
|
954
|
+
|
|
955
|
+
|
|
956
|
+
|
|
957
|
+
BatchReceivePolicy 的接口会一次性返回多条消息:
|
|
958
|
+
|
|
959
|
+
1. 多条消息的内容之间使用特殊字符 '###' 来进行分割,业务侧接收到消息之后,可以利用不同语言提供的 Split 工具分割不同的消息。
|
|
960
|
+
2. 多条消息的 MessageID 之间使用特殊字符 '###' 来进行分割,业务侧接收到消息之后,可以利用不同语言提供的 Split 工具分割不同的消息。(用于在调用 AcknowledgeMessage 接口中填入所需要的 MessageID 字段信息)
|
|
961
|
+
|
|
962
|
+
*/
|
|
943
963
|
async ReceiveMessage(
|
|
944
964
|
req: ReceiveMessageRequest,
|
|
945
965
|
cb?: (error: string, rep: ReceiveMessageResponse) => void
|
|
@@ -262,7 +262,7 @@ export interface ModifyEnvironmentAttributesRequest {
|
|
|
262
262
|
EnvironmentId: string
|
|
263
263
|
|
|
264
264
|
/**
|
|
265
|
-
*
|
|
265
|
+
* 未消费消息过期时间,单位:秒,范围60秒~1天。
|
|
266
266
|
*/
|
|
267
267
|
MsgTTL: number
|
|
268
268
|
|
|
@@ -1782,7 +1782,7 @@ export interface CreateEnvironmentRequest {
|
|
|
1782
1782
|
EnvironmentId: string
|
|
1783
1783
|
|
|
1784
1784
|
/**
|
|
1785
|
-
*
|
|
1785
|
+
* 未消费消息过期时间,单位:秒,取值范围:60秒~1天。
|
|
1786
1786
|
*/
|
|
1787
1787
|
MsgTTL: number
|
|
1788
1788
|
|
|
@@ -2775,7 +2775,7 @@ export interface CreateTopicRequest {
|
|
|
2775
2775
|
TopicName: string
|
|
2776
2776
|
|
|
2777
2777
|
/**
|
|
2778
|
-
*
|
|
2778
|
+
* 入参为1,即是创建非分区topic,无分区;入参大于1,表示分区topic的分区数,最大不允许超过128。
|
|
2779
2779
|
*/
|
|
2780
2780
|
Partitions: number
|
|
2781
2781
|
|
|
@@ -2785,7 +2785,8 @@ export interface CreateTopicRequest {
|
|
|
2785
2785
|
Remark?: string
|
|
2786
2786
|
|
|
2787
2787
|
/**
|
|
2788
|
-
*
|
|
2788
|
+
* 该入参将逐步弃用,可切换至PulsarTopicType参数
|
|
2789
|
+
0: 普通消息;
|
|
2789
2790
|
1 :全局顺序消息;
|
|
2790
2791
|
2 :局部顺序消息;
|
|
2791
2792
|
3 :重试队列;
|
|
@@ -2834,12 +2835,10 @@ export interface DescribeTopicsRequest {
|
|
|
2834
2835
|
|
|
2835
2836
|
/**
|
|
2836
2837
|
* topic类型描述:
|
|
2837
|
-
0
|
|
2838
|
-
1
|
|
2839
|
-
2
|
|
2840
|
-
3
|
|
2841
|
-
4:死信队列;
|
|
2842
|
-
5:事务消息。
|
|
2838
|
+
0:非持久非分区主题类型;
|
|
2839
|
+
1:非持久分区主题类型;
|
|
2840
|
+
2:持久非分区主题类型;
|
|
2841
|
+
3:持久分区主题类型;
|
|
2843
2842
|
*/
|
|
2844
2843
|
TopicType?: number
|
|
2845
2844
|
|
|
@@ -2855,6 +2854,13 @@ export interface DescribeTopicsRequest {
|
|
|
2855
2854
|
必选:否
|
|
2856
2855
|
*/
|
|
2857
2856
|
Filters?: Array<Filter>
|
|
2857
|
+
|
|
2858
|
+
/**
|
|
2859
|
+
* 创建来源:
|
|
2860
|
+
1:用户创建
|
|
2861
|
+
2:系统创建
|
|
2862
|
+
*/
|
|
2863
|
+
TopicCreator?: number
|
|
2858
2864
|
}
|
|
2859
2865
|
|
|
2860
2866
|
/**
|
|
@@ -3973,7 +3979,7 @@ export interface CreateTopicResponse {
|
|
|
3973
3979
|
TopicName: string
|
|
3974
3980
|
|
|
3975
3981
|
/**
|
|
3976
|
-
* 0:非分区topic
|
|
3982
|
+
* 0或1:非分区topic,无分区;大于1:具体分区topic的分区数。(存量非分区主题返回0,增量非分区主题返回1)
|
|
3977
3983
|
*/
|
|
3978
3984
|
Partitions: number
|
|
3979
3985
|
|
|
@@ -3989,7 +3995,6 @@ export interface CreateTopicResponse {
|
|
|
3989
3995
|
2 :局部顺序消息;
|
|
3990
3996
|
3 :重试队列;
|
|
3991
3997
|
4 :死信队列;
|
|
3992
|
-
5 :事务消息。
|
|
3993
3998
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
3994
3999
|
*/
|
|
3995
4000
|
TopicType: number
|
|
@@ -20,93 +20,71 @@ import { ClientConfig } from "../../../common/interface"
|
|
|
20
20
|
import {
|
|
21
21
|
DescribeAbnormalEventResponse,
|
|
22
22
|
DescribeAbnormalEventRequest,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
DescribeHistoryScaleRequest,
|
|
26
|
-
DescribeCallDetailRequest,
|
|
27
|
-
RemoveUserByStrRoomIdResponse,
|
|
28
|
-
StartMCUMixTranscodeRequest,
|
|
23
|
+
SdkAppIdTrtcMcuTranscodeTimeUsage,
|
|
24
|
+
ModifyPictureResponse,
|
|
29
25
|
StartMCUMixTranscodeByStrRoomIdRequest,
|
|
30
|
-
|
|
31
|
-
CreateTroubleInfoRequest,
|
|
32
|
-
DescribeDetailEventResponse,
|
|
33
|
-
StopMCUMixTranscodeByStrRoomIdResponse,
|
|
34
|
-
PictureInfo,
|
|
35
|
-
MixTranscodeParams,
|
|
36
|
-
DescribeRoomInformationRequest,
|
|
37
|
-
WaterMarkParams,
|
|
38
|
-
DescribeRecordStatisticResponse,
|
|
39
|
-
StartMCUMixTranscodeByStrRoomIdResponse,
|
|
40
|
-
CloudStorage,
|
|
26
|
+
LayoutParams,
|
|
41
27
|
TimeValue,
|
|
42
|
-
|
|
28
|
+
CreatePictureRequest,
|
|
29
|
+
DescribeTrtcMcuTranscodeTimeRequest,
|
|
30
|
+
StopMCUMixTranscodeResponse,
|
|
31
|
+
RemoveUserByStrRoomIdRequest,
|
|
32
|
+
DismissRoomResponse,
|
|
43
33
|
EventMessage,
|
|
44
34
|
DescribeRecordStatisticRequest,
|
|
45
|
-
StorageParams,
|
|
46
|
-
CloudVod,
|
|
47
|
-
EncodeParams,
|
|
48
35
|
DescribeUserInformationRequest,
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
SubscribeStreamUserIds,
|
|
53
|
-
EventList,
|
|
54
|
-
WaterMarkImage,
|
|
55
|
-
SdkAppIdTrtcMcuTranscodeTimeUsage,
|
|
56
|
-
ModifyPictureResponse,
|
|
57
|
-
StorageFile,
|
|
58
|
-
WaterMark,
|
|
59
|
-
MixLayoutParams,
|
|
60
|
-
StopMCUMixTranscodeResponse,
|
|
36
|
+
DescribeCallDetailRequest,
|
|
37
|
+
ScaleInfomation,
|
|
38
|
+
DescribeUserInformationResponse,
|
|
61
39
|
SdkAppIdNewTrtcTimeUsage,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
TencentVod,
|
|
40
|
+
EncodeParams,
|
|
41
|
+
RemoveUserByStrRoomIdResponse,
|
|
42
|
+
StartMCUMixTranscodeRequest,
|
|
66
43
|
StopMCUMixTranscodeRequest,
|
|
67
|
-
|
|
44
|
+
UserInformation,
|
|
45
|
+
DescribeHistoryScaleRequest,
|
|
46
|
+
DeletePictureRequest,
|
|
47
|
+
TrtcTimeNewUsage,
|
|
48
|
+
DescribeRoomInformationResponse,
|
|
68
49
|
RecordUsage,
|
|
69
|
-
|
|
50
|
+
RemoveUserRequest,
|
|
70
51
|
OutputParams,
|
|
71
|
-
|
|
52
|
+
DescribeExternalTrtcMeasureRequest,
|
|
53
|
+
ModifyPictureRequest,
|
|
72
54
|
CreateTroubleInfoResponse,
|
|
73
55
|
StopMCUMixTranscodeByStrRoomIdRequest,
|
|
74
56
|
QualityData,
|
|
57
|
+
AbnormalEvent,
|
|
58
|
+
StopMCUMixTranscodeByStrRoomIdResponse,
|
|
75
59
|
DeletePictureResponse,
|
|
76
|
-
|
|
77
|
-
|
|
60
|
+
CreateTroubleInfoRequest,
|
|
61
|
+
EventList,
|
|
62
|
+
DismissRoomRequest,
|
|
63
|
+
DescribeDetailEventResponse,
|
|
64
|
+
DismissRoomByStrRoomIdRequest,
|
|
65
|
+
DescribeExternalTrtcMeasureResponse,
|
|
78
66
|
OneSdkAppIdTranscodeTimeUsagesInfo,
|
|
79
|
-
CreateCloudRecordingResponse,
|
|
80
|
-
StartMCUMixTranscodeResponse,
|
|
81
67
|
DescribeTrtcMcuTranscodeTimeResponse,
|
|
82
|
-
DeleteCloudRecordingRequest,
|
|
83
68
|
DescribePictureRequest,
|
|
84
|
-
DescribeExternalTrtcMeasureResponse,
|
|
85
|
-
DescribePictureResponse,
|
|
86
|
-
DescribeTrtcMcuTranscodeTimeRequest,
|
|
87
|
-
DescribeDetailEventRequest,
|
|
88
|
-
UserInformation,
|
|
89
|
-
DismissRoomByStrRoomIdResponse,
|
|
90
|
-
ModifyCloudRecordingResponse,
|
|
91
|
-
AbnormalEvent,
|
|
92
|
-
DescribeCloudRecordingResponse,
|
|
93
|
-
DismissRoomResponse,
|
|
94
|
-
DescribeUserInformationResponse,
|
|
95
|
-
DescribeCallDetailResponse,
|
|
96
|
-
DeletePictureRequest,
|
|
97
|
-
DescribeRoomInformationResponse,
|
|
98
|
-
DescribeExternalTrtcMeasureRequest,
|
|
99
|
-
RemoveUserByStrRoomIdRequest,
|
|
100
|
-
RecordParams,
|
|
101
69
|
SdkAppIdRecordUsage,
|
|
70
|
+
SmallVideoLayoutParams,
|
|
71
|
+
RemoveUserResponse,
|
|
102
72
|
PresetLayoutConfig,
|
|
103
|
-
|
|
73
|
+
DescribeCallDetailResponse,
|
|
74
|
+
DescribePictureResponse,
|
|
104
75
|
PublishCdnParams,
|
|
76
|
+
DescribeRoomInformationRequest,
|
|
77
|
+
DescribeDetailEventRequest,
|
|
105
78
|
AbnormalExperience,
|
|
79
|
+
StartMCUMixTranscodeResponse,
|
|
106
80
|
RoomState,
|
|
107
81
|
CreatePictureResponse,
|
|
108
|
-
|
|
82
|
+
WaterMarkParams,
|
|
83
|
+
DescribeRecordStatisticResponse,
|
|
84
|
+
DismissRoomByStrRoomIdResponse,
|
|
109
85
|
DescribeHistoryScaleResponse,
|
|
86
|
+
StartMCUMixTranscodeByStrRoomIdResponse,
|
|
87
|
+
PictureInfo,
|
|
110
88
|
} from "./trtc_models"
|
|
111
89
|
|
|
112
90
|
/**
|
|
@@ -230,37 +208,6 @@ TRTC 的一个房间中可能会同时存在多路音视频流,您可以通过
|
|
|
230
208
|
return this.request("DescribeCallDetail", req, cb)
|
|
231
209
|
}
|
|
232
210
|
|
|
233
|
-
/**
|
|
234
|
-
* 成功开启录制后,可以使用此接口来更新录制任务。仅在录制任务进行时有效,录制退出后更新将会返回错误。更新操作是全量覆盖,并不是增量更新的模式,也就是说每次更新都需要携带全量的信息。
|
|
235
|
-
*/
|
|
236
|
-
async ModifyCloudRecording(
|
|
237
|
-
req: ModifyCloudRecordingRequest,
|
|
238
|
-
cb?: (error: string, rep: ModifyCloudRecordingResponse) => void
|
|
239
|
-
): Promise<ModifyCloudRecordingResponse> {
|
|
240
|
-
return this.request("ModifyCloudRecording", req, cb)
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
/**
|
|
244
|
-
* ###接口说明:
|
|
245
|
-
启动云端录制功能,完成房间内的音视频录制,并上传到指定的云存储。您可以通过此 API 接口把TRTC 房间中的每一路音视频流做单独的录制有或者多路视频画面混流一路。
|
|
246
|
-
|
|
247
|
-
###您可以通过此接口实现如下目标:
|
|
248
|
-
* 指定订阅流参数(RecordParams)来指定需要录制的主播的黑名单或者白名单。
|
|
249
|
-
* 指定第三方存储的参数(StorageParams)来指定上传到您希望的云存储
|
|
250
|
-
* 指定混流模式下的音视频转码详细参数(MixTranscodeParams),包括视频分辨率、视频码率、视频帧率、以及声音质量等
|
|
251
|
-
* 指定混流模式各路画面的位置和布局或者也可以指定自动模板的方式来配置。
|
|
252
|
-
|
|
253
|
-
###关键名词:
|
|
254
|
-
* 单流录制:分别录制房间的订阅UserId的音频和视频。录制服务会实时将录制文件(M3U8/TS)上传至云存储。
|
|
255
|
-
* 混流录制:将房间内订阅UserId的音视频混录成一个音视频文件,并将录制文件(M3U8/TS)上传至云存储。
|
|
256
|
-
*/
|
|
257
|
-
async CreateCloudRecording(
|
|
258
|
-
req: CreateCloudRecordingRequest,
|
|
259
|
-
cb?: (error: string, rep: CreateCloudRecordingResponse) => void
|
|
260
|
-
): Promise<CreateCloudRecordingResponse> {
|
|
261
|
-
return this.request("CreateCloudRecording", req, cb)
|
|
262
|
-
}
|
|
263
|
-
|
|
264
211
|
/**
|
|
265
212
|
* 获取Trtc的用量统计数据。走计费渠道二期 只允许查两天的数据
|
|
266
213
|
*/
|
|
@@ -390,26 +337,6 @@ TRTC 的一个房间中可能会同时存在多路音视频流,您可以通过
|
|
|
390
337
|
return this.request("DescribeTrtcMcuTranscodeTime", req, cb)
|
|
391
338
|
}
|
|
392
339
|
|
|
393
|
-
/**
|
|
394
|
-
* 成功开启录制后,可以使用此接口来查询录制状态。仅在录制任务进行时有效,录制退出后查询将会返回错误。
|
|
395
|
-
*/
|
|
396
|
-
async DescribeCloudRecording(
|
|
397
|
-
req: DescribeCloudRecordingRequest,
|
|
398
|
-
cb?: (error: string, rep: DescribeCloudRecordingResponse) => void
|
|
399
|
-
): Promise<DescribeCloudRecordingResponse> {
|
|
400
|
-
return this.request("DescribeCloudRecording", req, cb)
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
/**
|
|
404
|
-
* 成功开启录制后,可以使用此接口来停止录制任务。仅在录制任务进行时有效,录制退出后更新将会返回错误。停止录制成功后不代表文件全部传输完成,如果未完成后台将会继续上传文件,成功后通过事件回调通知客户文件全部传输完成状态。
|
|
405
|
-
*/
|
|
406
|
-
async DeleteCloudRecording(
|
|
407
|
-
req: DeleteCloudRecordingRequest,
|
|
408
|
-
cb?: (error: string, rep: DeleteCloudRecordingResponse) => void
|
|
409
|
-
): Promise<DeleteCloudRecordingResponse> {
|
|
410
|
-
return this.request("DeleteCloudRecording", req, cb)
|
|
411
|
-
}
|
|
412
|
-
|
|
413
340
|
/**
|
|
414
341
|
* 如果您需要在 [云端混流转码](https://cloud.tencent.com/document/product/647/16827) 时频繁查找自定义背景图或水印信息,可通过此接口查找已上传的图片信息。无需频繁查找图片信息的场景,建议直接在 [控制台 > 应用管理 > 素材管理](https://cloud.tencent.com/document/product/647/50769) 中查看。
|
|
415
342
|
*/
|