tencentcloud-sdk-trtc 1.0.312 → 1.0.313

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c04b857f6fe4c64e4c2a6b5c80f8171191d9bf36
4
- data.tar.gz: 38489bdb127da2019f6b0825d37cc0c6ba5271b1
3
+ metadata.gz: b8a1c60385f7664f29eb761dc11c39cd35b9bd97
4
+ data.tar.gz: 294b21f757bb0ab07b4ce022a21576b16d5dc4fc
5
5
  SHA512:
6
- metadata.gz: 8b7b24a9f938976080c37ecb6abe4db9bad61a9b3994c4abe76d1afd17ac8b5e6cc9ed60cd32e41493aaaf511611c1328b48797cdaae625feec473498ab8a4e8
7
- data.tar.gz: a93ea54a1a4d12cd43731cac624606991e3a311501e745fca7d3cc928ed8e55c530e7754ea87471cff0900cea605999838e4d8e2a0c50734424db006d636c341
6
+ metadata.gz: 1c800e87ff65596c8b9af1e924f5dff987db41690469ca2ade01264d6c112fdc6e579a241aa0e1c7575fa8f3e649abdb86d45b4fce975d6767e20fe6abd53d2a
7
+ data.tar.gz: ae92e9b4bdad6bccb18f522052c87fb11b9a85d599d39ddca1e36d8c359f636cea72fd66e334fb70277056d88ae9b58b26d20f61fe5c68d6c01ff3244d11c629
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.312
1
+ 1.0.313
@@ -29,6 +29,41 @@ module TencentCloud
29
29
  end
30
30
 
31
31
 
32
+ # ###接口说明:
33
+ # 启动云端录制功能,完成房间内的音视频录制,并上传到指定的云存储。您可以通过此 API 接口把TRTC 房间中的每一路音视频流做单独的录制有或者多路视频画面混流一路。
34
+
35
+ # ###您可以通过此接口实现如下目标:
36
+ # * 指定订阅流参数(RecordParams)来指定需要录制的主播的黑名单或者白名单。
37
+ # * 指定第三方存储的参数(StorageParams)来指定上传到您希望的云存储
38
+ # * 指定混流模式下的音视频转码详细参数(MixTranscodeParams),包括视频分辨率、视频码率、视频帧率、以及声音质量等
39
+ # * 指定混流模式各路画面的位置和布局或者也可以指定自动模板的方式来配置。
40
+
41
+ # ###关键名词:
42
+ # * 单流录制:分别录制房间的订阅UserId的音频和视频。录制服务会实时将录制文件(M3U8/TS)上传至云存储。
43
+ # * 混流录制:将房间内订阅UserId的音视频混录成一个音视频文件,并将录制文件(M3U8/TS)上传至云存储。
44
+
45
+ # @param request: Request instance for CreateCloudRecording.
46
+ # @type request: :class:`Tencentcloud::trtc::V20190722::CreateCloudRecordingRequest`
47
+ # @rtype: :class:`Tencentcloud::trtc::V20190722::CreateCloudRecordingResponse`
48
+ def CreateCloudRecording(request)
49
+ body = send_request('CreateCloudRecording', request.serialize)
50
+ response = JSON.parse(body)
51
+ if response['Response'].key?('Error') == false
52
+ model = CreateCloudRecordingResponse.new
53
+ model.deserialize(response['Response'])
54
+ model
55
+ else
56
+ code = response['Response']['Error']['Code']
57
+ message = response['Response']['Error']['Message']
58
+ reqid = response['Response']['RequestId']
59
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
60
+ end
61
+ rescue TencentCloud::Common::TencentCloudSDKException => e
62
+ raise e
63
+ rescue StandardError => e
64
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
65
+ end
66
+
32
67
  # 如果您需要在 [云端混流转码](https://cloud.tencent.com/document/product/647/16827) 时频繁新增自定义背景图或水印,可通过此接口上传新的图片素材。无需频繁新增图片的场景,建议直接在 [控制台 > 应用管理 > 素材管理](https://cloud.tencent.com/document/product/647/50769) 中操作。
33
68
 
34
69
  # @param request: Request instance for CreatePicture.
@@ -77,6 +112,30 @@ module TencentCloud
77
112
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
113
  end
79
114
 
115
+ # 成功开启录制后,可以使用此接口来停止录制任务。仅在录制任务进行时有效,录制退出后更新将会返回错误。停止录制成功后不代表文件全部传输完成,如果未完成后台将会继续上传文件,成功后通过事件回调通知客户文件全部传输完成状态。
116
+
117
+ # @param request: Request instance for DeleteCloudRecording.
118
+ # @type request: :class:`Tencentcloud::trtc::V20190722::DeleteCloudRecordingRequest`
119
+ # @rtype: :class:`Tencentcloud::trtc::V20190722::DeleteCloudRecordingResponse`
120
+ def DeleteCloudRecording(request)
121
+ body = send_request('DeleteCloudRecording', request.serialize)
122
+ response = JSON.parse(body)
123
+ if response['Response'].key?('Error') == false
124
+ model = DeleteCloudRecordingResponse.new
125
+ model.deserialize(response['Response'])
126
+ model
127
+ else
128
+ code = response['Response']['Error']['Code']
129
+ message = response['Response']['Error']['Message']
130
+ reqid = response['Response']['RequestId']
131
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
132
+ end
133
+ rescue TencentCloud::Common::TencentCloudSDKException => e
134
+ raise e
135
+ rescue StandardError => e
136
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
137
+ end
138
+
80
139
  # 如果您需要在 [云端混流转码](https://cloud.tencent.com/document/product/647/16827) 时频繁删除自定义背景图或水印,可通过此接口删除已上传的图片。无需频繁删除图片的场景,建议直接在 [控制台 > 应用管理 > 素材管理](https://cloud.tencent.com/document/product/647/50769) 中操作。
81
140
 
82
141
  # @param request: Request instance for DeletePicture.
@@ -150,6 +209,30 @@ module TencentCloud
150
209
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
151
210
  end
152
211
 
212
+ # 成功开启录制后,可以使用此接口来查询录制状态。仅在录制任务进行时有效,录制退出后查询将会返回错误。
213
+
214
+ # @param request: Request instance for DescribeCloudRecording.
215
+ # @type request: :class:`Tencentcloud::trtc::V20190722::DescribeCloudRecordingRequest`
216
+ # @rtype: :class:`Tencentcloud::trtc::V20190722::DescribeCloudRecordingResponse`
217
+ def DescribeCloudRecording(request)
218
+ body = send_request('DescribeCloudRecording', request.serialize)
219
+ response = JSON.parse(body)
220
+ if response['Response'].key?('Error') == false
221
+ model = DescribeCloudRecordingResponse.new
222
+ model.deserialize(response['Response'])
223
+ model
224
+ else
225
+ code = response['Response']['Error']['Code']
226
+ message = response['Response']['Error']['Message']
227
+ reqid = response['Response']['RequestId']
228
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
229
+ end
230
+ rescue TencentCloud::Common::TencentCloudSDKException => e
231
+ raise e
232
+ rescue StandardError => e
233
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
234
+ end
235
+
153
236
  # 查询用户某次通话内的进退房,视频开关等详细事件。可查询14天内数据。
