tencentcloud-sdk-trtc 3.0.787 → 3.0.789
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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20190722/client.rb +73 -0
- data/lib/v20190722/models.rb +157 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8223373a7834f21165e401ac9b86c1e1c458ac53
|
4
|
+
data.tar.gz: 29fd620f81b0bd86acbc7421a04183a11309faf5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a9f24e5e226ac96c259a36abd8dd2fb613cad83be6bc75fe0233f31a9b460ca849026d6e7112617d84d781edcaae6057bc79270723add465d434965399c0a37
|
7
|
+
data.tar.gz: 27b7bf9e5a563382a57d3897e066214dfd244cad6b10680d21ecd12921578b2b460915c2f7b3acc0a5099eddbd7d792149f7a01155fa34ffab99af89b3dcaa10
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.789
|
data/lib/v20190722/client.rb
CHANGED
@@ -809,6 +809,30 @@ module TencentCloud
|
|
809
809
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
810
810
|
end
|
811
811
|
|
812
|
+
# 查询页面录制任务
|
813
|
+
|
814
|
+
# @param request: Request instance for DescribeWebRecord.
|
815
|
+
# @type request: :class:`Tencentcloud::trtc::V20190722::DescribeWebRecordRequest`
|
816
|
+
# @rtype: :class:`Tencentcloud::trtc::V20190722::DescribeWebRecordResponse`
|
817
|
+
def DescribeWebRecord(request)
|
818
|
+
body = send_request('DescribeWebRecord', request.serialize)
|
819
|
+
response = JSON.parse(body)
|
820
|
+
if response['Response'].key?('Error') == false
|
821
|
+
model = DescribeWebRecordResponse.new
|
822
|
+
model.deserialize(response['Response'])
|
823
|
+
model
|
824
|
+
else
|
825
|
+
code = response['Response']['Error']['Code']
|
826
|
+
message = response['Response']['Error']['Message']
|
827
|
+
reqid = response['Response']['RequestId']
|
828
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
829
|
+
end
|
830
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
831
|
+
raise e
|
832
|
+
rescue StandardError => e
|
833
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
834
|
+
end
|
835
|
+
|
812
836
|
# 接口说明:把房间所有用户从房间移出,解散房间。支持所有平台,Android、iOS、Windows 和 macOS 需升级到 TRTC SDK 6.6及以上版本。
|
813
837
|
|
814
838
|
# @param request: Request instance for DismissRoom.
|
@@ -1186,6 +1210,31 @@ module TencentCloud
|
|
1186
1210
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1187
1211
|
end
|
1188
1212
|
|
1213
|
+
# 通过此接口可以发起 WEB 页面录制任务,在接口参数中指定录制 URL,录制分辨率,录制结果存储等参数。
|
1214
|
+
# 因为参数或API逻辑问题会立即返回结果。而因为页面问题,如页面无法访问,会在回调中返回结果,请关注。
|
1215
|
+
|
1216
|
+
# @param request: Request instance for StartWebRecord.
|
1217
|
+
# @type request: :class:`Tencentcloud::trtc::V20190722::StartWebRecordRequest`
|
1218
|
+
# @rtype: :class:`Tencentcloud::trtc::V20190722::StartWebRecordResponse`
|
1219
|
+
def StartWebRecord(request)
|
1220
|
+
body = send_request('StartWebRecord', request.serialize)
|
1221
|
+
response = JSON.parse(body)
|
1222
|
+
if response['Response'].key?('Error') == false
|
1223
|
+
model = StartWebRecordResponse.new
|
1224
|
+
model.deserialize(response['Response'])
|
1225
|
+
model
|
1226
|
+
else
|
1227
|
+
code = response['Response']['Error']['Code']
|
1228
|
+
message = response['Response']['Error']['Message']
|
1229
|
+
reqid = response['Response']['RequestId']
|
1230
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1231
|
+
end
|
1232
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1233
|
+
raise e
|
1234
|
+
rescue StandardError => e
|
1235
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1236
|
+
end
|
1237
|
+
|
1189
1238
|
# 接口说明:结束云端混流
|
1190
1239
|
|
1191
1240
|
# @param request: Request instance for StopMCUMixTranscode.
|
@@ -1282,6 +1331,30 @@ module TencentCloud
|
|
1282
1331
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1283
1332
|
end
|
1284
1333
|
|
1334
|
+
# 停止页面录制任务
|
1335
|
+
|
1336
|
+
# @param request: Request instance for StopWebRecord.
|
1337
|
+
# @type request: :class:`Tencentcloud::trtc::V20190722::StopWebRecordRequest`
|
1338
|
+
# @rtype: :class:`Tencentcloud::trtc::V20190722::StopWebRecordResponse`
|
1339
|
+
def StopWebRecord(request)
|
1340
|
+
body = send_request('StopWebRecord', request.serialize)
|
1341
|
+
response = JSON.parse(body)
|
1342
|
+
if response['Response'].key?('Error') == false
|
1343
|
+
model = StopWebRecordResponse.new
|
1344
|
+
model.deserialize(response['Response'])
|
1345
|
+
model
|
1346
|
+
else
|
1347
|
+
code = response['Response']['Error']['Code']
|
1348
|
+
message = response['Response']['Error']['Message']
|
1349
|
+
reqid = response['Response']['RequestId']
|
1350
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1351
|
+
end
|
1352
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1353
|
+
raise e
|
1354
|
+
rescue StandardError => e
|
1355
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1356
|
+
end
|
1357
|
+
|
1285
1358
|
# 更新转推任务。
|
1286
1359
|
# 注:请参见启动转推任务的接口说明和使用说明。
|
1287
1360
|
|
data/lib/v20190722/models.rb
CHANGED
@@ -1876,6 +1876,43 @@ module TencentCloud
|
|
1876
1876
|
end
|
1877
1877
|
end
|
1878
1878
|
|
1879
|
+
# DescribeWebRecord请求参数结构体
|
1880
|
+
class DescribeWebRecordRequest < TencentCloud::Common::AbstractModel
|
1881
|
+
# @param TaskId: 开始页面录制时返回的任务id
|
1882
|
+
# @type TaskId: String
|
1883
|
+
|
1884
|
+
attr_accessor :TaskId
|
1885
|
+
|
1886
|
+
def initialize(taskid=nil)
|
1887
|
+
@TaskId = taskid
|
1888
|
+
end
|
1889
|
+
|
1890
|
+
def deserialize(params)
|
1891
|
+
@TaskId = params['TaskId']
|
1892
|
+
end
|
1893
|
+
end
|
1894
|
+
|
1895
|
+
# DescribeWebRecord返回参数结构体
|
1896
|
+
class DescribeWebRecordResponse < TencentCloud::Common::AbstractModel
|
1897
|
+
# @param Status: 1: 正在录制中
|
1898
|
+
# 2: 任务不存在
|
1899
|
+
# @type Status: Integer
|
1900
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1901
|
+
# @type RequestId: String
|
1902
|
+
|
1903
|
+
attr_accessor :Status, :RequestId
|
1904
|
+
|
1905
|
+
def initialize(status=nil, requestid=nil)
|
1906
|
+
@Status = status
|
1907
|
+
@RequestId = requestid
|
1908
|
+
end
|
1909
|
+
|
1910
|
+
def deserialize(params)
|
1911
|
+
@Status = params['Status']
|
1912
|
+
@RequestId = params['RequestId']
|
1913
|
+
end
|
1914
|
+
end
|
1915
|
+
|
1879
1916
|
# DismissRoomByStrRoomId请求参数结构体
|
1880
1917
|
class DismissRoomByStrRoomIdRequest < TencentCloud::Common::AbstractModel
|
1881
1918
|
# @param SdkAppId: TRTC的SDKAppId。
|
@@ -3934,6 +3971,69 @@ module TencentCloud
|
|
3934
3971
|
end
|
3935
3972
|
end
|
3936
3973
|
|
3974
|
+
# StartWebRecord请求参数结构体
|
3975
|
+
class StartWebRecordRequest < TencentCloud::Common::AbstractModel
|
3976
|
+
# @param RecordUrl: 需要录制的网页URL
|
3977
|
+
# @type RecordUrl: String
|
3978
|
+
# @param MaxDurationLimit: 录制最大时长限制, 单位 s, 合法取值范围[0, 36000], 默认 36000s(10 小时)
|
3979
|
+
# @type MaxDurationLimit: Integer
|
3980
|
+
# @param StorageParams: 云存储相关的参数,目前支持腾讯云对象存储,不支持第三方云存储以及VOD
|
3981
|
+
# @type StorageParams: :class:`Tencentcloud::Trtc.v20190722.models.StorageParams`
|
3982
|
+
# @param WebRecordVideoParams: 页面录制视频参数
|
3983
|
+
# @type WebRecordVideoParams: :class:`Tencentcloud::Trtc.v20190722.models.WebRecordVideoParams`
|
3984
|
+
# @param SdkAppId: TRTC的SdkAppId
|
3985
|
+
# @type SdkAppId: Integer
|
3986
|
+
# @param RecordId: 当对重复任务敏感时,请关注此值: 为了避免任务在短时间内重复发起,导致任务重复
|
3987
|
+
# 传入录制RecordId来标识此次任务, 小于32字节,若携带RecordId发起两次以上的开始录制请求,任务只会启动一个,第二个报错FailedOperation.TaskExist。注意StartWebRecord调用失败时而非FailedOperation.TaskExist错误,请更换RecordId重新发起。
|
3988
|
+
# @type RecordId: String
|
3989
|
+
|
3990
|
+
attr_accessor :RecordUrl, :MaxDurationLimit, :StorageParams, :WebRecordVideoParams, :SdkAppId, :RecordId
|
3991
|
+
|
3992
|
+
def initialize(recordurl=nil, maxdurationlimit=nil, storageparams=nil, webrecordvideoparams=nil, sdkappid=nil, recordid=nil)
|
3993
|
+
@RecordUrl = recordurl
|
3994
|
+
@MaxDurationLimit = maxdurationlimit
|
3995
|
+
@StorageParams = storageparams
|
3996
|
+
@WebRecordVideoParams = webrecordvideoparams
|
3997
|
+
@SdkAppId = sdkappid
|
3998
|
+
@RecordId = recordid
|
3999
|
+
end
|
4000
|
+
|
4001
|
+
def deserialize(params)
|
4002
|
+
@RecordUrl = params['RecordUrl']
|
4003
|
+
@MaxDurationLimit = params['MaxDurationLimit']
|
4004
|
+
unless params['StorageParams'].nil?
|
4005
|
+
@StorageParams = StorageParams.new
|
4006
|
+
@StorageParams.deserialize(params['StorageParams'])
|
4007
|
+
end
|
4008
|
+
unless params['WebRecordVideoParams'].nil?
|
4009
|
+
@WebRecordVideoParams = WebRecordVideoParams.new
|
4010
|
+
@WebRecordVideoParams.deserialize(params['WebRecordVideoParams'])
|
4011
|
+
end
|
4012
|
+
@SdkAppId = params['SdkAppId']
|
4013
|
+
@RecordId = params['RecordId']
|
4014
|
+
end
|
4015
|
+
end
|
4016
|
+
|
4017
|
+
# StartWebRecord返回参数结构体
|
4018
|
+
class StartWebRecordResponse < TencentCloud::Common::AbstractModel
|
4019
|
+
# @param TaskId: 录制任务的唯一Id
|
4020
|
+
# @type TaskId: String
|
4021
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
4022
|
+
# @type RequestId: String
|
4023
|
+
|
4024
|
+
attr_accessor :TaskId, :RequestId
|
4025
|
+
|
4026
|
+
def initialize(taskid=nil, requestid=nil)
|
4027
|
+
@TaskId = taskid
|
4028
|
+
@RequestId = requestid
|
4029
|
+
end
|
4030
|
+
|
4031
|
+
def deserialize(params)
|
4032
|
+
@TaskId = params['TaskId']
|
4033
|
+
@RequestId = params['RequestId']
|
4034
|
+
end
|
4035
|
+
end
|
4036
|
+
|
3937
4037
|
# StopMCUMixTranscodeByStrRoomId请求参数结构体
|
3938
4038
|
class StopMCUMixTranscodeByStrRoomIdRequest < TencentCloud::Common::AbstractModel
|
3939
4039
|
# @param SdkAppId: TRTC的SDKAppId。
|
@@ -4082,6 +4182,38 @@ module TencentCloud
|
|
4082
4182
|
end
|
4083
4183
|
end
|
4084
4184
|
|
4185
|
+
# StopWebRecord请求参数结构体
|
4186
|
+
class StopWebRecordRequest < TencentCloud::Common::AbstractModel
|
4187
|
+
# @param TaskId: 需要停止的任务Id
|
4188
|
+
# @type TaskId: String
|
4189
|
+
|
4190
|
+
attr_accessor :TaskId
|
4191
|
+
|
4192
|
+
def initialize(taskid=nil)
|
4193
|
+
@TaskId = taskid
|
4194
|
+
end
|
4195
|
+
|
4196
|
+
def deserialize(params)
|
4197
|
+
@TaskId = params['TaskId']
|
4198
|
+
end
|
4199
|
+
end
|
4200
|
+
|
4201
|
+
# StopWebRecord返回参数结构体
|
4202
|
+
class StopWebRecordResponse < TencentCloud::Common::AbstractModel
|
4203
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
4204
|
+
# @type RequestId: String
|
4205
|
+
|
4206
|
+
attr_accessor :RequestId
|
4207
|
+
|
4208
|
+
def initialize(requestid=nil)
|
4209
|
+
@RequestId = requestid
|
4210
|
+
end
|
4211
|
+
|
4212
|
+
def deserialize(params)
|
4213
|
+
@RequestId = params['RequestId']
|
4214
|
+
end
|
4215
|
+
end
|
4216
|
+
|
4085
4217
|
# 云端录制查询接口,录制文件的信息
|
4086
4218
|
class StorageFile < TencentCloud::Common::AbstractModel
|
4087
4219
|
# @param UserId: 录制文件对应的UserId,如果是混流的话的这里返回的是空串。
|
@@ -4257,7 +4389,7 @@ module TencentCloud
|
|
4257
4389
|
# @param MediaType: 上传到vod平台的录制文件格式类型,0:mp4(默认), 1: hls, 2:aac(StreamType=1纯音频录制时有效),
|
4258
4390
|
# 3: hls+mp4, 4: hls+aac(StreamType=1纯音频录制时有效)。
|
4259
4391
|
# @type MediaType: Integer
|
4260
|
-
# @param UserDefineRecordId: 仅支持API录制上传vod,该参数表示用户可以自定义录制文件名前缀,【限制长度为64字节,只允许包含大小写英文字母(a-zA-Z)、数字(0-9
|
4392
|
+
# @param UserDefineRecordId: 仅支持API录制上传vod,该参数表示用户可以自定义录制文件名前缀,【限制长度为64字节,只允许包含大小写英文字母(a-zA-Z)、数字(0-9)及下划线和连词符】。前缀与自动生成的录制文件名之间用`__UserDefine_u_` 分开。
|
4261
4393
|
# @type UserDefineRecordId: String
|
4262
4394
|
|
4263
4395
|
attr_accessor :Procedure, :ExpireTime, :StorageRegion, :ClassId, :SubAppId, :SessionContext, :SourceContext, :MediaType, :UserDefineRecordId
|
@@ -4769,6 +4901,30 @@ module TencentCloud
|
|
4769
4901
|
end
|
4770
4902
|
end
|
4771
4903
|
|
4904
|
+
# 页面录制视频参数
|
4905
|
+
class WebRecordVideoParams < TencentCloud::Common::AbstractModel
|
4906
|
+
# @param Width: 录制画面宽度,默认为1280,取值范围[0, 1920]
|
4907
|
+
# @type Width: Integer
|
4908
|
+
# @param Height: 录制画面高度,默认为720,取值范围[0, 1080]
|
4909
|
+
# @type Height: Integer
|
4910
|
+
# @param Format: 指定输出格式,可选hls,mp4
|
4911
|
+
# @type Format: String
|
4912
|
+
|
4913
|
+
attr_accessor :Width, :Height, :Format
|
4914
|
+
|
4915
|
+
def initialize(width=nil, height=nil, format=nil)
|
4916
|
+
@Width = width
|
4917
|
+
@Height = height
|
4918
|
+
@Format = format
|
4919
|
+
end
|
4920
|
+
|
4921
|
+
def deserialize(params)
|
4922
|
+
@Width = params['Width']
|
4923
|
+
@Height = params['Height']
|
4924
|
+
@Format = params['Format']
|
4925
|
+
end
|
4926
|
+
end
|
4927
|
+
|
4772
4928
|
end
|
4773
4929
|
end
|
4774
4930
|
end
|
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: 3.0.
|
4
|
+
version: 3.0.789
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-03-
|
11
|
+
date: 2024-03-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|