tencentcloud-sdk-trtc 1.0.341 → 1.0.344

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: 4616183cfff309ad671b1ce556854eba8a371236
4
- data.tar.gz: 10599fa4bd85f607e809076cb07a371bacbfc189
3
+ metadata.gz: ac73f09be101a8121f0db3336c313e6f93d5c77f
4
+ data.tar.gz: d3b6c38ff2edcb99a328dd047392e42c00a79456
5
5
  SHA512:
6
- metadata.gz: dd39430aa9b5f85e27351fafe114963d5821661018cff9859c41cbf760a4b72cb9473968b019128b46fe91b7e8df2658a6c4ab678ea73b155e4ca0067a7cce94
7
- data.tar.gz: b38f116899155bb4dd53ceb2387791b3c8a5ac582ebd7908a7129a676bcafba55e545bc9047782dd9bdf44ba23ef0f525cbfd4a97753b14a218d2ef15951bb78
6
+ metadata.gz: 86ad956b339da0cd7960f87db218a9a5bb79102c11142c8e148de6e41f293033fc2046e5efe82ea488fb9d5c37e2fdf3ff823386994ab948013145d8255edaff
7
+ data.tar.gz: ce798e0a7e8e65f2acdcf7106d00b2f89726f9ea075f31ae8b726bcce4a2f99fb115b93becb97625d9d0633e2ac84f952c67d9edd9466ad1154bd9c6c5cf5c0d
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.341
1
+ 1.0.344
@@ -29,41 +29,6 @@ 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
-
67
32
  # 如果您需要在 [云端混流转码](https://cloud.tencent.com/document/product/647/16827) 时频繁新增自定义背景图或水印,可通过此接口上传新的图片素材。无需频繁新增图片的场景,建议直接在 [控制台 > 应用管理 > 素材管理](https://cloud.tencent.com/document/product/647/50769) 中操作。
68
33
 
69
34
  # @param request: Request instance for CreatePicture.
@@ -112,30 +77,6 @@ module TencentCloud
112
77
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
113
78
  end
114
79
 
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
-
139
80
  # 如果您需要在 [云端混流转码](https://cloud.tencent.com/document/product/647/16827) 时频繁删除自定义背景图或水印,可通过此接口删除已上传的图片。无需频繁删除图片的场景,建议直接在 [控制台 > 应用管理 > 素材管理](https://cloud.tencent.com/document/product/647/50769) 中操作。
140
81
 
141
82
  # @param request: Request instance for DeletePicture.
@@ -209,30 +150,6 @@ module TencentCloud
209
150
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
210
151
  end
211
152
 
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
-
236
153
  # 查询用户某次通话内的进退房,视频开关等详细事件。可查询14天内数据。
237
154
 
238
155
  # @param request: Request instance for DescribeDetailEvent.
@@ -484,30 +401,6 @@ module TencentCloud
484
401
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
485
402
  end
486
403
 
487
- # 成功开启录制后,可以使用此接口来更新录制任务。仅在录制任务进行时有效,录制退出后更新将会返回错误。更新操作是全量覆盖,并不是增量更新的模式,也就是说每次更新都需要携带全量的信息。
488
-
489
- # @param request: Request instance for ModifyCloudRecording.
490
- # @type request: :class:`Tencentcloud::trtc::V20190722::ModifyCloudRecordingRequest`
491
- # @rtype: :class:`Tencentcloud::trtc::V20190722::ModifyCloudRecordingResponse`
492
- def ModifyCloudRecording(request)
493
- body = send_request('ModifyCloudRecording', request.serialize)
494
- response = JSON.parse(body)
495
- if response['Response'].key?('Error') == false
496
- model = ModifyCloudRecordingResponse.new
497
- model.deserialize(response['Response'])
498
- model
499
- else
500
- code = response['Response']['Error']['Code']
501
- message = response['Response']['Error']['Message']
502
- reqid = response['Response']['RequestId']
503
- raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
504
- end
505
- rescue TencentCloud::Common::TencentCloudSDKException => e
506
- raise e
507
- rescue StandardError => e
508
- raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
509
- end
510
-
511
404
  # 如果您需要在 [云端混流转码](https://cloud.tencent.com/document/product/647/16827) 时频繁修改自定义背景图或水印素材,可通过此接口修改已上传的图片。无需频繁修改图片素材的场景,建议直接在 [控制台 > 应用管理 > 素材管理](https://cloud.tencent.com/document/product/647/50769) 中操作。
512
405
 
513
406
  # @param request: Request instance for ModifyPicture.
@@ -77,181 +77,6 @@ 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
-
255
80
  # CreatePicture请求参数结构体