154
237
 
155
238
  # @param request: Request instance for DescribeDetailEvent.
@@ -377,6 +460,30 @@ module TencentCloud
377
460
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
378
461
  end
379
462
 
463
+ # 成功开启录制后,可以使用此接口来更新录制任务。仅在录制任务进行时有效,录制退出后更新将会返回错误。更新操作是全量覆盖,并不是增量更新的模式,也就是说每次更新都需要携带全量的信息。
464
+
465
+ # @param request: Request instance for ModifyCloudRecording.
466
+ # @type request: :class:`Tencentcloud::trtc::V20190722::ModifyCloudRecordingRequest`
467
+ # @rtype: :class:`Tencentcloud::trtc::V20190722::ModifyCloudRecordingResponse`
468
+ def ModifyCloudRecording(request)
469
+ body = send_request('ModifyCloudRecording', request.serialize)
470
+ response = JSON.parse(body)
471
+ if response['Response'].key?('Error') == false
472
+ model = ModifyCloudRecordingResponse.new
473
+ model.deserialize(response['Response'])
474
+ model
475
+ else
476
+ code = response['Response']['Error']['Code']
477
+ message = response['Response']['Error']['Message']
478
+ reqid = response['Response']['RequestId']
479
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
480
+ end
481
+ rescue TencentCloud::Common::TencentCloudSDKException => e
482
+ raise e
483
+ rescue StandardError => e
484
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
485
+ end
486
+
380
487
  # 如果您需要在 [云端混流转码](https://cloud.tencent.com/document/product/647/16827) 时频繁修改自定义背景图或水印素材,可通过此接口修改已上传的图片。无需频繁修改图片素材的场景,建议直接在 [控制台 > 应用管理 > 素材管理](https://cloud.tencent.com/document/product/647/50769) 中操作。
381
488
 
382
489
  # @param request: Request instance for ModifyPicture.
@@ -77,6 +77,181 @@ module TencentCloud
77
77
  end
78
78
  end
79
79
 
