tencentcloud-sdk-trtc 3.0.711 → 3.0.712

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 85119b85967c7ffb7bd0c0e8fa23faa0b927a63e
4
- data.tar.gz: a70e75dc692821cdd92f4736b0c5f41a4e390c19
3
+ metadata.gz: 2f397855deb26b15118c7d71f67838a6eb629933
4
+ data.tar.gz: c9d3423607d963e7f487747e6f8f5a2d5ebac43e
5
5
  SHA512:
6
- metadata.gz: f97121f4f5093e0fefe6e803efdc5fbeab97b2a3d8248b649571acece43b07d8f16e0baf21612eef5587c52b51b46df85c8c350bc0751b3a840da7e24a0813e7
7
- data.tar.gz: 29718157d42eb7a230e34c3240fe7098d84ec5a8c42245f1d73d8c253ef34b703abaf9e6e6cc46fcee08f10ed19e18e464ba9cabcca5baaddfa3e1b4a97348b2
6
+ metadata.gz: fb83659613c28999caa3f2b3da21880e9deacd1c0bad1b898b47316ba7351043384c429f49baf349286866e20ee07663bbabc91f4d7228e00c2813bf78e054ed
7
+ data.tar.gz: e89346146dff04c96529d71c4af11504c36abc7f898dfa344fd5e4dfaca8bc44472276c0016363f4675b41f452e699e6e5a5ac6c6bc4af4b4c6c9b3c43068b34
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.711
1
+ 3.0.712
@@ -379,6 +379,30 @@ module TencentCloud
379
379
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
380
380
  end
381
381
 
382
+ # 您可以查询转推任务的状态。
383
+
384
+ # @param request: Request instance for DescribeStreamIngest.
385
+ # @type request: :class:`Tencentcloud::trtc::V20190722::DescribeStreamIngestRequest`
386
+ # @rtype: :class:`Tencentcloud::trtc::V20190722::DescribeStreamIngestResponse`
387
+ def DescribeStreamIngest(request)
388
+ body = send_request('DescribeStreamIngest', request.serialize)
389
+ response = JSON.parse(body)
390
+ if response['Response'].key?('Error') == false
391
+ model = DescribeStreamIngestResponse.new
392
+ model.deserialize(response['Response'])
393
+ model
394
+ else
395
+ code = response['Response']['Error']['Code']
396
+ message = response['Response']['Error']['Message']
397
+ reqid = response['Response']['RequestId']
398
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
399
+ end
400
+ rescue TencentCloud::Common::TencentCloudSDKException => e
401
+ raise e
402
+ rescue StandardError => e
403
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
404
+ end
405
+
382
406
  # 查询TRTC监控仪表盘-数据大盘质量指标(包括下列指标)
383
407
  # joinSuccessRate:加入频道成功率。
384
408
  # joinSuccessIn5sRate:5s内加入频道成功率。
@@ -1137,6 +1161,30 @@ module TencentCloud
1137
1161
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1138
1162
  end
1139
1163
 
1164
+ # 将一个在线媒体流推到TRTC房间。
1165
+
1166
+ # @param request: Request instance for StartStreamIngest.
1167
+ # @type request: :class:`Tencentcloud::trtc::V20190722::StartStreamIngestRequest`
1168
+ # @rtype: :class:`Tencentcloud::trtc::V20190722::StartStreamIngestResponse`
1169
+ def StartStreamIngest(request)
1170
+ body = send_request('StartStreamIngest', request.serialize)
1171
+ response = JSON.parse(body)
1172
+ if response['Response'].key?('Error') == false
1173
+ model = StartStreamIngestResponse.new
1174
+ model.deserialize(response['Response'])
1175
+ model
1176
+ else
1177
+ code = response['Response']['Error']['Code']
1178
+ message = response['Response']['Error']['Message']
1179
+ reqid = response['Response']['RequestId']
1180
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1181
+ end
1182
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1183
+ raise e
1184
+ rescue StandardError => e
1185
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1186
+ end
1187
+
1140
1188
  # 接口说明:结束云端混流
1141
1189
 
1142
1190
  # @param request: Request instance for StopMCUMixTranscode.
@@ -1209,6 +1257,30 @@ module TencentCloud
1209
1257
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1210
1258
  end
1211
1259
 
