tencentcloud-sdk-mps 3.0.443 → 3.0.445
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/v20190612/client.rb +437 -5
- data/lib/v20190612/models.rb +2915 -125
- 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: a5392e67e3e376ce27723be5167e995a67327409
|
4
|
+
data.tar.gz: 13c7b466d2237ad0710bee8f546e5c8033609216
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f8216dfcebb3a0106b963d00918c608eeaa06eebf28bda9dbaf3e7525fc8615588b3c2b1751f2680fac43cdd68f435427c16469f90bc97a962f04efa9579c31
|
7
|
+
data.tar.gz: 18ce3ee3b2ff8396877fc7a5734ab3c08447ca1d85c9b0c8064aeeb1c3e2ce47348d36e58f5d78091e189319588e05fe131112edd607605536911715c760d261
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.445
|
data/lib/v20190612/client.rb
CHANGED
@@ -245,6 +245,54 @@ module TencentCloud
|
|
245
245
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
246
246
|
end
|
247
247
|
|
248
|
+
# 创建媒体传输的传输流配置。
|
249
|
+
|
250
|
+
# @param request: Request instance for CreateStreamLinkFlow.
|
251
|
+
# @type request: :class:`Tencentcloud::mps::V20190612::CreateStreamLinkFlowRequest`
|
252
|
+
# @rtype: :class:`Tencentcloud::mps::V20190612::CreateStreamLinkFlowResponse`
|
253
|
+
def CreateStreamLinkFlow(request)
|
254
|
+
body = send_request('CreateStreamLinkFlow', request.serialize)
|
255
|
+
response = JSON.parse(body)
|
256
|
+
if response['Response'].key?('Error') == false
|
257
|
+
model = CreateStreamLinkFlowResponse.new
|
258
|
+
model.deserialize(response['Response'])
|
259
|
+
model
|
260
|
+
else
|
261
|
+
code = response['Response']['Error']['Code']
|
262
|
+
message = response['Response']['Error']['Message']
|
263
|
+
reqid = response['Response']['RequestId']
|
264
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
265
|
+
end
|
266
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
267
|
+
raise e
|
268
|
+
rescue StandardError => e
|
269
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
270
|
+
end
|
271
|
+
|
272
|
+
# 创建媒体传输流的输出信息。
|
273
|
+
|
274
|
+
# @param request: Request instance for CreateStreamLinkOutputInfo.
|
275
|
+
# @type request: :class:`Tencentcloud::mps::V20190612::CreateStreamLinkOutputInfoRequest`
|
276
|
+
# @rtype: :class:`Tencentcloud::mps::V20190612::CreateStreamLinkOutputInfoResponse`
|
277
|
+
def CreateStreamLinkOutputInfo(request)
|
278
|
+
body = send_request('CreateStreamLinkOutputInfo', request.serialize)
|
279
|
+
response = JSON.parse(body)
|
280
|
+
if response['Response'].key?('Error') == false
|
281
|
+
model = CreateStreamLinkOutputInfoResponse.new
|
282
|
+
model.deserialize(response['Response'])
|
283
|
+
model
|
284
|
+
else
|
285
|
+
code = response['Response']['Error']['Code']
|
286
|
+
message = response['Response']['Error']['Message']
|
287
|
+
reqid = response['Response']['RequestId']
|
288
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
289
|
+
end
|
290
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
291
|
+
raise e
|
292
|
+
rescue StandardError => e
|
293
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
294
|
+
end
|
295
|
+
|
248
296
|
# 创建用户自定义转码模板,数量上限:1000。
|
249
297
|
|
250
298
|
# @param request: Request instance for CreateTranscodeTemplate.
|
@@ -570,6 +618,54 @@ module TencentCloud
|
|
570
618
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
571
619
|
end
|
572
620
|
|
621
|
+
# 删除媒体传输的传输流配置。
|
622
|
+
|
623
|
+
# @param request: Request instance for DeleteStreamLinkFlow.
|
624
|
+
# @type request: :class:`Tencentcloud::mps::V20190612::DeleteStreamLinkFlowRequest`
|
625
|
+
# @rtype: :class:`Tencentcloud::mps::V20190612::DeleteStreamLinkFlowResponse`
|
626
|
+
def DeleteStreamLinkFlow(request)
|
627
|
+
body = send_request('DeleteStreamLinkFlow', request.serialize)
|
628
|
+
response = JSON.parse(body)
|
629
|
+
if response['Response'].key?('Error') == false
|
630
|
+
model = DeleteStreamLinkFlowResponse.new
|
631
|
+
model.deserialize(response['Response'])
|
632
|
+
model
|
633
|
+
else
|
634
|
+
code = response['Response']['Error']['Code']
|
635
|
+
message = response['Response']['Error']['Message']
|
636
|
+
reqid = response['Response']['RequestId']
|
637
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
638
|
+
end
|
639
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
640
|
+
raise e
|
641
|
+
rescue StandardError => e
|
642
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
643
|
+
end
|
644
|
+
|
645
|
+
# 删除媒体传输流的输出配置。
|
646
|
+
|
647
|
+
# @param request: Request instance for DeleteStreamLinkOutput.
|
648
|
+
# @type request: :class:`Tencentcloud::mps::V20190612::DeleteStreamLinkOutputRequest`
|
649
|
+
# @rtype: :class:`Tencentcloud::mps::V20190612::DeleteStreamLinkOutputResponse`
|
650
|
+
def DeleteStreamLinkOutput(request)
|
651
|
+
body = send_request('DeleteStreamLinkOutput', request.serialize)
|
652
|
+
response = JSON.parse(body)
|
653
|
+
if response['Response'].key?('Error') == false
|
654
|
+
model = DeleteStreamLinkOutputResponse.new
|
655
|
+
model.deserialize(response['Response'])
|
656
|
+
model
|
657
|
+
else
|
658
|
+
code = response['Response']['Error']['Code']
|
659
|
+
message = response['Response']['Error']['Message']
|
660
|
+
reqid = response['Response']['RequestId']
|
661
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
662
|
+
end
|
663
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
664
|
+
raise e
|
665
|
+
rescue StandardError => e
|
666
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
667
|
+
end
|
668
|
+
|
573
669
|
# 删除用户自定义转码模板。
|
574
670
|
|
575
671
|
# @param request: Request instance for DeleteTranscodeTemplate.
|
@@ -906,6 +1002,222 @@ module TencentCloud
|
|
906
1002
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
907
1003
|
end
|
908
1004
|
|
1005
|
+
# 查询媒体传输开通状态。
|
1006
|
+
|
1007
|
+
# @param request: Request instance for DescribeStreamLinkActivateState.
|
1008
|
+
# @type request: :class:`Tencentcloud::mps::V20190612::DescribeStreamLinkActivateStateRequest`
|
1009
|
+
# @rtype: :class:`Tencentcloud::mps::V20190612::DescribeStreamLinkActivateStateResponse`
|
1010
|
+
def DescribeStreamLinkActivateState(request)
|
1011
|
+
body = send_request('DescribeStreamLinkActivateState', request.serialize)
|
1012
|
+
response = JSON.parse(body)
|
1013
|
+
if response['Response'].key?('Error') == false
|
1014
|
+
model = DescribeStreamLinkActivateStateResponse.new
|
1015
|
+
model.deserialize(response['Response'])
|
1016
|
+
model
|
1017
|
+
else
|
1018
|
+
code = response['Response']['Error']['Code']
|
1019
|
+
message = response['Response']['Error']['Message']
|
1020
|
+
reqid = response['Response']['RequestId']
|
1021
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1022
|
+
end
|
1023
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1024
|
+
raise e
|
1025
|
+
rescue StandardError => e
|
1026
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1027
|
+
end
|
1028
|
+
|
1029
|
+
# 查询媒体输入流的配置信息。
|
1030
|
+
|
1031
|
+
# @param request: Request instance for DescribeStreamLinkFlow.
|
1032
|
+
# @type request: :class:`Tencentcloud::mps::V20190612::DescribeStreamLinkFlowRequest`
|
1033
|
+
# @rtype: :class:`Tencentcloud::mps::V20190612::DescribeStreamLinkFlowResponse`
|
1034
|
+
def DescribeStreamLinkFlow(request)
|
1035
|
+
body = send_request('DescribeStreamLinkFlow', request.serialize)
|
1036
|
+
response = JSON.parse(body)
|
1037
|
+
if response['Response'].key?('Error') == false
|
1038
|
+
model = DescribeStreamLinkFlowResponse.new
|
1039
|
+
model.deserialize(response['Response'])
|
1040
|
+
model
|
1041
|
+
else
|
1042
|
+
code = response['Response']['Error']['Code']
|
1043
|
+
message = response['Response']['Error']['Message']
|
1044
|
+
reqid = response['Response']['RequestId']
|
1045
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1046
|
+
end
|
1047
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1048
|
+
raise e
|
1049
|
+
rescue StandardError => e
|
1050
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1051
|
+
end
|
1052
|
+
|
1053
|
+
# 查询媒体传输流的日志信息。
|
1054
|
+
|
1055
|
+
# @param request: Request instance for DescribeStreamLinkFlowLogs.
|
1056
|
+
# @type request: :class:`Tencentcloud::mps::V20190612::DescribeStreamLinkFlowLogsRequest`
|
1057
|
+
# @rtype: :class:`Tencentcloud::mps::V20190612::DescribeStreamLinkFlowLogsResponse`
|
1058
|
+
def DescribeStreamLinkFlowLogs(request)
|
1059
|
+
body = send_request('DescribeStreamLinkFlowLogs', request.serialize)
|
1060
|
+
response = JSON.parse(body)
|
1061
|
+
if response['Response'].key?('Error') == false
|
1062
|
+
model = DescribeStreamLinkFlowLogsResponse.new
|
1063
|
+
model.deserialize(response['Response'])
|
1064
|
+
model
|
1065
|
+
else
|
1066
|
+
code = response['Response']['Error']['Code']
|
1067
|
+
message = response['Response']['Error']['Message']
|
1068
|
+
reqid = response['Response']['RequestId']
|
1069
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1070
|
+
end
|
1071
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1072
|
+
raise e
|
1073
|
+
rescue StandardError => e
|
1074
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1075
|
+
end
|
1076
|
+
|
1077
|
+
# 查询媒体传输流的媒体质量数据。
|
1078
|
+
|
1079
|
+
# @param request: Request instance for DescribeStreamLinkFlowMediaStatistics.
|
1080
|
+
# @type request: :class:`Tencentcloud::mps::V20190612::DescribeStreamLinkFlowMediaStatisticsRequest`
|
1081
|
+
# @rtype: :class:`Tencentcloud::mps::V20190612::DescribeStreamLinkFlowMediaStatisticsResponse`
|
1082
|
+
def DescribeStreamLinkFlowMediaStatistics(request)
|
1083
|
+
body = send_request('DescribeStreamLinkFlowMediaStatistics', request.serialize)
|
1084
|
+
response = JSON.parse(body)
|
1085
|
+
if response['Response'].key?('Error') == false
|
1086
|
+
model = DescribeStreamLinkFlowMediaStatisticsResponse.new
|
1087
|
+
model.deserialize(response['Response'])
|
1088
|
+
model
|
1089
|
+
else
|
1090
|
+
code = response['Response']['Error']['Code']
|
1091
|
+
message = response['Response']['Error']['Message']
|
1092
|
+
reqid = response['Response']['RequestId']
|
1093
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1094
|
+
end
|
1095
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1096
|
+
raise e
|
1097
|
+
rescue StandardError => e
|
1098
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1099
|
+
end
|
1100
|
+
|
1101
|
+
# 实时查询流的当前状态
|
1102
|
+
|
1103
|
+
# @param request: Request instance for DescribeStreamLinkFlowRealtimeStatus.
|
1104
|
+
# @type request: :class:`Tencentcloud::mps::V20190612::DescribeStreamLinkFlowRealtimeStatusRequest`
|
1105
|
+
# @rtype: :class:`Tencentcloud::mps::V20190612::DescribeStreamLinkFlowRealtimeStatusResponse`
|
1106
|
+
def DescribeStreamLinkFlowRealtimeStatus(request)
|
1107
|
+
body = send_request('DescribeStreamLinkFlowRealtimeStatus', request.serialize)
|
1108
|
+
response = JSON.parse(body)
|
1109
|
+
if response['Response'].key?('Error') == false
|
1110
|
+
model = DescribeStreamLinkFlowRealtimeStatusResponse.new
|
1111
|
+
model.deserialize(response['Response'])
|
1112
|
+
model
|
1113
|
+
else
|
1114
|
+
code = response['Response']['Error']['Code']
|
1115
|
+
message = response['Response']['Error']['Message']
|
1116
|
+
reqid = response['Response']['RequestId']
|
1117
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1118
|
+
end
|
1119
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1120
|
+
raise e
|
1121
|
+
rescue StandardError => e
|
1122
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1123
|
+
end
|
1124
|
+
|
1125
|
+
# 查询媒体传输流的SRT质量数据。
|
1126
|
+
|
1127
|
+
# @param request: Request instance for DescribeStreamLinkFlowSRTStatistics.
|
1128
|
+
# @type request: :class:`Tencentcloud::mps::V20190612::DescribeStreamLinkFlowSRTStatisticsRequest`
|
1129
|
+
# @rtype: :class:`Tencentcloud::mps::V20190612::DescribeStreamLinkFlowSRTStatisticsResponse`
|
1130
|
+
def DescribeStreamLinkFlowSRTStatistics(request)
|
1131
|
+
body = send_request('DescribeStreamLinkFlowSRTStatistics', request.serialize)
|
1132
|
+
response = JSON.parse(body)
|
1133
|
+
if response['Response'].key?('Error') == false
|
1134
|
+
model = DescribeStreamLinkFlowSRTStatisticsResponse.new
|
1135
|
+
model.deserialize(response['Response'])
|
1136
|
+
model
|
1137
|
+
else
|
1138
|
+
code = response['Response']['Error']['Code']
|
1139
|
+
message = response['Response']['Error']['Message']
|
1140
|
+
reqid = response['Response']['RequestId']
|
1141
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1142
|
+
end
|
1143
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1144
|
+
raise e
|
1145
|
+
rescue StandardError => e
|
1146
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1147
|
+
end
|
1148
|
+
|
1149
|
+
# 查询媒体传输流的媒体质量数据。
|
1150
|
+
|
1151
|
+
# @param request: Request instance for DescribeStreamLinkFlowStatistics.
|
1152
|
+
# @type request: :class:`Tencentcloud::mps::V20190612::DescribeStreamLinkFlowStatisticsRequest`
|
1153
|
+
# @rtype: :class:`Tencentcloud::mps::V20190612::DescribeStreamLinkFlowStatisticsResponse`
|
1154
|
+
def DescribeStreamLinkFlowStatistics(request)
|
1155
|
+
body = send_request('DescribeStreamLinkFlowStatistics', request.serialize)
|
1156
|
+
response = JSON.parse(body)
|
1157
|
+
if response['Response'].key?('Error') == false
|
1158
|
+
model = DescribeStreamLinkFlowStatisticsResponse.new
|
1159
|
+
model.deserialize(response['Response'])
|
1160
|
+
model
|
1161
|
+
else
|
1162
|
+
code = response['Response']['Error']['Code']
|
1163
|
+
message = response['Response']['Error']['Message']
|
1164
|
+
reqid = response['Response']['RequestId']
|
1165
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1166
|
+
end
|
1167
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1168
|
+
raise e
|
1169
|
+
rescue StandardError => e
|
1170
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1171
|
+
end
|
1172
|
+
|
1173
|
+
# 批量查询媒体输入流的配置信息。
|
1174
|
+
|
1175
|
+
# @param request: Request instance for DescribeStreamLinkFlows.
|
1176
|
+
# @type request: :class:`Tencentcloud::mps::V20190612::DescribeStreamLinkFlowsRequest`
|
1177
|
+
# @rtype: :class:`Tencentcloud::mps::V20190612::DescribeStreamLinkFlowsResponse`
|
1178
|
+
def DescribeStreamLinkFlows(request)
|
1179
|
+
body = send_request('DescribeStreamLinkFlows', request.serialize)
|
1180
|
+
response = JSON.parse(body)
|
1181
|
+
if response['Response'].key?('Error') == false
|
1182
|
+
model = DescribeStreamLinkFlowsResponse.new
|
1183
|
+
model.deserialize(response['Response'])
|
1184
|
+
model
|
1185
|
+
else
|
1186
|
+
code = response['Response']['Error']['Code']
|
1187
|
+
message = response['Response']['Error']['Message']
|
1188
|
+
reqid = response['Response']['RequestId']
|
1189
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1190
|
+
end
|
1191
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1192
|
+
raise e
|
1193
|
+
rescue StandardError => e
|
1194
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1195
|
+
end
|
1196
|
+
|
1197
|
+
# 查询媒体传输所有地区。
|
1198
|
+
|
1199
|
+
# @param request: Request instance for DescribeStreamLinkRegions.
|
1200
|
+
# @type request: :class:`Tencentcloud::mps::V20190612::DescribeStreamLinkRegionsRequest`
|
1201
|
+
# @rtype: :class:`Tencentcloud::mps::V20190612::DescribeStreamLinkRegionsResponse`
|
1202
|
+
def DescribeStreamLinkRegions(request)
|
1203
|
+
body = send_request('DescribeStreamLinkRegions', request.serialize)
|
1204
|
+
response = JSON.parse(body)
|
1205
|
+
if response['Response'].key?('Error') == false
|
1206
|
+
model = DescribeStreamLinkRegionsResponse.new
|
1207
|
+
model.deserialize(response['Response'])
|
1208
|
+
model
|
1209
|
+
else
|
1210
|
+
code = response['Response']['Error']['Code']
|
1211
|
+
message = response['Response']['Error']['Message']
|
1212
|
+
reqid = response['Response']['RequestId']
|
1213
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1214
|
+
end
|
1215
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1216
|
+
raise e
|
1217
|
+
rescue StandardError => e
|
1218
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1219
|
+
end
|
1220
|
+
|
909
1221
|
# 通过任务 ID 查询任务的执行状态和结果的详细信息(最多可以查询3天之内提交的任务)。
|
910
1222
|
|
911
1223
|
# @param request: Request instance for DescribeTaskDetail.
|
@@ -1394,6 +1706,78 @@ module TencentCloud
|
|
1394
1706
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1395
1707
|
end
|
1396
1708
|
|
1709
|
+
# 修改媒体传输的传输流配置信息。
|
1710
|
+
|
1711
|
+
# @param request: Request instance for ModifyStreamLinkFlow.
|
1712
|
+
# @type request: :class:`Tencentcloud::mps::V20190612::ModifyStreamLinkFlowRequest`
|
1713
|
+
# @rtype: :class:`Tencentcloud::mps::V20190612::ModifyStreamLinkFlowResponse`
|
1714
|
+
def ModifyStreamLinkFlow(request)
|
1715
|
+
body = send_request('ModifyStreamLinkFlow', request.serialize)
|
1716
|
+
response = JSON.parse(body)
|
1717
|
+
if response['Response'].key?('Error') == false
|
1718
|
+
model = ModifyStreamLinkFlowResponse.new
|
1719
|
+
model.deserialize(response['Response'])
|
1720
|
+
model
|
1721
|
+
else
|
1722
|
+
code = response['Response']['Error']['Code']
|
1723
|
+
message = response['Response']['Error']['Message']
|
1724
|
+
reqid = response['Response']['RequestId']
|
1725
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1726
|
+
end
|
1727
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1728
|
+
raise e
|
1729
|
+
rescue StandardError => e
|
1730
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1731
|
+
end
|
1732
|
+
|
1733
|
+
# 修改媒体传输流的输入信息。
|
1734
|
+
|
1735
|
+
# @param request: Request instance for ModifyStreamLinkInput.
|
1736
|
+
# @type request: :class:`Tencentcloud::mps::V20190612::ModifyStreamLinkInputRequest`
|
1737
|
+
# @rtype: :class:`Tencentcloud::mps::V20190612::ModifyStreamLinkInputResponse`
|
1738
|
+
def ModifyStreamLinkInput(request)
|
1739
|
+
body = send_request('ModifyStreamLinkInput', request.serialize)
|
1740
|
+
response = JSON.parse(body)
|
1741
|
+
if response['Response'].key?('Error') == false
|
1742
|
+
model = ModifyStreamLinkInputResponse.new
|
1743
|
+
model.deserialize(response['Response'])
|
1744
|
+
model
|
1745
|
+
else
|
1746
|
+
code = response['Response']['Error']['Code']
|
1747
|
+
message = response['Response']['Error']['Message']
|
1748
|
+
reqid = response['Response']['RequestId']
|
1749
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1750
|
+
end
|
1751
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1752
|
+
raise e
|
1753
|
+
rescue StandardError => e
|
1754
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1755
|
+
end
|
1756
|
+
|
1757
|
+
# 修改媒体传输流的输出配置。
|
1758
|
+
|
1759
|
+
# @param request: Request instance for ModifyStreamLinkOutputInfo.
|
1760
|
+
# @type request: :class:`Tencentcloud::mps::V20190612::ModifyStreamLinkOutputInfoRequest`
|
1761
|
+
# @rtype: :class:`Tencentcloud::mps::V20190612::ModifyStreamLinkOutputInfoResponse`
|
1762
|
+
def ModifyStreamLinkOutputInfo(request)
|
1763
|
+
body = send_request('ModifyStreamLinkOutputInfo', request.serialize)
|
1764
|
+
response = JSON.parse(body)
|
1765
|
+
if response['Response'].key?('Error') == false
|
1766
|
+
model = ModifyStreamLinkOutputInfoResponse.new
|
1767
|
+
model.deserialize(response['Response'])
|
1768
|
+
model
|
1769
|
+
else
|
1770
|
+
code = response['Response']['Error']['Code']
|
1771
|
+
message = response['Response']['Error']['Message']
|
1772
|
+
reqid = response['Response']['RequestId']
|
1773
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1774
|
+
end
|
1775
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1776
|
+
raise e
|
1777
|
+
rescue StandardError => e
|
1778
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1779
|
+
end
|
1780
|
+
|
1397
1781
|
# 修改用户自定义转码模板信息。
|
1398
1782
|
|
1399
1783
|
# @param request: Request instance for ModifyTranscodeTemplate.
|
@@ -1519,7 +1903,7 @@ module TencentCloud
|
|
1519
1903
|
# 对直播流媒体发起处理任务,功能包括:
|
1520
1904
|
|
1521
1905
|
# * 智能内容审核(画面鉴黄、敏感信息检测、声音鉴黄);
|
1522
|
-
# *
|
1906
|
+
# * 智能内容识别(人脸、文本全文、文本关键词、语音全文、语音关键词、语音实时翻译)。
|
1523
1907
|
|
1524
1908
|
# 直播流处理事件通知实时写入用户指定的消息队列 CMQ 中,用户需要从消息队列 CMQ 中获取事件通知结果,同时处理过程中存在输出文件的,会写入用户指定的输出文件的目标存储中。
|
1525
1909
|
|
@@ -1545,16 +1929,16 @@ module TencentCloud
|
|
1545
1929
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1546
1930
|
end
|
1547
1931
|
|
1548
|
-
# 对 COS 中的媒体文件发起处理任务,功能包括:
|
1549
|
-
# 1.
|
1932
|
+
# 对 URL视频链接 或 COS 中的媒体文件发起处理任务,功能包括:
|
1933
|
+
# 1. 视频转码(普通转码、极速高清转码、音视频增强);
|
1550
1934
|
# 2. 视频转动图;
|
1551
1935
|
# 3. 对视频按指定时间点截图;
|
1552
1936
|
# 4. 对视频采样截图;
|
1553
1937
|
# 5. 对视频截图雪碧图;
|
1554
1938
|
# 6. 对视频转自适应码流;
|
1555
1939
|
# 7. 智能内容审核(鉴黄、敏感信息检测);
|
1556
|
-
# 8.
|
1557
|
-
# 9.
|
1940
|
+
# 8. 智能内容分析(标签、分类、封面、按帧标签、拆条、集锦、片头片尾);
|
1941
|
+
# 9. 智能内容识别(人脸、文本全文、文本关键词、语音全文、语音关键词、语音翻译、物体识别)。
|
1558
1942
|
|
1559
1943
|
# @param request: Request instance for ProcessMedia.
|
1560
1944
|
# @type request: :class:`Tencentcloud::mps::V20190612::ProcessMediaRequest`
|
@@ -1626,6 +2010,54 @@ module TencentCloud
|
|
1626
2010
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1627
2011
|
end
|
1628
2012
|
|
2013
|
+
# 启动媒体传输流。
|
2014
|
+
|
2015
|
+
# @param request: Request instance for StartStreamLinkFlow.
|
2016
|
+
# @type request: :class:`Tencentcloud::mps::V20190612::StartStreamLinkFlowRequest`
|
2017
|
+
# @rtype: :class:`Tencentcloud::mps::V20190612::StartStreamLinkFlowResponse`
|
2018
|
+
def StartStreamLinkFlow(request)
|
2019
|
+
body = send_request('StartStreamLinkFlow', request.serialize)
|
2020
|
+
response = JSON.parse(body)
|
2021
|
+
if response['Response'].key?('Error') == false
|
2022
|
+
model = StartStreamLinkFlowResponse.new
|
2023
|
+
model.deserialize(response['Response'])
|
2024
|
+
model
|
2025
|
+
else
|
2026
|
+
code = response['Response']['Error']['Code']
|
2027
|
+
message = response['Response']['Error']['Message']
|
2028
|
+
reqid = response['Response']['RequestId']
|
2029
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2030
|
+
end
|
2031
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2032
|
+
raise e
|
2033
|
+
rescue StandardError => e
|
2034
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2035
|
+
end
|
2036
|
+
|
2037
|
+
# 停止媒体传输流。
|
2038
|
+
|
2039
|
+
# @param request: Request instance for StopStreamLinkFlow.
|
2040
|
+
# @type request: :class:`Tencentcloud::mps::V20190612::StopStreamLinkFlowRequest`
|
2041
|
+
# @rtype: :class:`Tencentcloud::mps::V20190612::StopStreamLinkFlowResponse`
|
2042
|
+
def StopStreamLinkFlow(request)
|
2043
|
+
body = send_request('StopStreamLinkFlow', request.serialize)
|
2044
|
+
response = JSON.parse(body)
|
2045
|
+
if response['Response'].key?('Error') == false
|
2046
|
+
model = StopStreamLinkFlowResponse.new
|
2047
|
+
model.deserialize(response['Response'])
|
2048
|
+
model
|
2049
|
+
else
|
2050
|
+
code = response['Response']['Error']['Code']
|
2051
|
+
message = response['Response']['Error']['Message']
|
2052
|
+
reqid = response['Response']['RequestId']
|
2053
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2054
|
+
end
|
2055
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2056
|
+
raise e
|
2057
|
+
rescue StandardError => e
|
2058
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2059
|
+
end
|
2060
|
+
|
1629
2061
|
|
1630
2062
|
end
|
1631
2063
|
end
|