80
+ # 录制音频转码参数。
81
+ class AudioParams < TencentCloud::Common::AbstractModel
82
+ # @param SampleRate: 音频采样率:
83
+ # 1:48000Hz(默认);
84
+ # 2:44100Hz
85
+ # 3:16000Hz。
86
+ # @type SampleRate: Integer
87
+ # @param Channel: 声道数:
88
+ # 1:单身道;
89
+ # 2:双声道(默认)。
90
+ # @type Channel: Integer
91
+ # @param BitRate: 音频码率: 取值范围[32000, 128000] ,单位bps,默认64000bps。
92
+ # @type BitRate: Integer
93
+
94
+ attr_accessor :SampleRate, :Channel, :BitRate
95
+
96
+ def initialize(samplerate=nil, channel=nil, bitrate=nil)
97
+ @SampleRate = samplerate
98
+ @Channel = channel
99
+ @BitRate = bitrate
100
+ end
101
+
102
+ def deserialize(params)
103
+ @SampleRate = params['SampleRate']
104
+ @Channel = params['Channel']
105
+ @BitRate = params['BitRate']
106
+ end
107
+ end
108
+
109
+ # 第三方云存储的账号信息。
110
+ class CloudStorage < TencentCloud::Common::AbstractModel
111
+ # @param Vendor: 第三方云储存的供应商:
112
+ # 0:腾讯云存储 COS,暂不支持其他家。
113
+ # @type Vendor: Integer
114
+ # @param Region: 第三方云存储的地域信息。
115
+ # @type Region: String
116
+ # @param Bucket: 第三方存储桶信息。
117
+ # @type Bucket: String
118
+ # @param AccessKey: 第三方存储的access_key账号信息。
119
+ # @type AccessKey: String
120
+ # @param SecretKey: 第三方存储的secret_key账号信息。
121
+ # @type SecretKey: String
122
+ # @param FileNamePrefix: 第三方云存储bucket 的指定位置,由字符串数组组成。合法的字符串范围a~z,A~Z,0~9,举个例子,录制文件xxx.m3u8在 ["prefix1", "prefix2"]作用下,会变成prefix1/prefix2/TaskId/xxx.m3u8。
123
+ # @type FileNamePrefix: Array
124
+
125
+ attr_accessor :Vendor, :Region, :Bucket, :AccessKey, :SecretKey, :FileNamePrefix
126
+
127
+ def initialize(vendor=nil, region=nil, bucket=nil, accesskey=nil, secretkey=nil, filenameprefix=nil)
128
+ @Vendor = vendor
129
+ @Region = region
130
+ @Bucket = bucket
131
+ @AccessKey = accesskey
132
+ @SecretKey = secretkey
133
+ @FileNamePrefix = filenameprefix
134
+ end
135
+
136
+ def deserialize(params)
137
+ @Vendor = params['Vendor']
138
+ @Region = params['Region']
139
+ @Bucket = params['Bucket']
140
+ @AccessKey = params['AccessKey']
141
+ @SecretKey = params['SecretKey']
142
+ @FileNamePrefix = params['FileNamePrefix']
143
+ end
144
+ end
145
+
146
+ # 点播相关参数。
147
+ class CloudVod < TencentCloud::Common::AbstractModel
148
+ # @param TencentVod: 腾讯云点播相关参数。
149
+ # @type TencentVod: :class:`Tencentcloud::Trtc.v20190722.models.TencentVod`
150
+
151
+ attr_accessor :TencentVod
152
+
153
+ def initialize(tencentvod=nil)
154
+ @TencentVod = tencentvod
155
+ end
156
+
157
+ def deserialize(params)
158
+ unless params['TencentVod'].nil?
159
+ @TencentVod = TencentVod.new
160
+ @TencentVod.deserialize(params['TencentVod'])
161
+ end
162
+ end
163
+ end
164
+
165
+ # CreateCloudRecording请求参数结构体
166
+ class CreateCloudRecordingRequest < TencentCloud::Common::AbstractModel
167
+ # @param SdkAppId: TRTC的[SdkAppId](https://cloud.tencent.com/document/product/647/46351#sdkappid),和录制的房间所对应的SdkAppId相同。
168
+ # @type SdkAppId: Integer
169
+ # @param RoomId: TRTC的[RoomId](https://cloud.tencent.com/document/product/647/46351#roomid),录制的TRTC房间所对应的RoomId。
170
+ # @type RoomId: String
171
+ # @param UserId: 录制服务在TRTC房间使用的[UserId](https://cloud.tencent.com/document/product/647/46351#userid),注意这个userId不能与其他TRTC或者录制服务等已经使用的UserId重复,建议可以把房间ID作为userId的标识的一部分。
172
+ # @type UserId: String
173
+ # @param UserSig: 云端录制加入房间的用户签名,当前 UserId 对应的验证签名,相当于登录密码,具体计算方法请参考TRTC计算[UserSig](https://cloud.tencent.com/document/product/647/45910#UserSig)的方案。
174
+ # @type UserSig: String
175
+ # @param RecordParams: 云端录制控制参数。
176
+ # @type RecordParams: :class:`Tencentcloud::Trtc.v20190722.models.RecordParams`
177
+ # @param StorageParams: 云端录制文件上传到云存储的参数。
178
+ # @type StorageParams: :class:`Tencentcloud::Trtc.v20190722.models.StorageParams`
179
+ # @param RoomIdType: TRTC房间号的类型,必须和录制的房间所对应的RoomId类型相同:
180
+ # 0: 字符串类型的RoomId
181
+ # 1: 32位整型的RoomId(默认)
182
+ # @type RoomIdType: Integer
183
+ # @param MixTranscodeParams: 混流的转码参数,录制模式为混流的时候可以设置。
184
+ # @type MixTranscodeParams: :class:`Tencentcloud::Trtc.v20190722.models.MixTranscodeParams`
185
+ # @param MixLayoutParams: 混流的布局参数,录制模式为混流的时候可以设置。
186
+ # @type MixLayoutParams: :class:`Tencentcloud::Trtc.v20190722.models.MixLayoutParams`
187
+ # @param ResourceExpiredHour: 接口可以调用的时效性,从成功开启录制并获得任务ID后开始计算,超时后无法调用查询、更新和停止等接口,但是录制任务不会停止。 参数的单位是小时,默认72小时(3天),最大可设置720小时(30天),最小设置6小时。举例说明:如果不设置该参数,那么开始录制成功后,查询、更新和停止录制的调用时效为72个小时。
188
+ # @type ResourceExpiredHour: Integer
189
+ # @param PrivateMapKey: TRTC房间权限加密串,只有在TRTC控制台启用了高级权限控制的时候需要携带,在TRTC控制台如果开启高级权限控制后,TRTC 的后台服务系统会校验一个叫做 [PrivateMapKey](https://cloud.tencent.com/document/product/647/32240) 的“权限票据”,权限票据中包含了一个加密后的 RoomId 和一个加密后的“权限位列表”。由于 PrivateMapKey 中包含 RoomId,所以只提供了 UserSig 没有提供 PrivateMapKey 时,并不能进入指定的房间。
190
+ # @type PrivateMapKey: String
191
+
192
+ attr_accessor :SdkAppId, :RoomId, :UserId, :UserSig, :RecordParams, :StorageParams, :RoomIdType, :MixTranscodeParams, :MixLayoutParams, :ResourceExpiredHour, :PrivateMapKey
193
+
194
+ def initialize(sdkappid=nil, roomid=nil, userid=nil, usersig=nil, recordparams=nil, storageparams=nil, roomidtype=nil, mixtranscodeparams=nil, mixlayoutparams=nil, resourceexpiredhour=nil, privatemapkey=nil)
195
+ @SdkAppId = sdkappid
196
+ @RoomId = roomid
197
+ @UserId = userid
198
+ @UserSig = usersig
199
+ @RecordParams = recordparams
200
+ @StorageParams = storageparams
201
+ @RoomIdType = roomidtype
202
+ @MixTranscodeParams = mixtranscodeparams
203
+ @MixLayoutParams = mixlayoutparams
204
+ @ResourceExpiredHour = resourceexpiredhour
205
+ @PrivateMapKey = privatemapkey
206
+ end
207
+
208
+ def deserialize(params)
209
+ @SdkAppId = params['SdkAppId']
210
+ @RoomId = params['RoomId']
211
+ @UserId = params['UserId']
212
+ @UserSig = params['UserSig']
213
+ unless params['RecordParams'].nil?
214
+ @RecordParams = RecordParams.new
215
+ @RecordParams.deserialize(params['RecordParams'])
216
+ end
217
+ unless params['StorageParams'].nil?
218
+ @StorageParams = StorageParams.new
219
+ @StorageParams.deserialize(params['StorageParams'])
220
+ end
221
+ @RoomIdType = params['RoomIdType']
222
+ unless params['MixTranscodeParams'].nil?
223
+ @MixTranscodeParams = MixTranscodeParams.new
224
+ @MixTranscodeParams.deserialize(params['MixTranscodeParams'])
225
+ end
226
+ unless params['MixLayoutParams'].nil?
227
+ @MixLayoutParams = MixLayoutParams.new
228
+ @MixLayoutParams.deserialize(params['MixLayoutParams'])
229
+ end
230
+ @ResourceExpiredHour = params['ResourceExpiredHour']
231
+ @PrivateMapKey = params['PrivateMapKey']
232
+ end
233
+ end
234
+
235
+ # CreateCloudRecording返回参数结构体
236
+ class CreateCloudRecordingResponse < TencentCloud::Common::AbstractModel
237
+ # @param TaskId: 云录制服务分配的任务 ID。任务 ID 是对一次录制生命周期过程的唯一标识,结束录制时会失去意义。任务 ID需要业务保存下来,作为下次针对这个录制任务操作的参数。
238
+ # @type TaskId: String
239
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
240
+ # @type RequestId: String
241
+
242
+ attr_accessor :TaskId, :RequestId
243
+
244
+ def initialize(taskid=nil, requestid=nil)
245
+ @TaskId = taskid
246
+ @RequestId = requestid
247
+ end
248
+
249
+ def deserialize(params)
250
+ @TaskId = params['TaskId']
251
+ @RequestId = params['RequestId']
252
+ end
253
+ end
254
+
80
255
  # CreatePicture请求参数结构体
81
256
  class CreatePictureRequest < TencentCloud::Common::AbstractModel
82
257
  # @param SdkAppId: 应用id
@@ -205,6 +380,46 @@ module TencentCloud
205
380
  end
206
381
  end
207
382
 
383
+ # DeleteCloudRecording请求参数结构体
384
+ class DeleteCloudRecordingRequest < TencentCloud::Common::AbstractModel
385
+ # @param SdkAppId: TRTC的SDKAppId,和录制的房间所对应的SDKAppId相同。
386
+ # @type SdkAppId: Integer
387
+ # @param TaskId: 录制任务的唯一Id,在启动录制成功后会返回。
388
+ # @type TaskId: String
389
+
390
+ attr_accessor :SdkAppId, :TaskId
391
+
392
+ def initialize(sdkappid=nil, taskid=nil)
393
+ @SdkAppId = sdkappid
394
+ @TaskId = taskid
395
+ end
396
+
397
+ def deserialize(params)
398
+ @SdkAppId = params['SdkAppId']
399
+ @TaskId = params['TaskId']
400
+ end
401
+ end
402
+
403
+ # DeleteCloudRecording返回参数结构体
404
+ class DeleteCloudRecordingResponse < TencentCloud::Common::AbstractModel
405
+ # @param TaskId: 云录制服务分配的任务 ID。任务 ID 是对一次录制生命周期过程的唯一标识,结束录制时会失去意义。
406
+ # @type TaskId: String
407
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
408
+ # @type RequestId: String
409
+
410
+ attr_accessor :TaskId, :RequestId
411
+
412
+ def initialize(taskid=nil, requestid=nil)
413
+ @TaskId = taskid
414
+ @RequestId = requestid
415
+ end
416
+
417
+ def deserialize(params)
418
+ @TaskId = params['TaskId']
419
+ @RequestId = params['RequestId']
420
+ end
421
+ end
422
+
208
423
  # DeletePicture请求参数结构体