1260
+ # 停止一个拉流转推任务。
1261
+
1262
+ # @param request: Request instance for StopStreamIngest.
1263
+ # @type request: :class:`Tencentcloud::trtc::V20190722::StopStreamIngestRequest`
1264
+ # @rtype: :class:`Tencentcloud::trtc::V20190722::StopStreamIngestResponse`
1265
+ def StopStreamIngest(request)
1266
+ body = send_request('StopStreamIngest', request.serialize)
1267
+ response = JSON.parse(body)
1268
+ if response['Response'].key?('Error') == false
1269
+ model = StopStreamIngestResponse.new
1270
+ model.deserialize(response['Response'])
1271
+ model
1272
+ else
1273
+ code = response['Response']['Error']['Code']
1274
+ message = response['Response']['Error']['Message']
1275
+ reqid = response['Response']['RequestId']
1276
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1277
+ end
1278
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1279
+ raise e
1280
+ rescue StandardError => e
1281
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1282
+ end
1283
+
1212
1284
  # 更新转推任务。
1213
1285
  # 注:请参见启动转推任务的接口说明和使用说明。
1214
1286
 
@@ -129,6 +129,30 @@ module TencentCloud
129
129
  end
130
130
  end
131
131
 
132
+ # 音频转码参数
133
+ class AudioEncodeParams < TencentCloud::Common::AbstractModel
134
+ # @param SampleRate: 音频采样率,取值为[48000, 44100],单位是Hz。
135
+ # @type SampleRate: Integer
136
+ # @param Channel: 音频声道数,取值范围[1,2],1表示音频为单声道,2表示音频为双声道。
137
+ # @type Channel: Integer
138
+ # @param BitRate: 音频码率,取值范围[8,500],单位为kbps。
139
+ # @type BitRate: Integer
140
+
141
+ attr_accessor :SampleRate, :Channel, :BitRate
142
+
143
+ def initialize(samplerate=nil, channel=nil, bitrate=nil)
144
+ @SampleRate = samplerate
145
+ @Channel = channel
146
+ @BitRate = bitrate
147
+ end
148
+
149
+ def deserialize(params)
150
+ @SampleRate = params['SampleRate']
151
+ @Channel = params['Channel']
152
+ @BitRate = params['BitRate']
153
+ end
154
+ end
155
+
132
156
  # 录制音频转码参数。
133
157
  class AudioParams < TencentCloud::Common::AbstractModel
134
158
  # @param SampleRate: 音频采样率枚举值:(注意1 代表48000HZ, 2 代表44100HZ, 3 代表16000HZ)
@@ -1023,6 +1047,49 @@ module TencentCloud
1023
1047
  end
1024
1048
  end
1025
1049
 
1050
+ # DescribeStreamIngest请求参数结构体
1051
+ class DescribeStreamIngestRequest < TencentCloud::Common::AbstractModel
1052
+ # @param SdkAppId: TRTC的SDKAppId,和任务的房间所对应的SDKAppId相同
1053
+ # @type SdkAppId: Integer
1054
+ # @param TaskId: 任务的唯一Id,在启动任务成功后会返回。
1055
+ # @type TaskId: String
1056
+
1057
+ attr_accessor :SdkAppId, :TaskId
1058
+
1059
+ def initialize(sdkappid=nil, taskid=nil)
1060
+ @SdkAppId = sdkappid
1061
+ @TaskId = taskid
1062
+ end
1063
+
1064
+ def deserialize(params)
1065
+ @SdkAppId = params['SdkAppId']
1066
+ @TaskId = params['TaskId']
1067
+ end
1068
+ end
1069
+
1070
+ # DescribeStreamIngest返回参数结构体
1071
+ class DescribeStreamIngestResponse < TencentCloud::Common::AbstractModel
1072
+ # @param Status: 任务的状态信息。
1073
+ # InProgress:表示当前任务正在进行中。
1074
+ # NotExist:表示当前任务不存在。
1075
+ # 示例值:InProgress
1076
+ # @type Status: String
1077
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1078
+ # @type RequestId: String
1079
+
1080
+ attr_accessor :Status, :RequestId
1081
+
1082
+ def initialize(status=nil, requestid=nil)
1083
+ @Status = status
1084
+ @RequestId = requestid
1085
+ end
1086
+
1087
+ def deserialize(params)
1088
+ @Status = params['Status']
1089
+ @RequestId = params['RequestId']
1090
+ end
1091
+ end
1092
+
1026
1093
  # DescribeTRTCMarketQualityData请求参数结构体
1027
1094
  class DescribeTRTCMarketQualityDataRequest < TencentCloud::Common::AbstractModel
1028
1095
  # @param SdkAppId: 用户SdkAppId(如:1400xxxxxx)
@@ -3766,6 +3833,83 @@ module TencentCloud
3766
3833
  end
3767
3834
  end
3768
3835
 