256
81
  class CreatePictureRequest < TencentCloud::Common::AbstractModel
257
82
  # @param SdkAppId: 应用id
@@ -380,46 +205,6 @@ module TencentCloud
380
205
  end
381
206
  end
382
207
 
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
-
423
208
  # DeletePicture请求参数结构体
424
209
  class DeletePictureRequest < TencentCloud::Common::AbstractModel
425
210
  # @param PictureId: 图片id
@@ -616,65 +401,6 @@ module TencentCloud
616
401
  end
617
402
  end
618
403
 
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
-
678
404
  # DescribeDetailEvent请求参数结构体
679
405
  class DescribeDetailEventRequest < TencentCloud::Common::AbstractModel
680
406
  # @param CommId: 通话 ID(唯一标识一次通话): sdkappid_roomgString(房间号_createTime(房间创建时间,unix时间戳,单位s)。通过 DescribeRoomInformation(查询房间列表)接口获取。(链接:https://cloud.tencent.com/document/product/647/44050)
@@ -1418,227 +1144,6 @@ module TencentCloud
1418
1144
  end
1419
1145
  end
1420
1146
 
1421
- # 用户自定义混流布局参数列表。
1422
- class MixLayout < TencentCloud::Common::AbstractModel
1423
- # @param Top: 画布上该画面左上角的 y 轴坐标,取值范围 [0, 1920],不能超过画布的高。
1424
- # @type Top: Integer
1425
- # @param Left: 画布上该画面左上角的 x 轴坐标,取值范围 [0, 1920],不能超过画布的宽。
1426
- # @type Left: Integer
1427
- # @param Width: 画布上该画面宽度的相对值,取值范围 [0, 1920],与Left相加不应超过画布的宽。
1428
- # @type Width: Integer
1429
- # @param Height: 画布上该画面高度的相对值,取值范围 [0, 1920],与Top相加不应超过画布的高。
1430
- # @type Height: Integer
1431
- # @param UserId: 字符串内容为待显示在该画面的主播对应的UserId,如果不指定,会按照主播加入房间的顺序匹配。
1432
- # @type UserId: String
1433
- # @param Alpha: 画布的透明度值,取值范围[0, 255]。0表示不透明,255表示全透明。默认值为0。
1434
- # @type Alpha: Integer
1435
- # @param RenderMode: 0 :拉伸模式,这个模式下整个视频内容会全部显示,并填满子画面,在源视频和目的视频宽高比不一致的时候,画面不会缺少内容,但是画面可能产生形变;
1436
-
1437
- # 1 :剪裁模式(默认),这个模式下会严格按照目的视频的宽高比对源视频剪裁之后再拉伸,并填满子画面画布,在源视频和目的视频宽高比不一致的时候,画面保持不变形,但是会被剪裁;
1438
-
1439
- # 2 :填黑模式,这个模式下会严格保持源视频的宽高比进行等比缩放,在源视频和目的视频宽高比不一致的时候,画面的上下侧边缘或者左右侧边缘会露出子画面画布的背景;
1440
-
1441
- # 3 :智能拉伸模式,这个模式类似剪裁模式,区别是在源视频和目的视频宽高比不一致的时候,限制了最大剪裁比例为画面的宽度或者高度的20%;
1442
- # @type RenderMode: Integer
1443
- # @param MediaId: 对应订阅流的主辅路标识:
1444
- # 0:主流(默认);
1445
- # 1:辅流;
1446
- # @type MediaId: Integer
1447
- # @param ImageLayer: 该画布的图层顺序, 这个值越小表示图层越靠后。默认值为0。
1448
- # @type ImageLayer: Integer
1449
- # @param SubBackgroundImage: 下载的url地址, 只支持jpg, png,大小限制不超过5M,宽高比不一致的处理方案同 RenderMode。
1450
- # @type SubBackgroundImage: String
1451
-
1452
- attr_accessor :Top, :Left, :Width, :Height, :UserId, :Alpha, :RenderMode, :MediaId, :ImageLayer, :SubBackgroundImage
1453
-
1454
- def initialize(top=nil, left=nil, width=nil, height=nil, userid=nil, alpha=nil, rendermode=nil, mediaid=nil, imagelayer=nil, subbackgroundimage=nil)
1455
- @Top = top
1456
- @Left = left
1457
- @Width = width
1458
- @Height = height
1459
- @UserId = userid
1460
- @Alpha = alpha
1461
- @RenderMode = rendermode
1462
- @MediaId = mediaid
1463
- @ImageLayer = imagelayer
1464
- @SubBackgroundImage = subbackgroundimage
1465
- end
1466
-
1467
- def deserialize(params)
1468
- @Top = params['Top']
1469
- @Left = params['Left']
1470
- @Width = params['Width']
1471
- @Height = params['Height']
1472
- @UserId = params['UserId']
1473
- @Alpha = params['Alpha']
1474
- @RenderMode = params['RenderMode']
1475
- @MediaId = params['MediaId']
1476
- @ImageLayer = params['ImageLayer']
1477
- @SubBackgroundImage = params['SubBackgroundImage']
1478
- end
1479
- end
1480
-
1481
- # 录制的混流布局参数。
1482
- class MixLayoutParams < TencentCloud::Common::AbstractModel
1483
- # @param MixLayoutMode: 布局模式:
1484
- # 1:悬浮布局;
1485
- # 2:屏幕分享布局;
1486
- # 3:九宫格布局(默认);
1487
- # 4:自定义布局;
1488
-
1489
- # 悬浮布局:默认第一个进入房间的主播(也可以指定一个主播)的视频画面会铺满整个屏幕。其他主播的视频画面从左下角开始依次按照进房顺序水平排列,显示为小画面,小画面悬浮于大画面之上。当画面数量小于等于17个时,每行4个(4 x 4排列)。当画面数量大于17个时,重新布局小画面为每行5个(5 x 5)排列。最多支持25个画面,如果用户只发送音频,仍然会占用画面位置。
1490
-
1491
- # 屏幕分享布局:指定一个主播在屏幕左侧的大画面位置(如果不指定,那么大画面位置为背景色),其他主播自上而下依次垂直排列于右侧。当画面数量少于17个的时候,右侧每列最多8人,最多占据两列。当画面数量多于17个的时候,超过17个画面的主播从左下角开始依次水平排列。最多支持25个画面,如果主播只发送音频,仍然会占用画面位置。
1492
-
1493
- # 九宫格布局:根据主播的数量自动调整每个画面的大小,每个主播的画面大小一致,最多支持25个画面。
1494
-
1495
- # 自定义布局:根据需要在MixLayoutList内定制每个主播画面的布局。
1496
- # @type MixLayoutMode: Integer
1497
- # @param MixLayoutList: 如果MixLayoutMode 选择为4自定义布局模式的话,设置此参数为每个主播所对应的布局画面的详细信息,最大不超过25个。
1498
- # @type MixLayoutList: Array
1499
- # @param BackGroundColor: 录制背景颜色,RGB的颜色表的16进制表示,每个颜色通过8bit长度标识,默认为黑色。比如橙色对应的RGB为 R:255 G:165 B:0, 那么对应的字符串描述为#FFA500,格式规范:‘#‘开头,后面跟固定RGB的颜色值
1500
- # @type BackGroundColor: String
1501
- # @param MaxResolutionUserId: 在布局模式为1:悬浮布局和 2:屏幕分享布局时,设定为显示大视频画面的UserId。不填的话:悬浮布局默认是第一个进房间的主播,屏幕分享布局默认是背景色
1502
- # @type MaxResolutionUserId: String
1503
- # @param MediaId: 主辅路标识,
1504
- # 0:主流(默认);
1505
- # 1:辅流(屏幕分享);
1506
- # 这个位置的MediaId代表的是对应MaxResolutionUserId的主辅路,MixLayoutList内代表的是自定义用户的主辅路。
1507
- # @type MediaId: Integer
1508
- # @param BackgroundImageUrl: 下载的url地址, 只支持jpg, png,大小限制不超过5M。
1509
- # @type BackgroundImageUrl: String
1510
- # @param PlaceHolderMode: 设置为1时代表启用占位图功能,0时代表不启用占位图功能,默认为0。启用占位图功能时,在预设位置的用户没有上行视频时可显示对应的占位图。
1511
- # @type PlaceHolderMode: Integer
1512
- # @param BackgroundImageRenderMode: 背景画面宽高比不一致的时候处理方案,与MixLayoufList定义的RenderMode一致。
1513
- # @type BackgroundImageRenderMode: Integer
1514
- # @param DefaultSubBackgroundImage: 下载的url地址, 只支持jpg, png,大小限制不超过5M,宽高比不一致的处理方案同 RenderMode。
1515
- # @type DefaultSubBackgroundImage: String
1516
- # @param WaterMarkList: 水印布局参数, 最多支持25个。
1517
- # @type WaterMarkList: Array
1518
-
1519
- attr_accessor :MixLayoutMode, :MixLayoutList, :BackGroundColor, :MaxResolutionUserId, :MediaId, :BackgroundImageUrl, :PlaceHolderMode, :BackgroundImageRenderMode, :DefaultSubBackgroundImage, :WaterMarkList
1520
-
1521
- def initialize(mixlayoutmode=nil, mixlayoutlist=nil, backgroundcolor=nil, maxresolutionuserid=nil, mediaid=nil, backgroundimageurl=nil, placeholdermode=nil, backgroundimagerendermode=nil, defaultsubbackgroundimage=nil, watermarklist=nil)
1522
- @MixLayoutMode = mixlayoutmode
1523
- @MixLayoutList = mixlayoutlist
1524
- @BackGroundColor = backgroundcolor
1525
- @MaxResolutionUserId = maxresolutionuserid
1526
- @MediaId = mediaid
1527
- @BackgroundImageUrl = backgroundimageurl
1528
- @PlaceHolderMode = placeholdermode
1529
- @BackgroundImageRenderMode = backgroundimagerendermode
1530
- @DefaultSubBackgroundImage = defaultsubbackgroundimage
1531
- @WaterMarkList = watermarklist
1532
- end
1533
-
1534
- def deserialize(params)
1535
- @MixLayoutMode = params['MixLayoutMode']
1536
- unless params['MixLayoutList'].nil?
1537
- @MixLayoutList = []
1538
- params['MixLayoutList'].each do |i|
1539
- mixlayout_tmp = MixLayout.new
1540
- mixlayout_tmp.deserialize(i)
1541
- @MixLayoutList << mixlayout_tmp
1542
- end
1543
- end
1544
- @BackGroundColor = params['BackGroundColor']
1545
- @MaxResolutionUserId = params['MaxResolutionUserId']
1546
- @MediaId = params['MediaId']
1547
- @BackgroundImageUrl = params['BackgroundImageUrl']
1548
- @PlaceHolderMode = params['PlaceHolderMode']
1549
- @BackgroundImageRenderMode = params['BackgroundImageRenderMode']
1550
- @DefaultSubBackgroundImage = params['DefaultSubBackgroundImage']
1551
- unless params['WaterMarkList'].nil?
1552
- @WaterMarkList = []
1553
- params['WaterMarkList'].each do |i|
1554
- watermark_tmp = WaterMark.new
1555
- watermark_tmp.deserialize(i)
1556
- @WaterMarkList << watermark_tmp
1557
- end
1558
- end
1559
- end
1560
- end
1561
-
1562
- # 录制的音视频转码参数。
1563
- class MixTranscodeParams < TencentCloud::Common::AbstractModel
1564
- # @param VideoParams: 录制视频转码参数,注意如果设置了这个参数,那么里面的字段都是必填的,没有默认值,如果不填这个参数,那么取值为默认值。
1565
- # @type VideoParams: :class:`Tencentcloud::Trtc.v20190722.models.VideoParams`
1566
- # @param AudioParams: 录制音频转码参数,注意如果设置了这个参数,那么里面的字段都是必填的,没有默认值,如果不填这个参数,那么取值为默认值。
1567
- # @type AudioParams: :class:`Tencentcloud::Trtc.v20190722.models.AudioParams`
1568
-
1569
- attr_accessor :VideoParams, :AudioParams
1570
-
1571
- def initialize(videoparams=nil, audioparams=nil)
1572
- @VideoParams = videoparams
1573
- @AudioParams = audioparams
1574
- end
1575
-
1576
- def deserialize(params)
1577
- unless params['VideoParams'].nil?
1578
- @VideoParams = VideoParams.new
1579
- @VideoParams.deserialize(params['VideoParams'])
1580
- end
1581
- unless params['AudioParams'].nil?
1582
- @AudioParams = AudioParams.new
1583
- @AudioParams.deserialize(params['AudioParams'])
1584
- end
1585
- end
1586
- end
1587
-
1588
- # ModifyCloudRecording请求参数结构体
1589
- class ModifyCloudRecordingRequest < TencentCloud::Common::AbstractModel
1590
- # @param SdkAppId: TRTC的SDKAppId,和录制的房间所对应的SDKAppId相同。
1591
- # @type SdkAppId: Integer
1592
- # @param TaskId: 录制任务的唯一Id,在启动录制成功后会返回。
1593
- # @type TaskId: String
1594
- # @param MixLayoutParams: 需要更新的混流的布局参数。
1595
- # @type MixLayoutParams: :class:`Tencentcloud::Trtc.v20190722.models.MixLayoutParams`
1596
- # @param SubscribeStreamUserIds: 指定订阅流白名单或者黑名单。
1597
- # @type SubscribeStreamUserIds: :class:`Tencentcloud::Trtc.v20190722.models.SubscribeStreamUserIds`
1598
-
1599
- attr_accessor :SdkAppId, :TaskId, :MixLayoutParams, :SubscribeStreamUserIds
1600
-
1601
- def initialize(sdkappid=nil, taskid=nil, mixlayoutparams=nil, subscribestreamuserids=nil)
1602
- @SdkAppId = sdkappid
1603
- @TaskId = taskid
1604
- @MixLayoutParams = mixlayoutparams
1605
- @SubscribeStreamUserIds = subscribestreamuserids
1606
- end
1607
-
1608
- def deserialize(params)
1609
- @SdkAppId = params['SdkAppId']
1610
- @TaskId = params['TaskId']
1611
- unless params['MixLayoutParams'].nil?
1612
- @MixLayoutParams = MixLayoutParams.new
1613
- @MixLayoutParams.deserialize(params['MixLayoutParams'])
1614
- end
1615
- unless params['SubscribeStreamUserIds'].nil?
1616
- @SubscribeStreamUserIds = SubscribeStreamUserIds.new
1617
- @SubscribeStreamUserIds.deserialize(params['SubscribeStreamUserIds'])
1618
- end
1619
- end
1620
- end
1621
-
1622
- # ModifyCloudRecording返回参数结构体
1623
- class ModifyCloudRecordingResponse < TencentCloud::Common::AbstractModel
1624
- # @param TaskId: 云录制服务分配的任务 ID。任务 ID 是对一次录制生命周期过程的唯一标识,结束录制时会失去意义。
1625
- # @type TaskId: String
1626
- # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1627
- # @type RequestId: String
1628
-
1629
- attr_accessor :TaskId, :RequestId
1630
-
1631
- def initialize(taskid=nil, requestid=nil)
1632
- @TaskId = taskid
1633
- @RequestId = requestid
1634
- end
1635
-
1636
- def deserialize(params)
1637
- @TaskId = params['TaskId']
1638
- @RequestId = params['RequestId']
1639
- end
1640
- end
1641
-
1642
1147
  # ModifyPicture请求参数结构体