209
424
  class DeletePictureRequest < TencentCloud::Common::AbstractModel
210
425
  # @param PictureId: 图片id
@@ -401,6 +616,65 @@ module TencentCloud
401
616
  end
402
617
  end
403
618
 
619
+ # DescribeCloudRecording请求参数结构体
620
+ class DescribeCloudRecordingRequest < TencentCloud::Common::AbstractModel
621
+ # @param SdkAppId: TRTC的SDKAppId,和录制的房间所对应的SDKAppId相同。
622
+ # @type SdkAppId: Integer
623
+ # @param TaskId: 录制任务的唯一Id,在启动录制成功后会返回。
624
+ # @type TaskId: String
625
+
626
+ attr_accessor :SdkAppId, :TaskId
627
+
628
+ def initialize(sdkappid=nil, taskid=nil)
629
+ @SdkAppId = sdkappid
630
+ @TaskId = taskid
631
+ end
632
+
633
+ def deserialize(params)
634
+ @SdkAppId = params['SdkAppId']
635
+ @TaskId = params['TaskId']
636
+ end
637
+ end
638
+
639
+ # DescribeCloudRecording返回参数结构体
640
+ class DescribeCloudRecordingResponse < TencentCloud::Common::AbstractModel
641
+ # @param TaskId: 录制任务的唯一Id。
642
+ # @type TaskId: String
643
+ # @param Status: 云端录制任务的状态信息。
644
+ # Idle:表示当前录制任务空闲中
645
+ # InProgress:表示当前录制任务正在进行中。
646
+ # Exited:表示当前录制任务正在退出的过程中。
647
+ # @type Status: String
648
+ # @param StorageFileList: 录制文件信息。
649
+ # 注意:此字段可能返回 null,表示取不到有效值。
650
+ # @type StorageFileList: Array
651
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
652
+ # @type RequestId: String
653
+
654
+ attr_accessor :TaskId, :Status, :StorageFileList, :RequestId
655
+
656
+ def initialize(taskid=nil, status=nil, storagefilelist=nil, requestid=nil)
657
+ @TaskId = taskid
658
+ @Status = status
659
+ @StorageFileList = storagefilelist
660
+ @RequestId = requestid
661
+ end
662
+
663
+ def deserialize(params)
664
+ @TaskId = params['TaskId']
665
+ @Status = params['Status']
666
+ unless params['StorageFileList'].nil?
667
+ @StorageFileList = []
668
+ params['StorageFileList'].each do |i|
669
+ storagefile_tmp = StorageFile.new
670
+ storagefile_tmp.deserialize(i)
671
+ @StorageFileList << storagefile_tmp
672
+ end
673
+ end
674
+ @RequestId = params['RequestId']
675
+ end
676
+ end
677
+
404
678
  # DescribeDetailEvent请求参数结构体
405
679
  class DescribeDetailEventRequest < TencentCloud::Common::AbstractModel
406
680
  # @param CommId: 通话 ID(唯一标识一次通话): sdkappid_roomgString(房间号_createTime(房间创建时间,unix时间戳,单位s)。通过 DescribeRoomInformation(查询房间列表)接口获取。(链接:https://cloud.tencent.com/document/product/647/44050)
@@ -1085,6 +1359,227 @@ module TencentCloud
1085
1359
  end
1086
1360
  end
1087
1361
 