3836
+ # StartStreamIngest请求参数结构体
3837
+ class StartStreamIngestRequest < TencentCloud::Common::AbstractModel
3838
+ # @param SdkAppId: TRTC的[SdkAppId](https://cloud.tencent.com/document/product/647/46351#sdkappid),和录制的房间所对应的SdkAppId相同。
3839
+ # @type SdkAppId: Integer
3840
+ # @param RoomId: TRTC的[RoomId](https://cloud.tencent.com/document/product/647/46351#roomid),录制的TRTC房间所对应的RoomId。
3841
+ # @type RoomId: String
3842
+ # @param RoomIdType: TRTC房间号的类型。
3843
+ # 【*注意】必须和录制的房间所对应的RoomId类型相同:
3844
+ # 0: 字符串类型的RoomId
3845
+ # 1: 32位整型的RoomId(默认)
3846
+ # @type RoomIdType: Integer
3847
+ # @param UserId: 拉流转推机器人的UserId,用于进房发起拉流转推任务。
3848
+ # @type UserId: String
3849
+ # @param UserSig: 拉流转推机器人UserId对应的校验签名,即UserId和UserSig相当于机器人进房的登录密码,具体计算方法请参考TRTC计算[UserSig](https://cloud.tencent.com/document/product/647/45910#UserSig)的方案。
3850
+ # @type UserSig: String
3851
+ # @param SourceUrl: 源流URL。示例值:https://a.b/test.mp4
3852
+ # @type SourceUrl: Array
3853
+ # @param PrivateMapKey: TRTC房间权限加密串,只有在TRTC控制台启用了高级权限控制的时候需要携带,在TRTC控制台如果开启高级权限控制后,TRTC 的后台服务系统会校验一个叫做 [PrivateMapKey] 的“权限票据”,权限票据中包含了一个加密后的 RoomId 和一个加密后的“权限位列表”。由于 PrivateMapKey 中包含 RoomId,所以只提供了 UserSig 没有提供 PrivateMapKey 时,并不能进入指定的房间。
3854
+ # @type PrivateMapKey: String
3855
+ # @param VideoEncodeParams: 视频编码参数。可选,如果不填,保持原始流的参数。
3856
+ # @type VideoEncodeParams: :class:`Tencentcloud::Trtc.v20190722.models.VideoEncodeParams`
3857
+ # @param AudioEncodeParams: 音频编码参数。可选,如果不填,保持原始流的参数。
3858
+ # @type AudioEncodeParams: :class:`Tencentcloud::Trtc.v20190722.models.AudioEncodeParams`
3859
+
3860
+ attr_accessor :SdkAppId, :RoomId, :RoomIdType, :UserId, :UserSig, :SourceUrl, :PrivateMapKey, :VideoEncodeParams, :AudioEncodeParams
3861
+
3862
+ def initialize(sdkappid=nil, roomid=nil, roomidtype=nil, userid=nil, usersig=nil, sourceurl=nil, privatemapkey=nil, videoencodeparams=nil, audioencodeparams=nil)
3863
+ @SdkAppId = sdkappid
3864
+ @RoomId = roomid
3865
+ @RoomIdType = roomidtype
3866
+ @UserId = userid
3867
+ @UserSig = usersig
3868
+ @SourceUrl = sourceurl
3869
+ @PrivateMapKey = privatemapkey
3870
+ @VideoEncodeParams = videoencodeparams
3871
+ @AudioEncodeParams = audioencodeparams
3872
+ end
3873
+
3874
+ def deserialize(params)
3875
+ @SdkAppId = params['SdkAppId']
3876
+ @RoomId = params['RoomId']
3877
+ @RoomIdType = params['RoomIdType']
3878
+ @UserId = params['UserId']
3879
+ @UserSig = params['UserSig']
3880
+ @SourceUrl = params['SourceUrl']
3881
+ @PrivateMapKey = params['PrivateMapKey']
3882
+ unless params['VideoEncodeParams'].nil?
3883
+ @VideoEncodeParams = VideoEncodeParams.new
3884
+ @VideoEncodeParams.deserialize(params['VideoEncodeParams'])
3885
+ end
3886
+ unless params['AudioEncodeParams'].nil?
3887
+ @AudioEncodeParams = AudioEncodeParams.new
3888
+ @AudioEncodeParams.deserialize(params['AudioEncodeParams'])
3889
+ end
3890
+ end
3891
+ end
3892
+
3893
+ # StartStreamIngest返回参数结构体
3894
+ class StartStreamIngestResponse < TencentCloud::Common::AbstractModel
3895
+ # @param TaskId: 拉流转推的任务 ID。任务 ID 是对一次拉流转推生命周期过程的唯一标识,结束任务时会失去意义。任务 ID 需要业务保存下来,作为下次针对这个任务操作的参数。
3896
+ # @type TaskId: String
3897
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3898
+ # @type RequestId: String
3899
+
3900
+ attr_accessor :TaskId, :RequestId
3901
+
3902
+ def initialize(taskid=nil, requestid=nil)
3903
+ @TaskId = taskid
3904
+ @RequestId = requestid
3905
+ end
3906
+
3907
+ def deserialize(params)
3908
+ @TaskId = params['TaskId']
3909
+ @RequestId = params['RequestId']
3910
+ end
3911
+ end
3912
+
3769
3913
  # StopMCUMixTranscodeByStrRoomId请求参数结构体