1643
1148
  class ModifyPictureRequest < TencentCloud::Common::AbstractModel
1644
1149
  # @param PictureId: 图片id
@@ -1894,46 +1399,6 @@ module TencentCloud
1894
1399
  end
1895
1400
  end
1896
1401
 
1897
- # 云端录制控制参数。
1898
- class RecordParams < TencentCloud::Common::AbstractModel
1899
- # @param RecordMode: 录制模式:
1900
- # 1:单流录制,分别录制房间的订阅UserId的音频和视频,将录制文件(M3U8/TS)上传至云存储;
1901
- # 2:混流录制,将房间内订阅UserId的音视频混录成一个音视频文件,将录制文件[M3U8/TS]上传至云存储;
1902
- # @type RecordMode: Integer
1903
- # @param MaxIdleTime: 房间内持续没有主播的状态超过MaxIdleTime的时长,自动停止录制,单位:秒。默认值为 30 秒,该值需大于等于 5秒,且小于等于 86400秒(24小时)。
1904
- # @type MaxIdleTime: Integer
1905
- # @param StreamType: 录制的媒体流类型:
1906
- # 0:录制音频+视频流(默认);
1907
- # 1:仅录制音频流;
1908
- # 2:仅录制视频流,
1909
- # @type StreamType: Integer
1910
- # @param SubscribeStreamUserIds: 指定订阅流白名单或者黑名单。
1911
- # @type SubscribeStreamUserIds: :class:`Tencentcloud::Trtc.v20190722.models.SubscribeStreamUserIds`
1912
- # @param OutputFormat: 输出文件的格式。0:(默认)输出文件为hls格式。1:输出文件格式为hls+mp4(hls录制完成后转mp4文件)
1913
- # @type OutputFormat: Integer
1914
-
1915
- attr_accessor :RecordMode, :MaxIdleTime, :StreamType, :SubscribeStreamUserIds, :OutputFormat
1916
-
1917
- def initialize(recordmode=nil, maxidletime=nil, streamtype=nil, subscribestreamuserids=nil, outputformat=nil)
1918
- @RecordMode = recordmode
1919
- @MaxIdleTime = maxidletime
1920
- @StreamType = streamtype
1921
- @SubscribeStreamUserIds = subscribestreamuserids
1922
- @OutputFormat = outputformat
1923
- end
1924
-
1925
- def deserialize(params)
1926
- @RecordMode = params['RecordMode']
1927
- @MaxIdleTime = params['MaxIdleTime']
1928
- @StreamType = params['StreamType']
1929
- unless params['SubscribeStreamUserIds'].nil?
1930
- @SubscribeStreamUserIds = SubscribeStreamUserIds.new
1931
- @SubscribeStreamUserIds.deserialize(params['SubscribeStreamUserIds'])
1932
- end
1933
- @OutputFormat = params['OutputFormat']
1934
- end
1935
- end
1936
-
1937
1402
  # 录制的使用信息。