1362
+ # 用户自定义混流布局参数列表。
1363
+ class MixLayout < TencentCloud::Common::AbstractModel
1364
+ # @param Top: 画布上该画面左上角的 y 轴坐标,取值范围 [0, 1920],不能超过画布的高。
1365
+ # @type Top: Integer
1366
+ # @param Left: 画布上该画面左上角的 x 轴坐标,取值范围 [0, 1920],不能超过画布的宽。
1367
+ # @type Left: Integer
1368
+ # @param Width: 画布上该画面宽度的相对值,取值范围 [0, 1920],与Left相加不应超过画布的宽。
1369
+ # @type Width: Integer
1370
+ # @param Height: 画布上该画面高度的相对值,取值范围 [0, 1920],与Top相加不应超过画布的高。
1371
+ # @type Height: Integer
1372
+ # @param UserId: 字符串内容为待显示在该画面的主播对应的UserId,如果不指定,会按照主播加入房间的顺序匹配。
1373
+ # @type UserId: String
1374
+ # @param Alpha: 画布的透明度值,取值范围[0, 255]。0表示不透明,255表示全透明。默认值为0。
1375
+ # @type Alpha: Integer
1376
+ # @param RenderMode: 0 :拉伸模式,这个模式下整个视频内容会全部显示,并填满子画面,在源视频和目的视频宽高比不一致的时候,画面不会缺少内容,但是画面可能产生形变;
1377
+
1378
+ # 1 :剪裁模式(默认),这个模式下会严格按照目的视频的宽高比对源视频剪裁之后再拉伸,并填满子画面画布,在源视频和目的视频宽高比不一致的时候,画面保持不变形,但是会被剪裁;
1379
+
1380
+ # 2 :填黑模式,这个模式下会严格保持源视频的宽高比进行等比缩放,在源视频和目的视频宽高比不一致的时候,画面的上下侧边缘或者左右侧边缘会露出子画面画布的背景;
1381
+
1382
+ # 3 :智能拉伸模式,这个模式类似剪裁模式,区别是在源视频和目的视频宽高比不一致的时候,限制了最大剪裁比例为画面的宽度或者高度的20%;
1383
+ # @type RenderMode: Integer
1384
+ # @param MediaId: 对应订阅流的主辅路标识:
1385
+ # 0:主流(默认);
1386
+ # 1:辅流;
1387
+ # @type MediaId: Integer
1388
+ # @param ImageLayer: 该画布的图层顺序, 这个值越小表示图层越靠后。默认值为0。
1389
+ # @type ImageLayer: Integer
1390
+ # @param SubBackgroundImage: 下载的url地址, 只支持jpg, png,大小限制不超过5M,宽高比不一致的处理方案同 RenderMode。
1391
+ # @type SubBackgroundImage: String
1392
+
1393
+ attr_accessor :Top, :Left, :Width, :Height, :UserId, :Alpha, :RenderMode, :MediaId, :ImageLayer, :SubBackgroundImage
1394
+
1395
+ def initialize(top=nil, left=nil, width=nil, height=nil, userid=nil, alpha=nil, rendermode=nil, mediaid=nil, imagelayer=nil, subbackgroundimage=nil)
1396
+ @Top = top
1397
+ @Left = left
1398
+ @Width = width
1399
+ @Height = height
1400
+ @UserId = userid
1401
+ @Alpha = alpha
1402
+ @RenderMode = rendermode
1403
+ @MediaId = mediaid
1404
+ @ImageLayer = imagelayer
1405
+ @SubBackgroundImage = subbackgroundimage
1406
+ end
1407
+
1408
+ def deserialize(params)
1409
+ @Top = params['Top']
1410
+ @Left = params['Left']
1411
+ @Width = params['Width']
1412
+ @Height = params['Height']
1413
+ @UserId = params['UserId']
1414
+ @Alpha = params['Alpha']
1415
+ @RenderMode = params['RenderMode']
1416
+ @MediaId = params['MediaId']
1417
+ @ImageLayer = params['ImageLayer']
1418
+ @SubBackgroundImage = params['SubBackgroundImage']
1419
+ end
1420
+ end
1421
+
1422
+ # 录制的混流布局参数。
1423
+ class MixLayoutParams < TencentCloud::Common::AbstractModel
1424
+ # @param MixLayoutMode: 布局模式:
1425
+ # 1:悬浮布局;
1426
+ # 2:屏幕分享布局;
1427
+ # 3:九宫格布局(默认);
1428
+ # 4:自定义布局;
1429
+
1430
+ # 悬浮布局:默认第一个进入房间的主播(也可以指定一个主播)的视频画面会铺满整个屏幕。其他主播的视频画面从左下角开始依次按照进房顺序水平排列,显示为小画面,小画面悬浮于大画面之上。当画面数量小于等于17个时,每行4个(4 x 4排列)。当画面数量大于17个时,重新布局小画面为每行5个(5 x 5)排列。最多支持25个画面,如果用户只发送音频,仍然会占用画面位置。
1431
+
1432
+ # 屏幕分享布局:指定一个主播在屏幕左侧的大画面位置(如果不指定,那么大画面位置为背景色),其他主播自上而下依次垂直排列于右侧。当画面数量少于17个的时候,右侧每列最多8人,最多占据两列。当画面数量多于17个的时候,超过17个画面的主播从左下角开始依次水平排列。最多支持25个画面,如果主播只发送音频,仍然会占用画面位置。
1433
+
1434
+ # 九宫格布局:根据主播的数量自动调整每个画面的大小,每个主播的画面大小一致,最多支持25个画面。
1435
+
1436
+ # 自定义布局:根据需要在MixLayoutList内定制每个主播画面的布局。
1437
+ # @type MixLayoutMode: Integer
1438
+ # @param MixLayoutList: 如果MixLayoutMode 选择为4自定义布局模式的话,设置此参数为每个主播所对应的布局画面的详细信息,最大不超过25个。
1439
+ # @type MixLayoutList: Array
1440
+ # @param BackGroundColor: 录制背景颜色,RGB的颜色表的16进制表示,每个颜色通过8bit长度标识,默认为黑色。比如橙色对应的RGB为 R:255 G:165 B:0, 那么对应的字符串描述为#FFA500,格式规范:‘#‘开头,后面跟固定RGB的颜色值
1441
+ # @type BackGroundColor: String
1442
+ # @param MaxResolutionUserId: 在布局模式为1:悬浮布局和 2:屏幕分享布局时,设定为显示大视频画面的UserId。不填的话:悬浮布局默认是第一个进房间的主播,屏幕分享布局默认是背景色
1443
+ # @type MaxResolutionUserId: String
1444
+ # @param MediaId: 主辅路标识,
1445
+ # 0:主流(默认);
1446
+ # 1:辅流(屏幕分享);
1447
+ # 这个位置的MediaId代表的是对应MaxResolutionUserId的主辅路,MixLayoutList内代表的是自定义用户的主辅路。
1448
+ # @type MediaId: Integer
1449
+ # @param BackgroundImageUrl: 下载的url地址, 只支持jpg, png,大小限制不超过5M。
1450
+ # @type BackgroundImageUrl: String
1451
+ # @param PlaceHolderMode: 设置为1时代表启用占位图功能,0时代表不启用占位图功能,默认为0。启用占位图功能时,在预设位置的用户没有上行视频时可显示对应的占位图。
1452
+ # @type PlaceHolderMode: Integer
1453
+ # @param BackgroundImageRenderMode: 背景画面宽高比不一致的时候处理方案,与MixLayoufList定义的RenderMode一致。
1454
+ # @type BackgroundImageRenderMode: Integer
1455
+ # @param DefaultSubBackgroundImage: 下载的url地址, 只支持jpg, png,大小限制不超过5M,宽高比不一致的处理方案同 RenderMode。
1456
+ # @type DefaultSubBackgroundImage: String
1457
+ # @param WaterMarkList: 水印布局参数, 最多支持25个。
1458
+ # @type WaterMarkList: Array
1459
+
1460
+ attr_accessor :MixLayoutMode, :MixLayoutList, :BackGroundColor, :MaxResolutionUserId, :MediaId, :BackgroundImageUrl, :PlaceHolderMode, :BackgroundImageRenderMode, :DefaultSubBackgroundImage, :WaterMarkList
1461
+
1462
+ def initialize(mixlayoutmode=nil, mixlayoutlist=nil, backgroundcolor=nil, maxresolutionuserid=nil, mediaid=nil, backgroundimageurl=nil, placeholdermode=nil, backgroundimagerendermode=nil, defaultsubbackgroundimage=nil, watermarklist=nil)
1463
+ @MixLayoutMode = mixlayoutmode
1464
+ @MixLayoutList = mixlayoutlist
1465
+ @BackGroundColor = backgroundcolor
1466
+ @MaxResolutionUserId = maxresolutionuserid
1467
+ @MediaId = mediaid
1468
+ @BackgroundImageUrl = backgroundimageurl
1469
+ @PlaceHolderMode = placeholdermode
1470
+ @BackgroundImageRenderMode = backgroundimagerendermode
1471
+ @DefaultSubBackgroundImage = defaultsubbackgroundimage
1472
+ @WaterMarkList = watermarklist
1473
+ end
1474
+
1475
+ def deserialize(params)
1476
+ @MixLayoutMode = params['MixLayoutMode']
1477
+ unless params['MixLayoutList'].nil?
1478
+ @MixLayoutList = []
1479
+ params['MixLayoutList'].each do |i|
1480
+ mixlayout_tmp = MixLayout.new
1481
+ mixlayout_tmp.deserialize(i)
1482
+ @MixLayoutList << mixlayout_tmp
1483
+ end
1484
+ end
1485
+ @BackGroundColor = params['BackGroundColor']
1486
+ @MaxResolutionUserId = params['MaxResolutionUserId']
1487
+ @MediaId = params['MediaId']
1488
+ @BackgroundImageUrl = params['BackgroundImageUrl']
1489
+ @PlaceHolderMode = params['PlaceHolderMode']
1490
+ @BackgroundImageRenderMode = params['BackgroundImageRenderMode']
1491
+ @DefaultSubBackgroundImage = params['DefaultSubBackgroundImage']
1492
+ unless params['WaterMarkList'].nil?
1493
+ @WaterMarkList = []
1494
+ params['WaterMarkList'].each do |i|
1495
+ watermark_tmp = WaterMark.new
1496
+ watermark_tmp.deserialize(i)
1497
+ @WaterMarkList << watermark_tmp
1498
+ end
1499
+ end
1500
+ end
1501
+ end
1502
+
1503
+ # 录制的音视频转码参数。
1504
+ class MixTranscodeParams < TencentCloud::Common::AbstractModel
1505
+ # @param VideoParams: 录制视频转码参数,注意如果设置了这个参数,那么里面的字段都是必填的,没有默认值,如果不填这个参数,那么取值为默认值。
1506
+ # @type VideoParams: :class:`Tencentcloud::Trtc.v20190722.models.VideoParams`
1507
+ # @param AudioParams: 录制音频转码参数,注意如果设置了这个参数,那么里面的字段都是必填的,没有默认值,如果不填这个参数,那么取值为默认值。
1508
+ # @type AudioParams: :class:`Tencentcloud::Trtc.v20190722.models.AudioParams`
1509
+
1510
+ attr_accessor :VideoParams, :AudioParams
1511
+
1512
+ def initialize(videoparams=nil, audioparams=nil)
1513
+ @VideoParams = videoparams
1514
+ @AudioParams = audioparams
1515
+ end
1516
+
1517
+ def deserialize(params)
1518
+ unless params['VideoParams'].nil?
1519
+ @VideoParams = VideoParams.new
1520
+ @VideoParams.deserialize(params['VideoParams'])
1521
+ end
1522
+ unless params['AudioParams'].nil?
1523
+ @AudioParams = AudioParams.new
1524
+ @AudioParams.deserialize(params['AudioParams'])
1525
+ end
1526
+ end
1527
+ end
1528
+
1529
+ # ModifyCloudRecording请求参数结构体
1530
+ class ModifyCloudRecordingRequest < TencentCloud::Common::AbstractModel
1531
+ # @param SdkAppId: TRTC的SDKAppId,和录制的房间所对应的SDKAppId相同。
1532
+ # @type SdkAppId: Integer
1533
+ # @param TaskId: 录制任务的唯一Id,在启动录制成功后会返回。
1534
+ # @type TaskId: String
1535
+ # @param MixLayoutParams: 需要更新的混流的布局参数。
1536
+ # @type MixLayoutParams: :class:`Tencentcloud::Trtc.v20190722.models.MixLayoutParams`
1537
+ # @param SubscribeStreamUserIds: 指定订阅流白名单或者黑名单。
1538
+ # @type SubscribeStreamUserIds: :class:`Tencentcloud::Trtc.v20190722.models.SubscribeStreamUserIds`
1539
+
1540
+ attr_accessor :SdkAppId, :TaskId, :MixLayoutParams, :SubscribeStreamUserIds
1541
+
1542
+ def initialize(sdkappid=nil, taskid=nil, mixlayoutparams=nil, subscribestreamuserids=nil)
1543
+ @SdkAppId = sdkappid
1544
+ @TaskId = taskid
1545
+ @MixLayoutParams = mixlayoutparams
1546
+ @SubscribeStreamUserIds = subscribestreamuserids
1547
+ end
1548
+
1549
+ def deserialize(params)
1550
+ @SdkAppId = params['SdkAppId']
1551
+ @TaskId = params['TaskId']
1552
+ unless params['MixLayoutParams'].nil?
1553
+ @MixLayoutParams = MixLayoutParams.new
1554
+ @MixLayoutParams.deserialize(params['MixLayoutParams'])
1555
+ end
1556
+ unless params['SubscribeStreamUserIds'].nil?
1557
+ @SubscribeStreamUserIds = SubscribeStreamUserIds.new
1558
+ @SubscribeStreamUserIds.deserialize(params['SubscribeStreamUserIds'])
1559
+ end
1560
+ end
1561
+ end
1562
+
1563
+ # ModifyCloudRecording返回参数结构体
1564
+ class ModifyCloudRecordingResponse < TencentCloud::Common::AbstractModel
1565
+ # @param TaskId: 云录制服务分配的任务 ID。任务 ID 是对一次录制生命周期过程的唯一标识,结束录制时会失去意义。
1566
+ # @type TaskId: String
1567
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1568
+ # @type RequestId: String
1569
+
1570
+ attr_accessor :TaskId, :RequestId
1571
+
1572
+ def initialize(taskid=nil, requestid=nil)
1573
+ @TaskId = taskid
1574
+ @RequestId = requestid
1575
+ end
1576
+
1577
+ def deserialize(params)
1578
+ @TaskId = params['TaskId']
1579
+ @RequestId = params['RequestId']
1580
+ end
1581
+ end
1582
+
1088
1583
  # ModifyPicture请求参数结构体