3770
3914
  class StopMCUMixTranscodeByStrRoomIdRequest < TencentCloud::Common::AbstractModel
3771
3915
  # @param SdkAppId: TRTC的SDKAppId。
@@ -3878,6 +4022,42 @@ module TencentCloud
3878
4022
  end
3879
4023
  end
3880
4024
 
4025
+ # StopStreamIngest请求参数结构体
4026
+ class StopStreamIngestRequest < TencentCloud::Common::AbstractModel
4027
+ # @param SdkAppId: TRTC的SDKAppId,和任务的房间所对应的SDKAppId相同。
4028
+ # @type SdkAppId: Integer
4029
+ # @param TaskId: 任务的唯一Id,在启动任务成功后会返回。
4030
+ # @type TaskId: String
4031
+
4032
+ attr_accessor :SdkAppId, :TaskId
4033
+
4034
+ def initialize(sdkappid=nil, taskid=nil)
4035
+ @SdkAppId = sdkappid
4036
+ @TaskId = taskid
4037
+ end
4038
+
4039
+ def deserialize(params)
4040
+ @SdkAppId = params['SdkAppId']
4041
+ @TaskId = params['TaskId']
4042
+ end
4043
+ end
4044
+
4045
+ # StopStreamIngest返回参数结构体
4046
+ class StopStreamIngestResponse < TencentCloud::Common::AbstractModel
4047
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4048
+ # @type RequestId: String
4049
+
4050
+ attr_accessor :RequestId
4051
+
4052
+ def initialize(requestid=nil)
4053
+ @RequestId = requestid
4054
+ end
4055
+
4056
+ def deserialize(params)
4057
+ @RequestId = params['RequestId']
4058
+ end
4059
+ end
4060
+
3881
4061
  # 云端录制查询接口,录制文件的信息
3882
4062
  class StorageFile < TencentCloud::Common::AbstractModel
3883
4063
  # @param UserId: 录制文件对应的UserId,如果是混流的话的这里返回的是空串。
@@ -4320,6 +4500,38 @@ module TencentCloud
4320
4500
  end
4321
4501
  end
4322
4502
 
4503
+ # 视频转码参数
4504
+ class VideoEncodeParams < TencentCloud::Common::AbstractModel
4505
+ # @param Width: 宽。取值范围[0,1920],单位为像素值。
4506
+ # @type Width: Integer
4507
+ # @param Height: 高。取值范围[0,1080],单位为像素值。
4508
+ # @type Height: Integer
4509
+ # @param Fps: 帧率。取值范围[1,60],表示帧率可选范围为1到60fps。
4510
+ # @type Fps: Integer
4511
+ # @param BitRate: 码率。取值范围[1,10000],单位为kbps。
4512
+ # @type BitRate: Integer
4513
+ # @param Gop: gop。取值范围[1,2],单位为秒。
4514
+ # @type Gop: Integer
4515
+
4516
+ attr_accessor :Width, :Height, :Fps, :BitRate, :Gop
4517
+
4518
+ def initialize(width=nil, height=nil, fps=nil, bitrate=nil, gop=nil)
4519
+ @Width = width
4520
+ @Height = height
4521
+ @Fps = fps
4522
+ @BitRate = bitrate
4523
+ @Gop = gop
4524
+ end
4525
+
4526
+ def deserialize(params)
4527
+ @Width = params['Width']
4528
+ @Height = params['Height']
4529
+ @Fps = params['Fps']
4530
+ @BitRate = params['BitRate']
4531
+ @Gop = params['Gop']
4532
+ end
4533
+ end
4534
+
4323
4535
  # 录制视频转码参数。
4324
4536
  class VideoParams < TencentCloud::Common::AbstractModel
4325
4537
  # @param Width: 视频的宽度值,单位为像素,默认值360。不能超过1920,与height的乘积不能超过1920*1080。
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.711
4
+ version: 3.0.712
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-23 00:00:00.000000000 Z
11
+ date: 2023-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common