1938
1403
  class RecordUsage < TencentCloud::Common::AbstractModel
1939
1404
  # @param TimeKey: 本组数据对应的时间点,格式如:2020-09-07或2020-09-07 00:05:05。
@@ -2447,134 +1912,6 @@ module TencentCloud
2447
1912
  end
2448
1913
  end
2449
1914
 
2450
- # 云端录制查询接口,录制文件的信息
2451
- class StorageFile < TencentCloud::Common::AbstractModel
2452
- # @param UserId: 录制文件对应的UserId,如果是混流的话的这里返回的是空串。
2453
- # 注意:此字段可能返回 null,表示取不到有效值。
2454
- # @type UserId: String
2455
- # @param FileName: 录制索引文件名。
2456
- # @type FileName: String
2457
- # @param TrackType: 录制文件流信息。
2458
- # video:视频录制文件
2459
- # audio:音频录制文件
2460
- # audio_video:音视频录制文件
2461
- # 注意:此字段可能返回 null,表示取不到有效值。
2462
- # @type TrackType: String
2463
- # @param BeginTimeStamp: 录制文件开始Unix时间戳。
2464
- # @type BeginTimeStamp: Integer
2465
-
2466
- attr_accessor :UserId, :FileName, :TrackType, :BeginTimeStamp
2467
-
2468
- def initialize(userid=nil, filename=nil, tracktype=nil, begintimestamp=nil)
2469
- @UserId = userid
2470
- @FileName = filename
2471
- @TrackType = tracktype
2472
- @BeginTimeStamp = begintimestamp
2473
- end
2474
-
2475
- def deserialize(params)
2476
- @UserId = params['UserId']
2477
- @FileName = params['FileName']
2478
- @TrackType = params['TrackType']
2479
- @BeginTimeStamp = params['BeginTimeStamp']
2480
- end
2481
- end
2482
-
2483
- # 第三方存储参数。
2484
- class StorageParams < TencentCloud::Common::AbstractModel
2485
- # @param CloudStorage: 第三方云存储的账号信息。
2486
- # @type CloudStorage: :class:`Tencentcloud::Trtc.v20190722.models.CloudStorage`
2487
- # @param CloudVod: 第三方云点播的账号信息。
2488
- # @type CloudVod: :class:`Tencentcloud::Trtc.v20190722.models.CloudVod`
2489
-
2490
- attr_accessor :CloudStorage, :CloudVod
2491
-
2492
- def initialize(cloudstorage=nil, cloudvod=nil)
2493
- @CloudStorage = cloudstorage
2494
- @CloudVod = cloudvod
2495
- end
2496
-
2497
- def deserialize(params)
2498
- unless params['CloudStorage'].nil?
2499
- @CloudStorage = CloudStorage.new
2500
- @CloudStorage.deserialize(params['CloudStorage'])
2501
- end
2502
- unless params['CloudVod'].nil?
2503
- @CloudVod = CloudVod.new
2504
- @CloudVod.deserialize(params['CloudVod'])
2505
- end
2506
- end
2507
- end
2508
-
2509
- # 指定订阅流白名单或者黑名单,音频的白名单和音频黑名单不能同时设置,视频亦然。同时实际并发订阅的媒体流路数最大支持25路流,混流场景下视频的多画面最大支持24画面。支持通过设置".*$"通配符,来前缀匹配黑白名单的UserId,注意房间里不能有和通配符规则相同的用户,否则将视为订阅具体用户,前缀规则会失效。
2510
- class SubscribeStreamUserIds < TencentCloud::Common::AbstractModel
2511
- # @param SubscribeAudioUserIds: 订阅音频流白名单,指定订阅哪几个UserId的音频流,例如["1", "2", "3"], 代表订阅UserId 1,2,3的音频流;["1.*$"], 代表订阅UserId前缀为1的音频流。默认不填订阅房间内所有的音频流,订阅列表用户数不超过32。
2512
- # @type SubscribeAudioUserIds: Array
2513
- # @param UnSubscribeAudioUserIds: 订阅音频流黑名单,指定不订阅哪几个UserId的音频流,例如["1", "2", "3"], 代表不订阅UserId 1,2,3的音频流;["1.*$"], 代表不订阅UserId前缀为1的音频流。默认不填订阅房间内所有音频流,订阅列表用户数不超过32。
2514
- # @type UnSubscribeAudioUserIds: Array
2515
- # @param SubscribeVideoUserIds: 订阅视频流白名单,指定订阅哪几个UserId的视频流,例如["1", "2", "3"], 代表订阅UserId 1,2,3的视频流;["1.*$"], 代表订阅UserId前缀为1的视频流。默认不填订阅房间内所有视频流,订阅列表用户数不超过32。
2516
- # @type SubscribeVideoUserIds: Array
2517
- # @param UnSubscribeVideoUserIds: 订阅视频流黑名单,指定不订阅哪几个UserId的视频流,例如["1", "2", "3"], 代表不订阅UserId 1,2,3的视频流;["1.*$"], 代表不订阅UserId前缀为1的视频流。默认不填订阅房间内所有视频流,订阅列表用户数不超过32。
2518
- # @type UnSubscribeVideoUserIds: Array
2519
-
2520
- attr_accessor :SubscribeAudioUserIds, :UnSubscribeAudioUserIds, :SubscribeVideoUserIds, :UnSubscribeVideoUserIds
2521
-
2522
- def initialize(subscribeaudiouserids=nil, unsubscribeaudiouserids=nil, subscribevideouserids=nil, unsubscribevideouserids=nil)
2523
- @SubscribeAudioUserIds = subscribeaudiouserids
2524
- @UnSubscribeAudioUserIds = unsubscribeaudiouserids
2525
- @SubscribeVideoUserIds = subscribevideouserids
2526
- @UnSubscribeVideoUserIds = unsubscribevideouserids
2527
- end
2528
-
2529
- def deserialize(params)
2530
- @SubscribeAudioUserIds = params['SubscribeAudioUserIds']
2531
- @UnSubscribeAudioUserIds = params['UnSubscribeAudioUserIds']
2532
- @SubscribeVideoUserIds = params['SubscribeVideoUserIds']
2533
- @UnSubscribeVideoUserIds = params['UnSubscribeVideoUserIds']
2534
- end
2535
- end
2536
-
2537
- # 腾讯云点播相关参数。
2538
- class TencentVod < TencentCloud::Common::AbstractModel
2539
- # @param Procedure: 媒体后续任务处理操作,即完成媒体上传后,可自动发起任务流操作。参数值为任务流模板名,云点播支持 创建任务流模板 并为模板命名。
2540
- # @type Procedure: String
2541
- # @param ExpireTime: 媒体文件过期时间,为当前时间的绝对过期时间;保存一天,就填"86400",永久保存就填"0",默认永久保存。
2542
- # @type ExpireTime: Integer
2543
- # @param StorageRegion: 指定上传园区,仅适用于对上传地域有特殊需求的用户。
2544
- # @type StorageRegion: String
2545
- # @param ClassId: 分类ID,用于对媒体进行分类管理,可通过 创建分类 接口,创建分类,获得分类 ID。
2546
- # 默认值:0,表示其他分类。
2547
- # @type ClassId: Integer
2548
- # @param SubAppId: 点播 子应用 ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
2549
- # @type SubAppId: Integer
2550
- # @param SessionContext: 任务流上下文,任务完成回调时透传。
2551
- # @type SessionContext: String
2552
- # @param SourceContext: 上传上下文,上传完成回调时透传。
2553
- # @type SourceContext: String
2554
-
2555
- attr_accessor :Procedure, :ExpireTime, :StorageRegion, :ClassId, :SubAppId, :SessionContext, :SourceContext
2556
-
2557
- def initialize(procedure=nil, expiretime=nil, storageregion=nil, classid=nil, subappid=nil, sessioncontext=nil, sourcecontext=nil)
2558
- @Procedure = procedure
2559
- @ExpireTime = expiretime
2560
- @StorageRegion = storageregion
2561
- @ClassId = classid
2562
- @SubAppId = subappid
2563
- @SessionContext = sessioncontext
2564
- @SourceContext = sourcecontext
2565
- end
2566
-
2567
- def deserialize(params)
2568
- @Procedure = params['Procedure']
2569
- @ExpireTime = params['ExpireTime']
2570
- @StorageRegion = params['StorageRegion']
2571
- @ClassId = params['ClassId']
2572
- @SubAppId = params['SubAppId']
2573
- @SessionContext = params['SessionContext']
2574
- @SourceContext = params['SourceContext']
2575
- end
2576
- end
2577
-
2578
1915
  # 返回的质量数据,时间:值