1089
1584
  class ModifyPictureRequest < TencentCloud::Common::AbstractModel
1090
1585
  # @param PictureId: 图片id
@@ -1340,6 +1835,46 @@ module TencentCloud
1340
1835
  end
1341
1836
  end
1342
1837
 
1838
+ # 云端录制控制参数。
1839
+ class RecordParams < TencentCloud::Common::AbstractModel
1840
+ # @param RecordMode: 录制模式:
1841
+ # 1:单流录制,分别录制房间的订阅UserId的音频和视频,将录制文件(M3U8/TS)上传至云存储;
1842
+ # 2:混流录制,将房间内订阅UserId的音视频混录成一个音视频文件,将录制文件[M3U8/TS]上传至云存储;
1843
+ # @type RecordMode: Integer
1844
+ # @param MaxIdleTime: 房间内持续没有主播的状态超过MaxIdleTime的时长,自动停止录制,单位:秒。默认值为 30 秒,该值需大于等于 5秒,且小于等于 86400秒(24小时)。
1845
+ # @type MaxIdleTime: Integer
1846
+ # @param StreamType: 录制的媒体流类型:
1847
+ # 0:录制音频+视频流(默认);
1848
+ # 1:仅录制音频流;
1849
+ # 2:仅录制视频流,
1850
+ # @type StreamType: Integer
1851
+ # @param SubscribeStreamUserIds: 指定订阅流白名单或者黑名单。
1852
+ # @type SubscribeStreamUserIds: :class:`Tencentcloud::Trtc.v20190722.models.SubscribeStreamUserIds`
1853
+ # @param OutputFormat: 输出文件的格式。0:(默认)输出文件为hls格式。1:输出文件格式为hls+mp4(hls录制完成后转mp4文件)
1854
+ # @type OutputFormat: Integer
1855
+
1856
+ attr_accessor :RecordMode, :MaxIdleTime, :StreamType, :SubscribeStreamUserIds, :OutputFormat
1857
+
1858
+ def initialize(recordmode=nil, maxidletime=nil, streamtype=nil, subscribestreamuserids=nil, outputformat=nil)
1859
+ @RecordMode = recordmode
1860
+ @MaxIdleTime = maxidletime
1861
+ @StreamType = streamtype
1862
+ @SubscribeStreamUserIds = subscribestreamuserids
1863
+ @OutputFormat = outputformat
1864
+ end
1865
+
1866
+ def deserialize(params)
1867
+ @RecordMode = params['RecordMode']
1868
+ @MaxIdleTime = params['MaxIdleTime']
1869
+ @StreamType = params['StreamType']
1870
+ unless params['SubscribeStreamUserIds'].nil?
1871
+ @SubscribeStreamUserIds = SubscribeStreamUserIds.new
1872
+ @SubscribeStreamUserIds.deserialize(params['SubscribeStreamUserIds'])
1873
+ end
1874
+ @OutputFormat = params['OutputFormat']
1875
+ end
1876
+ end
1877
+
1343
1878
  # 录制的使用信息。