2579
1916
  class TimeValue < TencentCloud::Common::AbstractModel
2580
1917
  # @param Time: 时间,unix时间戳(1590065877s)
@@ -2691,93 +2028,6 @@ module TencentCloud
2691
2028
  end
2692
2029
  end
2693
2030
 
2694
- # 录制视频转码参数。
2695
- class VideoParams < TencentCloud::Common::AbstractModel
2696
- # @param Width: 视频的宽度值,单位为像素,默认值360。不能超过1920,与height的乘积不能超过1920*1080。
2697
- # @type Width: Integer
2698
- # @param Height: 视频的高度值,单位为像素,默认值640。不能超过1920,与width的乘积不能超过1920*1080。
2699
- # @type Height: Integer
2700
- # @param Fps: 视频的帧率,范围[1, 60],默认15。
2701
- # @type Fps: Integer
2702
- # @param BitRate: 视频的码率,单位是bps,范围[64000, 8192000],默认550000bps。
2703
- # @type BitRate: Integer
2704
- # @param Gop: 视频关键帧时间间隔,单位秒,默认值10秒。
2705
- # @type Gop: Integer
2706
-
2707
- attr_accessor :Width, :Height, :Fps, :BitRate, :Gop
2708
-
2709
- def initialize(width=nil, height=nil, fps=nil, bitrate=nil, gop=nil)
2710
- @Width = width
2711
- @Height = height
2712
- @Fps = fps
2713
- @BitRate = bitrate
2714
- @Gop = gop
2715
- end
2716
-
2717
- def deserialize(params)
2718
- @Width = params['Width']
2719
- @Height = params['Height']
2720
- @Fps = params['Fps']
2721
- @BitRate = params['BitRate']
2722
- @Gop = params['Gop']
2723
- end
2724
- end
2725
-
2726
- # 水印布局参数
2727
- class WaterMark < TencentCloud::Common::AbstractModel
2728
- # @param WaterMarkType: 水印类型,0为图片(默认),1为文字(暂不支持)。
2729
- # @type WaterMarkType: Integer
2730
- # @param WaterMarkImage: 水印为图片时的参数列表,水印为图片时校验必填。
2731
- # @type WaterMarkImage: :class:`Tencentcloud::Trtc.v20190722.models.WaterMarkImage`
2732
-
2733
- attr_accessor :WaterMarkType, :WaterMarkImage
2734
-
2735
- def initialize(watermarktype=nil, watermarkimage=nil)
2736
- @WaterMarkType = watermarktype
2737
- @WaterMarkImage = watermarkimage
2738
- end
2739
-
2740
- def deserialize(params)
2741
- @WaterMarkType = params['WaterMarkType']
2742
- unless params['WaterMarkImage'].nil?
2743
- @WaterMarkImage = WaterMarkImage.new
2744
- @WaterMarkImage.deserialize(params['WaterMarkImage'])
2745
- end
2746
- end
2747
- end
2748
-
2749
- # 水印类型为图片的参数列表
2750
- class WaterMarkImage < TencentCloud::Common::AbstractModel
2751
- # @param WaterMarkUrl: 下载的url地址, 只支持jpg, png,大小限制不超过5M。
2752
- # @type WaterMarkUrl: String
2753
- # @param Top: 画布上该画面左上角的 y 轴坐标,取值范围 [0, 2560],不能超过画布的高。
2754
- # @type Top: Integer
2755
- # @param Left: 画布上该画面左上角的 x 轴坐标,取值范围 [0, 2560],不能超过画布的宽。
2756
- # @type Left: Integer
2757
- # @param Width: 画布上该画面宽度的相对值,取值范围 [0, 2560],与Left相加不应超过画布的宽。
2758
- # @type Width: Integer
2759
- # @param Height: 画布上该画面高度的相对值,取值范围 [0, 2560],与Top相加不应超过画布的高。
2760
- # @type Height: Integer
2761
-
2762
- attr_accessor :WaterMarkUrl, :Top, :Left, :Width, :Height
2763
-
2764
- def initialize(watermarkurl=nil, top=nil, left=nil, width=nil, height=nil)
2765
- @WaterMarkUrl = watermarkurl
2766
- @Top = top
2767
- @Left = left
2768
- @Width = width
2769
- @Height = height
2770
- end
2771
-
2772
- def deserialize(params)
2773
- @WaterMarkUrl = params['WaterMarkUrl']
2774
- @Top = params['Top']
2775
- @Left = params['Left']
2776
- @Width = params['Width']
2777
- @Height = params['Height']
2778
- end
2779
- end
2780
-
2781
2031
  # MCU混流水印参数
2782
2032
  class WaterMarkParams < TencentCloud::Common::AbstractModel
2783
2033
  # @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.341
4
+ version: 1.0.344
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-06-23 00:00:00.000000000 Z
11
+ date: 2022-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common