1344
1879
  class RecordUsage < TencentCloud::Common::AbstractModel
1345
1880
  # @param TimeKey: 本组数据对应的时间点,格式如:2020-09-07或2020-09-07 00:05:05。
@@ -1815,6 +2350,134 @@ module TencentCloud
1815
2350
  end
1816
2351
  end
1817
2352
 
2353
+ # 云端录制查询接口,录制文件的信息
2354
+ class StorageFile < TencentCloud::Common::AbstractModel
2355
+ # @param UserId: 录制文件对应的UserId,如果是混流的话的这里返回的是空串。
2356
+ # 注意:此字段可能返回 null,表示取不到有效值。
2357
+ # @type UserId: String
2358
+ # @param FileName: 录制索引文件名。
2359
+ # @type FileName: String
2360
+ # @param TrackType: 录制文件流信息。
2361
+ # video:视频录制文件
2362
+ # audio:音频录制文件
2363
+ # audio_video:音视频录制文件
2364
+ # 注意:此字段可能返回 null,表示取不到有效值。
2365
+ # @type TrackType: String
2366
+ # @param BeginTimeStamp: 录制文件开始Unix时间戳。
2367
+ # @type BeginTimeStamp: Integer
2368
+
2369
+ attr_accessor :UserId, :FileName, :TrackType, :BeginTimeStamp
2370
+
2371
+ def initialize(userid=nil, filename=nil, tracktype=nil, begintimestamp=nil)
2372
+ @UserId = userid
2373
+ @FileName = filename
2374
+ @TrackType = tracktype
2375
+ @BeginTimeStamp = begintimestamp
2376
+ end
2377
+
2378
+ def deserialize(params)
2379
+ @UserId = params['UserId']
2380
+ @FileName = params['FileName']
2381
+ @TrackType = params['TrackType']
2382
+ @BeginTimeStamp = params['BeginTimeStamp']
2383
+ end
2384
+ end
2385
+
2386
+ # 第三方存储参数。
2387
+ class StorageParams < TencentCloud::Common::AbstractModel
2388
+ # @param CloudStorage: 第三方云存储的账号信息。
2389
+ # @type CloudStorage: :class:`Tencentcloud::Trtc.v20190722.models.CloudStorage`
2390
+ # @param CloudVod: 第三方云点播的账号信息。
2391
+ # @type CloudVod: :class:`Tencentcloud::Trtc.v20190722.models.CloudVod`
2392
+
2393
+ attr_accessor :CloudStorage, :CloudVod
2394
+
2395
+ def initialize(cloudstorage=nil, cloudvod=nil)
2396
+ @CloudStorage = cloudstorage
2397
+ @CloudVod = cloudvod
2398
+ end
2399
+
2400
+ def deserialize(params)
2401
+ unless params['CloudStorage'].nil?
2402
+ @CloudStorage = CloudStorage.new
2403
+ @CloudStorage.deserialize(params['CloudStorage'])
2404
+ end
2405
+ unless params['CloudVod'].nil?
2406
+ @CloudVod = CloudVod.new
2407
+ @CloudVod.deserialize(params['CloudVod'])
2408
+ end
2409
+ end
2410
+ end
2411
+
2412
+ # 指定订阅流白名单或者黑名单,音频的白名单和音频黑名单不能同时设置,视频亦然。同时实际并发订阅的媒体流路数最大支持25路流,混流场景下视频的多画面最大支持24画面。
2413
+ class SubscribeStreamUserIds < TencentCloud::Common::AbstractModel
2414
+ # @param SubscribeAudioUserIds: 订阅音频流白名单,指定订阅哪几个UserId的音频流,例如["1", "2", "3"], 代表订阅UserId 1,2,3的音频流,默认不填订阅房间内所有的音频流,订阅列表用户数不超过32。
2415
+ # @type SubscribeAudioUserIds: Array
2416
+ # @param UnSubscribeAudioUserIds: 订阅音频流黑名单,指定不订阅哪几个UserId的音频流,例如["1", "2", "3"], 代表不订阅UserId 1,2,3的音频流,默认不填订阅房间内所有音频流,订阅列表用户数不超过32。
2417
+ # @type UnSubscribeAudioUserIds: Array
2418
+ # @param SubscribeVideoUserIds: 订阅视频流白名单,指定订阅哪几个UserId的视频流,例如["1", "2", "3"], 代表订阅UserId 1,2,3的视频流,默认不填订阅房间内所有视频流,订阅列表用户数不超过32。
2419
+ # @type SubscribeVideoUserIds: Array
2420
+ # @param UnSubscribeVideoUserIds: 订阅视频流黑名单,指定不订阅哪几个UserId的视频流,例如["1", "2", "3"], 代表不订阅UserId 1,2,3的视频流,默认不填订阅房间内所有视频流,订阅列表用户数不超过32。
2421
+ # @type UnSubscribeVideoUserIds: Array
2422
+
2423
+ attr_accessor :SubscribeAudioUserIds, :UnSubscribeAudioUserIds, :SubscribeVideoUserIds, :UnSubscribeVideoUserIds
2424
+
2425
+ def initialize(subscribeaudiouserids=nil, unsubscribeaudiouserids=nil, subscribevideouserids=nil, unsubscribevideouserids=nil)
2426
+ @SubscribeAudioUserIds = subscribeaudiouserids
2427
+ @UnSubscribeAudioUserIds = unsubscribeaudiouserids
2428
+ @SubscribeVideoUserIds = subscribevideouserids
2429
+ @UnSubscribeVideoUserIds = unsubscribevideouserids
2430
+ end
2431
+
2432
+ def deserialize(params)
2433
+ @SubscribeAudioUserIds = params['SubscribeAudioUserIds']
2434
+ @UnSubscribeAudioUserIds = params['UnSubscribeAudioUserIds']
2435
+ @SubscribeVideoUserIds = params['SubscribeVideoUserIds']
2436
+ @UnSubscribeVideoUserIds = params['UnSubscribeVideoUserIds']
2437
+ end
2438
+ end
2439
+
2440
+ # 腾讯云点播相关参数。
2441
+ class TencentVod < TencentCloud::Common::AbstractModel
2442
+ # @param Procedure: 媒体后续任务处理操作,即完成媒体上传后,可自动发起任务流操作。参数值为任务流模板名,云点播支持 创建任务流模板 并为模板命名。
2443
+ # @type Procedure: String
2444
+ # @param ExpireTime: 媒体文件过期时间,为当前时间的绝对过期时间;保存一天,就填"86400",永久保存就填"0",默认永久保存。
2445
+ # @type ExpireTime: Integer
2446
+ # @param StorageRegion: 指定上传园区,仅适用于对上传地域有特殊需求的用户。
2447
+ # @type StorageRegion: String
2448
+ # @param ClassId: 分类ID,用于对媒体进行分类管理,可通过 创建分类 接口,创建分类,获得分类 ID。
2449
+ # 默认值:0,表示其他分类。
2450
+ # @type ClassId: Integer
2451
+ # @param SubAppId: 点播 子应用 ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
2452
+ # @type SubAppId: Integer
2453
+ # @param SessionContext: 任务流上下文,任务完成回调时透传。
2454
+ # @type SessionContext: String
2455
+ # @param SourceContext: 上传上下文,上传完成回调时透传。
2456
+ # @type SourceContext: String
2457
+
2458
+ attr_accessor :Procedure, :ExpireTime, :StorageRegion, :ClassId, :SubAppId, :SessionContext, :SourceContext
2459
+
2460
+ def initialize(procedure=nil, expiretime=nil, storageregion=nil, classid=nil, subappid=nil, sessioncontext=nil, sourcecontext=nil)
2461
+ @Procedure = procedure
2462
+ @ExpireTime = expiretime
2463
+ @StorageRegion = storageregion
2464
+ @ClassId = classid
2465
+ @SubAppId = subappid
2466
+ @SessionContext = sessioncontext
2467
+ @SourceContext = sourcecontext
2468
+ end
2469
+
2470
+ def deserialize(params)
2471
+ @Procedure = params['Procedure']
2472
+ @ExpireTime = params['ExpireTime']
2473
+ @StorageRegion = params['StorageRegion']
2474
+ @ClassId = params['ClassId']
2475
+ @SubAppId = params['SubAppId']
2476
+ @SessionContext = params['SessionContext']
2477
+ @SourceContext = params['SourceContext']
2478
+ end
2479
+ end
2480
+
1818
2481
  # 返回的质量数据,时间:值
1819
2482
  class TimeValue < TencentCloud::Common::AbstractModel
1820
2483
  # @param Time: 时间,unix时间戳(1590065877s)
@@ -1879,6 +2542,93 @@ module TencentCloud
1879
2542
  end
1880
2543
  end
1881
2544
 
2545
+ # 录制视频转码参数。
2546
+ class VideoParams < TencentCloud::Common::AbstractModel
2547
+ # @param Width: 视频的宽度值,单位为像素,默认值360。不能超过1920,与height的乘积不能超过1920*1080。
2548
+ # @type Width: Integer
2549
+ # @param Height: 视频的高度值,单位为像素,默认值640。不能超过1920,与width的乘积不能超过1920*1080。
2550
+ # @type Height: Integer
2551
+ # @param Fps: 视频的帧率,范围[1, 60],默认15。
2552
+ # @type Fps: Integer
2553
+ # @param BitRate: 视频的码率,单位是bps,范围[64000, 8192000],默认550000bps。
2554
+ # @type BitRate: Integer
2555
+ # @param Gop: 视频关键帧时间间隔,单位秒,默认值10秒。
2556
+ # @type Gop: Integer
2557
+
2558
+ attr_accessor :Width, :Height, :Fps, :BitRate, :Gop
2559
+
2560
+ def initialize(width=nil, height=nil, fps=nil, bitrate=nil, gop=nil)
2561
+ @Width = width
2562
+ @Height = height
2563
+ @Fps = fps
2564
+ @BitRate = bitrate
2565
+ @Gop = gop
2566
+ end
2567
+
2568
+ def deserialize(params)
2569
+ @Width = params['Width']
2570
+ @Height = params['Height']
2571
+ @Fps = params['Fps']
2572
+ @BitRate = params['BitRate']
2573
+ @Gop = params['Gop']
2574
+ end
2575
+ end
2576
+
2577
+ # 水印布局参数
2578
+ class WaterMark < TencentCloud::Common::AbstractModel
2579
+ # @param WaterMarkType: 水印类型,0为图片(默认),1为文字(暂不支持)。
2580
+ # @type WaterMarkType: Integer
2581
+ # @param WaterMarkImage: 水印为图片时的参数列表,水印为图片时校验必填。
2582
+ # @type WaterMarkImage: :class:`Tencentcloud::Trtc.v20190722.models.WaterMarkImage`
2583
+
2584
+ attr_accessor :WaterMarkType, :WaterMarkImage
2585
+
2586
+ def initialize(watermarktype=nil, watermarkimage=nil)
2587
+ @WaterMarkType = watermarktype
2588
+ @WaterMarkImage = watermarkimage
2589
+ end
2590
+
2591
+ def deserialize(params)
2592
+ @WaterMarkType = params['WaterMarkType']
2593
+ unless params['WaterMarkImage'].nil?
2594
+ @WaterMarkImage = WaterMarkImage.new
2595
+ @WaterMarkImage.deserialize(params['WaterMarkImage'])
2596
+ end
2597
+ end
2598
+ end
2599
+
2600
+ # 水印类型为图片的参数列表
2601
+ class WaterMarkImage < TencentCloud::Common::AbstractModel
2602
+ # @param WaterMarkUrl: 下载的url地址, 只支持jpg, png,大小限制不超过5M。
2603
+ # @type WaterMarkUrl: String
2604
+ # @param Top: 画布上该画面左上角的 y 轴坐标,取值范围 [0, 2560],不能超过画布的高。
2605
+ # @type Top: Integer
2606
+ # @param Left: 画布上该画面左上角的 x 轴坐标,取值范围 [0, 2560],不能超过画布的宽。
2607
+ # @type Left: Integer
2608
+ # @param Width: 画布上该画面宽度的相对值,取值范围 [0, 2560],与Left相加不应超过画布的宽。
2609
+ # @type Width: Integer
2610
+ # @param Height: 画布上该画面高度的相对值,取值范围 [0, 2560],与Top相加不应超过画布的高。
2611
+ # @type Height: Integer
2612
+
2613
+ attr_accessor :WaterMarkUrl, :Top, :Left, :Width, :Height
2614
+
2615
+ def initialize(watermarkurl=nil, top=nil, left=nil, width=nil, height=nil)
2616
+ @WaterMarkUrl = watermarkurl
2617
+ @Top = top
2618
+ @Left = left
2619
+ @Width = width
2620
+ @Height = height
2621
+ end
2622
+
2623
+ def deserialize(params)
2624
+ @WaterMarkUrl = params['WaterMarkUrl']
2625
+ @Top = params['Top']
2626
+ @Left = params['Left']
2627
+ @Width = params['Width']
2628
+ @Height = params['Height']
2629
+ end
2630
+ end
2631
+
1882
2632
  # MCU混流水印参数
1883
2633
  class WaterMarkParams < TencentCloud::Common::AbstractModel
1884
2634
  # @param WaterMarkId: 混流-水印图片ID。取值为实时音视频控制台上传的图片ID。
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-trtc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.312
4
+ version: 1.0.313
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-15 00:00:00.000000000 Z
11
+ date: 2022-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common