tencentcloud-sdk-vod 3.0.410 → 3.0.411
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180717/client.rb +24 -0
- data/lib/v20180717/models.rb +409 -11
- 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: 1fa6a94f8ad8db76ce2ad1f64783b236d0f124ac
|
4
|
+
data.tar.gz: fba5b0d32306268e30488e3d6cb816b67495b319
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3aa66b05854bcb6cfbced3fa9b37dc0efab46b4f3b0908d3f26e8632ec32b5b36c0db91f6c20c452b28d9dee2f9971997049a270c1511294d57c9fc7fcc422a
|
7
|
+
data.tar.gz: 260fd4067f3b81faee721ae81b76df082725e98a0778262db9724a59e4cf6337efd71d66edf039888e816aa4050b6ef291f60f6dcedd370a6d91dfdca659e6a1
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.411
|
data/lib/v20180717/client.rb
CHANGED
@@ -2251,6 +2251,30 @@ module TencentCloud
|
|
2251
2251
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2252
2252
|
end
|
2253
2253
|
|
2254
|
+
# 用于提取溯源水印。
|
2255
|
+
|
2256
|
+
# @param request: Request instance for ExtractTraceWatermark.
|
2257
|
+
# @type request: :class:`Tencentcloud::vod::V20180717::ExtractTraceWatermarkRequest`
|
2258
|
+
# @rtype: :class:`Tencentcloud::vod::V20180717::ExtractTraceWatermarkResponse`
|
2259
|
+
def ExtractTraceWatermark(request)
|
2260
|
+
body = send_request('ExtractTraceWatermark', request.serialize)
|
2261
|
+
response = JSON.parse(body)
|
2262
|
+
if response['Response'].key?('Error') == false
|
2263
|
+
model = ExtractTraceWatermarkResponse.new
|
2264
|
+
model.deserialize(response['Response'])
|
2265
|
+
model
|
2266
|
+
else
|
2267
|
+
code = response['Response']['Error']['Code']
|
2268
|
+
message = response['Response']['Error']['Message']
|
2269
|
+
reqid = response['Response']['RequestId']
|
2270
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2271
|
+
end
|
2272
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2273
|
+
raise e
|
2274
|
+
rescue StandardError => e
|
2275
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2276
|
+
end
|
2277
|
+
|
2254
2278
|
# * 对媒体禁播后,除了点播控制台预览,其他场景访问视频各种资源的 URL(原始文件、转码输出文件、截图等)均会返回 403。
|
2255
2279
|
# 禁播/解禁操作全网生效时间约 5~10 分钟。
|
2256
2280
|
|
data/lib/v20180717/models.rb
CHANGED
@@ -231,15 +231,20 @@ module TencentCloud
|
|
231
231
|
# <li>当媒体文件为 DASH 时,大小是 mpd 和分片文件大小的总和;</li>
|
232
232
|
# <li><font color=red>注意</font>:在 2022-01-10T16:00:00Z 前处理生成的自适应码流文件此字段为0。</li>
|
233
233
|
# @type Size: Integer
|
234
|
+
# @param DigitalWatermarkType: 数字水印类型。可选值:
|
235
|
+
# <li>Trace 表示经过溯源水印处理;</li>
|
236
|
+
# <li>None 表示没有经过数字水印处理。</li>
|
237
|
+
# @type DigitalWatermarkType: String
|
234
238
|
|
235
|
-
attr_accessor :Definition, :Package, :DrmType, :Url, :Size
|
239
|
+
attr_accessor :Definition, :Package, :DrmType, :Url, :Size, :DigitalWatermarkType
|
236
240
|
|
237
|
-
def initialize(definition=nil, package=nil, drmtype=nil, url=nil, size=nil)
|
241
|
+
def initialize(definition=nil, package=nil, drmtype=nil, url=nil, size=nil, digitalwatermarktype=nil)
|
238
242
|
@Definition = definition
|
239
243
|
@Package = package
|
240
244
|
@DrmType = drmtype
|
241
245
|
@Url = url
|
242
246
|
@Size = size
|
247
|
+
@DigitalWatermarkType = digitalwatermarktype
|
243
248
|
end
|
244
249
|
|
245
250
|
def deserialize(params)
|
@@ -248,6 +253,7 @@ module TencentCloud
|
|
248
253
|
@DrmType = params['DrmType']
|
249
254
|
@Url = params['Url']
|
250
255
|
@Size = params['Size']
|
256
|
+
@DigitalWatermarkType = params['DigitalWatermarkType']
|
251
257
|
end
|
252
258
|
end
|
253
259
|
|
@@ -9465,6 +9471,7 @@ module TencentCloud
|
|
9465
9471
|
# <li>FastClipMedia:快速剪辑任务;</li>
|
9466
9472
|
# <li>RemoveWatermarkTask:智能去除水印任务;</li>
|
9467
9473
|
# <li> ReviewAudioVideo:音视频审核任务。</li>
|
9474
|
+
# <li> ReduceMediaBitrate:降码率任务。</li>
|
9468
9475
|
# @type TaskType: String
|
9469
9476
|
# @param Status: 任务状态,取值:
|
9470
9477
|
# <li>WAITING:等待中;</li>
|
@@ -9516,15 +9523,21 @@ module TencentCloud
|
|
9516
9523
|
# @param RemoveWatermarkTask: 智能去除水印任务信息,仅当 TaskType 为 RemoveWatermark,该字段有值。
|
9517
9524
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
9518
9525
|
# @type RemoveWatermarkTask: :class:`Tencentcloud::Vod.v20180717.models.RemoveWatermarkTask`
|
9526
|
+
# @param ExtractTraceWatermarkTask: 提取溯源水印任务信息,仅当 TaskType 为 ExtractTraceWatermark,该字段有值。
|
9527
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9528
|
+
# @type ExtractTraceWatermarkTask: :class:`Tencentcloud::Vod.v20180717.models.ExtractTraceWatermarkTask`
|
9519
9529
|
# @param ReviewAudioVideoTask: 音视频审核任务信息,仅当 TaskType 为 ReviewAudioVideo,该字段有值。
|
9520
9530
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
9521
9531
|
# @type ReviewAudioVideoTask: :class:`Tencentcloud::Vod.v20180717.models.ReviewAudioVideoTask`
|
9532
|
+
# @param ReduceMediaBitrateTask: 降码率任务信息,仅当 TaskType 为 ReduceMediaBitrate,该字段有值。
|
9533
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
9534
|
+
# @type ReduceMediaBitrateTask: :class:`Tencentcloud::Vod.v20180717.models.ReduceMediaBitrateTask`
|
9522
9535
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
9523
9536
|
# @type RequestId: String
|
9524
9537
|
|
9525
|
-
attr_accessor :TaskType, :Status, :CreateTime, :BeginProcessTime, :FinishTime, :ProcedureTask, :EditMediaTask, :WechatPublishTask, :ComposeMediaTask, :SplitMediaTask, :WechatMiniProgramPublishTask, :PullUploadTask, :TranscodeTask, :ConcatTask, :ClipTask, :CreateImageSpriteTask, :SnapshotByTimeOffsetTask, :RemoveWatermarkTask, :ReviewAudioVideoTask, :RequestId
|
9538
|
+
attr_accessor :TaskType, :Status, :CreateTime, :BeginProcessTime, :FinishTime, :ProcedureTask, :EditMediaTask, :WechatPublishTask, :ComposeMediaTask, :SplitMediaTask, :WechatMiniProgramPublishTask, :PullUploadTask, :TranscodeTask, :ConcatTask, :ClipTask, :CreateImageSpriteTask, :SnapshotByTimeOffsetTask, :RemoveWatermarkTask, :ExtractTraceWatermarkTask, :ReviewAudioVideoTask, :ReduceMediaBitrateTask, :RequestId
|
9526
9539
|
|
9527
|
-
def initialize(tasktype=nil, status=nil, createtime=nil, beginprocesstime=nil, finishtime=nil, proceduretask=nil, editmediatask=nil, wechatpublishtask=nil, composemediatask=nil, splitmediatask=nil, wechatminiprogrampublishtask=nil, pulluploadtask=nil, transcodetask=nil, concattask=nil, cliptask=nil, createimagespritetask=nil, snapshotbytimeoffsettask=nil, removewatermarktask=nil, reviewaudiovideotask=nil, requestid=nil)
|
9540
|
+
def initialize(tasktype=nil, status=nil, createtime=nil, beginprocesstime=nil, finishtime=nil, proceduretask=nil, editmediatask=nil, wechatpublishtask=nil, composemediatask=nil, splitmediatask=nil, wechatminiprogrampublishtask=nil, pulluploadtask=nil, transcodetask=nil, concattask=nil, cliptask=nil, createimagespritetask=nil, snapshotbytimeoffsettask=nil, removewatermarktask=nil, extracttracewatermarktask=nil, reviewaudiovideotask=nil, reducemediabitratetask=nil, requestid=nil)
|
9528
9541
|
@TaskType = tasktype
|
9529
9542
|
@Status = status
|
9530
9543
|
@CreateTime = createtime
|
@@ -9543,7 +9556,9 @@ module TencentCloud
|
|
9543
9556
|
@CreateImageSpriteTask = createimagespritetask
|
9544
9557
|
@SnapshotByTimeOffsetTask = snapshotbytimeoffsettask
|
9545
9558
|
@RemoveWatermarkTask = removewatermarktask
|
9559
|
+
@ExtractTraceWatermarkTask = extracttracewatermarktask
|
9546
9560
|
@ReviewAudioVideoTask = reviewaudiovideotask
|
9561
|
+
@ReduceMediaBitrateTask = reducemediabitratetask
|
9547
9562
|
@RequestId = requestid
|
9548
9563
|
end
|
9549
9564
|
|
@@ -9605,10 +9620,18 @@ module TencentCloud
|
|
9605
9620
|
@RemoveWatermarkTask = RemoveWatermarkTask.new
|
9606
9621
|
@RemoveWatermarkTask.deserialize(params['RemoveWatermarkTask'])
|
9607
9622
|
end
|
9623
|
+
unless params['ExtractTraceWatermarkTask'].nil?
|
9624
|
+
@ExtractTraceWatermarkTask = ExtractTraceWatermarkTask.new
|
9625
|
+
@ExtractTraceWatermarkTask.deserialize(params['ExtractTraceWatermarkTask'])
|
9626
|
+
end
|
9608
9627
|
unless params['ReviewAudioVideoTask'].nil?
|
9609
9628
|
@ReviewAudioVideoTask = ReviewAudioVideoTask.new
|
9610
9629
|
@ReviewAudioVideoTask.deserialize(params['ReviewAudioVideoTask'])
|
9611
9630
|
end
|
9631
|
+
unless params['ReduceMediaBitrateTask'].nil?
|
9632
|
+
@ReduceMediaBitrateTask = ReduceMediaBitrateTask.new
|
9633
|
+
@ReduceMediaBitrateTask.deserialize(params['ReduceMediaBitrateTask'])
|
9634
|
+
end
|
9612
9635
|
@RequestId = params['RequestId']
|
9613
9636
|
end
|
9614
9637
|
end
|
@@ -10532,6 +10555,7 @@ module TencentCloud
|
|
10532
10555
|
# <li>WechatMiniProgramPublishComplete:微信小程序发布完成。</li>
|
10533
10556
|
# <li>FastClipMediaComplete:快速剪辑完成;</li>
|
10534
10557
|
# <li>ReviewAudioVideoComplete:音视频审核完成。</li>
|
10558
|
+
# <li>ExtractTraceWatermarkComplete:提取溯源水印完成。</li>
|
10535
10559
|
# <b>兼容 2017 版的事件类型:</b>
|
10536
10560
|
# <li>TranscodeComplete:视频转码完成;</li>
|
10537
10561
|
# <li>ConcatComplete:视频拼接完成;</li>
|
@@ -10587,13 +10611,19 @@ module TencentCloud
|
|
10587
10611
|
# @param RestoreMediaCompleteEvent: 视频取回完成事件,当事件类型为RestoreMediaComplete 时有效。
|
10588
10612
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
10589
10613
|
# @type RestoreMediaCompleteEvent: :class:`Tencentcloud::Vod.v20180717.models.RestoreMediaTask`
|
10614
|
+
# @param ExtractTraceWatermarkCompleteEvent: 溯源水印提取完成事件,当事件类型为ExtractTraceWatermarkComplete 时有效。
|
10615
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
10616
|
+
# @type ExtractTraceWatermarkCompleteEvent: :class:`Tencentcloud::Vod.v20180717.models.ExtractTraceWatermarkTask`
|
10590
10617
|
# @param ReviewAudioVideoCompleteEvent: 音视频审核完成事件,当事件类型为 ReviewAudioVideoComplete 时有效。
|
10591
10618
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
10592
10619
|
# @type ReviewAudioVideoCompleteEvent: :class:`Tencentcloud::Vod.v20180717.models.ReviewAudioVideoTask`
|
10620
|
+
# @param ReduceMediaBitrateCompleteEvent: 降码率完成事件,当事件类型为 ReduceMediaBitrateComplete 时有效。
|
10621
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
10622
|
+
# @type ReduceMediaBitrateCompleteEvent: :class:`Tencentcloud::Vod.v20180717.models.ReduceMediaBitrateTask`
|
10593
10623
|
|
10594
|
-
attr_accessor :EventHandle, :EventType, :FileUploadEvent, :ProcedureStateChangeEvent, :FileDeleteEvent, :PullCompleteEvent, :EditMediaCompleteEvent, :SplitMediaCompleteEvent, :ComposeMediaCompleteEvent, :ClipCompleteEvent, :TranscodeCompleteEvent, :CreateImageSpriteCompleteEvent, :ConcatCompleteEvent, :SnapshotByTimeOffsetCompleteEvent, :WechatPublishCompleteEvent, :WechatMiniProgramPublishCompleteEvent, :RemoveWatermarkCompleteEvent, :RestoreMediaCompleteEvent, :ReviewAudioVideoCompleteEvent
|
10624
|
+
attr_accessor :EventHandle, :EventType, :FileUploadEvent, :ProcedureStateChangeEvent, :FileDeleteEvent, :PullCompleteEvent, :EditMediaCompleteEvent, :SplitMediaCompleteEvent, :ComposeMediaCompleteEvent, :ClipCompleteEvent, :TranscodeCompleteEvent, :CreateImageSpriteCompleteEvent, :ConcatCompleteEvent, :SnapshotByTimeOffsetCompleteEvent, :WechatPublishCompleteEvent, :WechatMiniProgramPublishCompleteEvent, :RemoveWatermarkCompleteEvent, :RestoreMediaCompleteEvent, :ExtractTraceWatermarkCompleteEvent, :ReviewAudioVideoCompleteEvent, :ReduceMediaBitrateCompleteEvent
|
10595
10625
|
|
10596
|
-
def initialize(eventhandle=nil, eventtype=nil, fileuploadevent=nil, procedurestatechangeevent=nil, filedeleteevent=nil, pullcompleteevent=nil, editmediacompleteevent=nil, splitmediacompleteevent=nil, composemediacompleteevent=nil, clipcompleteevent=nil, transcodecompleteevent=nil, createimagespritecompleteevent=nil, concatcompleteevent=nil, snapshotbytimeoffsetcompleteevent=nil, wechatpublishcompleteevent=nil, wechatminiprogrampublishcompleteevent=nil, removewatermarkcompleteevent=nil, restoremediacompleteevent=nil, reviewaudiovideocompleteevent=nil)
|
10626
|
+
def initialize(eventhandle=nil, eventtype=nil, fileuploadevent=nil, procedurestatechangeevent=nil, filedeleteevent=nil, pullcompleteevent=nil, editmediacompleteevent=nil, splitmediacompleteevent=nil, composemediacompleteevent=nil, clipcompleteevent=nil, transcodecompleteevent=nil, createimagespritecompleteevent=nil, concatcompleteevent=nil, snapshotbytimeoffsetcompleteevent=nil, wechatpublishcompleteevent=nil, wechatminiprogrampublishcompleteevent=nil, removewatermarkcompleteevent=nil, restoremediacompleteevent=nil, extracttracewatermarkcompleteevent=nil, reviewaudiovideocompleteevent=nil, reducemediabitratecompleteevent=nil)
|
10597
10627
|
@EventHandle = eventhandle
|
10598
10628
|
@EventType = eventtype
|
10599
10629
|
@FileUploadEvent = fileuploadevent
|
@@ -10612,7 +10642,9 @@ module TencentCloud
|
|
10612
10642
|
@WechatMiniProgramPublishCompleteEvent = wechatminiprogrampublishcompleteevent
|
10613
10643
|
@RemoveWatermarkCompleteEvent = removewatermarkcompleteevent
|
10614
10644
|
@RestoreMediaCompleteEvent = restoremediacompleteevent
|
10645
|
+
@ExtractTraceWatermarkCompleteEvent = extracttracewatermarkcompleteevent
|
10615
10646
|
@ReviewAudioVideoCompleteEvent = reviewaudiovideocompleteevent
|
10647
|
+
@ReduceMediaBitrateCompleteEvent = reducemediabitratecompleteevent
|
10616
10648
|
end
|
10617
10649
|
|
10618
10650
|
def deserialize(params)
|
@@ -10682,10 +10714,18 @@ module TencentCloud
|
|
10682
10714
|
@RestoreMediaCompleteEvent = RestoreMediaTask.new
|
10683
10715
|
@RestoreMediaCompleteEvent.deserialize(params['RestoreMediaCompleteEvent'])
|
10684
10716
|
end
|
10717
|
+
unless params['ExtractTraceWatermarkCompleteEvent'].nil?
|
10718
|
+
@ExtractTraceWatermarkCompleteEvent = ExtractTraceWatermarkTask.new
|
10719
|
+
@ExtractTraceWatermarkCompleteEvent.deserialize(params['ExtractTraceWatermarkCompleteEvent'])
|
10720
|
+
end
|
10685
10721
|
unless params['ReviewAudioVideoCompleteEvent'].nil?
|
10686
10722
|
@ReviewAudioVideoCompleteEvent = ReviewAudioVideoTask.new
|
10687
10723
|
@ReviewAudioVideoCompleteEvent.deserialize(params['ReviewAudioVideoCompleteEvent'])
|
10688
10724
|
end
|
10725
|
+
unless params['ReduceMediaBitrateCompleteEvent'].nil?
|
10726
|
+
@ReduceMediaBitrateCompleteEvent = ReduceMediaBitrateTask.new
|
10727
|
+
@ReduceMediaBitrateCompleteEvent.deserialize(params['ReduceMediaBitrateCompleteEvent'])
|
10728
|
+
end
|
10689
10729
|
end
|
10690
10730
|
end
|
10691
10731
|
|
@@ -10745,6 +10785,157 @@ module TencentCloud
|
|
10745
10785
|
end
|
10746
10786
|
end
|
10747
10787
|
|
10788
|
+
# ExtractTraceWatermark请求参数结构体
|
10789
|
+
class ExtractTraceWatermarkRequest < TencentCloud::Common::AbstractModel
|
10790
|
+
# @param Url: 需要提取水印的媒体 URL。
|
10791
|
+
# @type Url: String
|
10792
|
+
# @param SubAppId: <b>点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。</b>
|
10793
|
+
# @type SubAppId: Integer
|
10794
|
+
# @param SessionContext: 标识来源上下文,用于透传用户请求信息,在ExtractTraceWatermarkComplete回调和任务流状态变更回调将返回该字段值,最长 1000个字符。
|
10795
|
+
# @type SessionContext: String
|
10796
|
+
# @param SessionId: 用于任务去重的识别码,如果三天内曾有过相同的识别码的请求,则本次的请求会返回错误。最长 50 个字符,不带或者带空字符串表示不做去重。
|
10797
|
+
# @type SessionId: String
|
10798
|
+
# @param TasksPriority: 任务的优先级,数值越大优先级越高,取值范围是 -10 到 10,不填代表 0。
|
10799
|
+
# @type TasksPriority: Integer
|
10800
|
+
# @param ExtInfo: 保留字段,特殊用途时使用。
|
10801
|
+
# @type ExtInfo: String
|
10802
|
+
|
10803
|
+
attr_accessor :Url, :SubAppId, :SessionContext, :SessionId, :TasksPriority, :ExtInfo
|
10804
|
+
|
10805
|
+
def initialize(url=nil, subappid=nil, sessioncontext=nil, sessionid=nil, taskspriority=nil, extinfo=nil)
|
10806
|
+
@Url = url
|
10807
|
+
@SubAppId = subappid
|
10808
|
+
@SessionContext = sessioncontext
|
10809
|
+
@SessionId = sessionid
|
10810
|
+
@TasksPriority = taskspriority
|
10811
|
+
@ExtInfo = extinfo
|
10812
|
+
end
|
10813
|
+
|
10814
|
+
def deserialize(params)
|
10815
|
+
@Url = params['Url']
|
10816
|
+
@SubAppId = params['SubAppId']
|
10817
|
+
@SessionContext = params['SessionContext']
|
10818
|
+
@SessionId = params['SessionId']
|
10819
|
+
@TasksPriority = params['TasksPriority']
|
10820
|
+
@ExtInfo = params['ExtInfo']
|
10821
|
+
end
|
10822
|
+
end
|
10823
|
+
|
10824
|
+
# ExtractTraceWatermark返回参数结构体
|
10825
|
+
class ExtractTraceWatermarkResponse < TencentCloud::Common::AbstractModel
|
10826
|
+
# @param TaskId: 任务 ID。
|
10827
|
+
# @type TaskId: String
|
10828
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
10829
|
+
# @type RequestId: String
|
10830
|
+
|
10831
|
+
attr_accessor :TaskId, :RequestId
|
10832
|
+
|
10833
|
+
def initialize(taskid=nil, requestid=nil)
|
10834
|
+
@TaskId = taskid
|
10835
|
+
@RequestId = requestid
|
10836
|
+
end
|
10837
|
+
|
10838
|
+
def deserialize(params)
|
10839
|
+
@TaskId = params['TaskId']
|
10840
|
+
@RequestId = params['RequestId']
|
10841
|
+
end
|
10842
|
+
end
|
10843
|
+
|
10844
|
+
# 提取溯源水印任务。
|
10845
|
+
class ExtractTraceWatermarkTask < TencentCloud::Common::AbstractModel
|
10846
|
+
# @param TaskId: 任务 ID。
|
10847
|
+
# @type TaskId: String
|
10848
|
+
# @param Status: 任务状态,取值:
|
10849
|
+
# <li>PROCESSING:处理中;</li>
|
10850
|
+
# <li>FINISH:已完成。</li>
|
10851
|
+
# @type Status: String
|
10852
|
+
# @param ErrCode: 错误码,0 表示成功,其他值表示失败:
|
10853
|
+
# <li>40000:输入参数不合法,请检查输入参数;</li>
|
10854
|
+
# <li>60000:源文件错误(如视频数据损坏),请确认源文件是否正常;</li>
|
10855
|
+
# <li>70000:内部服务错误,建议重试。</li>
|
10856
|
+
# @type ErrCode: Integer
|
10857
|
+
# @param Message: 错误信息。
|
10858
|
+
# @type Message: String
|
10859
|
+
# @param ErrCodeExt: 错误码,空字符串表示成功,其他值表示失败,取值请参考 [视频处理类错误码](https://cloud.tencent.com/document/product/266/50368#.E8.A7.86.E9.A2.91.E5.A4.84.E7.90.86.E7.B1.BB.E9.94.99.E8.AF.AF.E7.A0.81) 列表。
|
10860
|
+
# @type ErrCodeExt: String
|
10861
|
+
# @param Input: 提取溯源水印任务输入信息。
|
10862
|
+
# @type Input: :class:`Tencentcloud::Vod.v20180717.models.ExtractTraceWatermarkTaskInput`
|
10863
|
+
# @param Output: 提取溯源水印任务输出信息。
|
10864
|
+
# @type Output: :class:`Tencentcloud::Vod.v20180717.models.ExtractTraceWatermarkTaskOutput`
|
10865
|
+
# @param SessionId: 用于去重的识别码,如果七天内曾有过相同的识别码的请求,则本次的请求会返回错误。最长 50 个字符,不带或者带空字符串表示不做去重。
|
10866
|
+
# @type SessionId: String
|
10867
|
+
# @param SessionContext: 来源上下文,用于透传用户请求信息,任务流状态变更回调将返回该字段值,最长 1000 个字符。
|
10868
|
+
# @type SessionContext: String
|
10869
|
+
|
10870
|
+
attr_accessor :TaskId, :Status, :ErrCode, :Message, :ErrCodeExt, :Input, :Output, :SessionId, :SessionContext
|
10871
|
+
|
10872
|
+
def initialize(taskid=nil, status=nil, errcode=nil, message=nil, errcodeext=nil, input=nil, output=nil, sessionid=nil, sessioncontext=nil)
|
10873
|
+
@TaskId = taskid
|
10874
|
+
@Status = status
|
10875
|
+
@ErrCode = errcode
|
10876
|
+
@Message = message
|
10877
|
+
@ErrCodeExt = errcodeext
|
10878
|
+
@Input = input
|
10879
|
+
@Output = output
|
10880
|
+
@SessionId = sessionid
|
10881
|
+
@SessionContext = sessioncontext
|
10882
|
+
end
|
10883
|
+
|
10884
|
+
def deserialize(params)
|
10885
|
+
@TaskId = params['TaskId']
|
10886
|
+
@Status = params['Status']
|
10887
|
+
@ErrCode = params['ErrCode']
|
10888
|
+
@Message = params['Message']
|
10889
|
+
@ErrCodeExt = params['ErrCodeExt']
|
10890
|
+
unless params['Input'].nil?
|
10891
|
+
@Input = ExtractTraceWatermarkTaskInput.new
|
10892
|
+
@Input.deserialize(params['Input'])
|
10893
|
+
end
|
10894
|
+
unless params['Output'].nil?
|
10895
|
+
@Output = ExtractTraceWatermarkTaskOutput.new
|
10896
|
+
@Output.deserialize(params['Output'])
|
10897
|
+
end
|
10898
|
+
@SessionId = params['SessionId']
|
10899
|
+
@SessionContext = params['SessionContext']
|
10900
|
+
end
|
10901
|
+
end
|
10902
|
+
|
10903
|
+
# 提取溯源水印输入
|
10904
|
+
class ExtractTraceWatermarkTaskInput < TencentCloud::Common::AbstractModel
|
10905
|
+
# @param Url: 需要提取水印的媒体 URL。
|
10906
|
+
# @type Url: String
|
10907
|
+
|
10908
|
+
attr_accessor :Url
|
10909
|
+
|
10910
|
+
def initialize(url=nil)
|
10911
|
+
@Url = url
|
10912
|
+
end
|
10913
|
+
|
10914
|
+
def deserialize(params)
|
10915
|
+
@Url = params['Url']
|
10916
|
+
end
|
10917
|
+
end
|
10918
|
+
|
10919
|
+
# 提取溯源水印输出信息
|
10920
|
+
class ExtractTraceWatermarkTaskOutput < TencentCloud::Common::AbstractModel
|
10921
|
+
# @param Uv: 播放者的 ID,以十六进制表示,共6位,该参数用于 [溯源水印](https://cloud.tencent.com/document/product/266/75789) 使用场景。
|
10922
|
+
# @type Uv: String
|
10923
|
+
# @param Uid: 该字段已废弃。
|
10924
|
+
# @type Uid: String
|
10925
|
+
|
10926
|
+
attr_accessor :Uv, :Uid
|
10927
|
+
|
10928
|
+
def initialize(uv=nil, uid=nil)
|
10929
|
+
@Uv = uv
|
10930
|
+
@Uid = uid
|
10931
|
+
end
|
10932
|
+
|
10933
|
+
def deserialize(params)
|
10934
|
+
@Uv = params['Uv']
|
10935
|
+
@Uid = params['Uid']
|
10936
|
+
end
|
10937
|
+
end
|
10938
|
+
|
10748
10939
|
# 人脸识别任务控制参数
|
10749
10940
|
class FaceConfigureInfo < TencentCloud::Common::AbstractModel
|
10750
10941
|
# @param Switch: 人脸识别任务开关,可选值:
|
@@ -13778,10 +13969,14 @@ module TencentCloud
|
|
13778
13969
|
# @type VideoStreamSet: Array
|
13779
13970
|
# @param AudioStreamSet: 音频流信息。
|
13780
13971
|
# @type AudioStreamSet: Array
|
13972
|
+
# @param DigitalWatermarkType: 数字水印类型。可选值:
|
13973
|
+
# <li>Trace 表示经过溯源水印处理;</li>
|
13974
|
+
# <li>None 表示没有经过数字水印处理。</li>
|
13975
|
+
# @type DigitalWatermarkType: String
|
13781
13976
|
|
13782
|
-
attr_accessor :Url, :Definition, :Bitrate, :Height, :Width, :Size, :Duration, :Md5, :Container, :VideoStreamSet, :AudioStreamSet
|
13977
|
+
attr_accessor :Url, :Definition, :Bitrate, :Height, :Width, :Size, :Duration, :Md5, :Container, :VideoStreamSet, :AudioStreamSet, :DigitalWatermarkType
|
13783
13978
|
|
13784
|
-
def initialize(url=nil, definition=nil, bitrate=nil, height=nil, width=nil, size=nil, duration=nil, md5=nil, container=nil, videostreamset=nil, audiostreamset=nil)
|
13979
|
+
def initialize(url=nil, definition=nil, bitrate=nil, height=nil, width=nil, size=nil, duration=nil, md5=nil, container=nil, videostreamset=nil, audiostreamset=nil, digitalwatermarktype=nil)
|
13785
13980
|
@Url = url
|
13786
13981
|
@Definition = definition
|
13787
13982
|
@Bitrate = bitrate
|
@@ -13793,6 +13988,7 @@ module TencentCloud
|
|
13793
13988
|
@Container = container
|
13794
13989
|
@VideoStreamSet = videostreamset
|
13795
13990
|
@AudioStreamSet = audiostreamset
|
13991
|
+
@DigitalWatermarkType = digitalwatermarktype
|
13796
13992
|
end
|
13797
13993
|
|
13798
13994
|
def deserialize(params)
|
@@ -13821,6 +14017,7 @@ module TencentCloud
|
|
13821
14017
|
@AudioStreamSet << mediaaudiostreamitem_tmp
|
13822
14018
|
end
|
13823
14019
|
end
|
14020
|
+
@DigitalWatermarkType = params['DigitalWatermarkType']
|
13824
14021
|
end
|
13825
14022
|
end
|
13826
14023
|
|
@@ -17513,6 +17710,200 @@ module TencentCloud
|
|
17513
17710
|
end
|
17514
17711
|
end
|
17515
17712
|
|
17713
|
+
# 降码率任务转自适应码流结果类型
|
17714
|
+
class ReduceMediaBitrateAdaptiveDynamicStreamingResult < TencentCloud::Common::AbstractModel
|
17715
|
+
# @param Status: 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。
|
17716
|
+
# @type Status: String
|
17717
|
+
# @param ErrCodeExt: 错误码,空字符串表示成功,其他值表示失败,取值请参考 [视频处理类错误码](https://cloud.tencent.com/document/product/266/50368#.E8.A7.86.E9.A2.91.E5.A4.84.E7.90.86.E7.B1.BB.E9.94.99.E8.AF.AF.E7.A0.81) 列表。
|
17718
|
+
# @type ErrCodeExt: String
|
17719
|
+
# @param Message: 错误信息。
|
17720
|
+
# @type Message: String
|
17721
|
+
# @param Input: 对视频转自适应码流任务的输入。
|
17722
|
+
# @type Input: :class:`Tencentcloud::Vod.v20180717.models.AdaptiveDynamicStreamingTaskInput`
|
17723
|
+
# @param Output: 对视频转自适应码流任务的输出。
|
17724
|
+
# @type Output: :class:`Tencentcloud::Vod.v20180717.models.AdaptiveDynamicStreamingInfoItem`
|
17725
|
+
|
17726
|
+
attr_accessor :Status, :ErrCodeExt, :Message, :Input, :Output
|
17727
|
+
|
17728
|
+
def initialize(status=nil, errcodeext=nil, message=nil, input=nil, output=nil)
|
17729
|
+
@Status = status
|
17730
|
+
@ErrCodeExt = errcodeext
|
17731
|
+
@Message = message
|
17732
|
+
@Input = input
|
17733
|
+
@Output = output
|
17734
|
+
end
|
17735
|
+
|
17736
|
+
def deserialize(params)
|
17737
|
+
@Status = params['Status']
|
17738
|
+
@ErrCodeExt = params['ErrCodeExt']
|
17739
|
+
@Message = params['Message']
|
17740
|
+
unless params['Input'].nil?
|
17741
|
+
@Input = AdaptiveDynamicStreamingTaskInput.new
|
17742
|
+
@Input.deserialize(params['Input'])
|
17743
|
+
end
|
17744
|
+
unless params['Output'].nil?
|
17745
|
+
@Output = AdaptiveDynamicStreamingInfoItem.new
|
17746
|
+
@Output.deserialize(params['Output'])
|
17747
|
+
end
|
17748
|
+
end
|
17749
|
+
end
|
17750
|
+
|
17751
|
+
# 降码率任务结果
|
17752
|
+
class ReduceMediaBitrateMediaProcessTaskResult < TencentCloud::Common::AbstractModel
|
17753
|
+
# @param Type: 任务的类型,可以取的值有:
|
17754
|
+
# <li>Transcode:转码</li>
|
17755
|
+
# <li>AdaptiveDynamicStreaming:自适应码流</li>
|
17756
|
+
# @type Type: String
|
17757
|
+
# @param TranscodeTask: 降码率任务中视频转码任务的查询结果,当任务类型为 Transcode 时有效。
|
17758
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
17759
|
+
# @type TranscodeTask: :class:`Tencentcloud::Vod.v20180717.models.ReduceMediaBitrateTranscodeResult`
|
17760
|
+
# @param AdaptiveDynamicStreamingTask: 降码率任务中对视频转自适应码流任务的查询结果,当任务类型为 AdaptiveDynamicStreaming 时有效。
|
17761
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
17762
|
+
# @type AdaptiveDynamicStreamingTask: :class:`Tencentcloud::Vod.v20180717.models.ReduceMediaBitrateAdaptiveDynamicStreamingResult`
|
17763
|
+
|
17764
|
+
attr_accessor :Type, :TranscodeTask, :AdaptiveDynamicStreamingTask
|
17765
|
+
|
17766
|
+
def initialize(type=nil, transcodetask=nil, adaptivedynamicstreamingtask=nil)
|
17767
|
+
@Type = type
|
17768
|
+
@TranscodeTask = transcodetask
|
17769
|
+
@AdaptiveDynamicStreamingTask = adaptivedynamicstreamingtask
|
17770
|
+
end
|
17771
|
+
|
17772
|
+
def deserialize(params)
|
17773
|
+
@Type = params['Type']
|
17774
|
+
unless params['TranscodeTask'].nil?
|
17775
|
+
@TranscodeTask = ReduceMediaBitrateTranscodeResult.new
|
17776
|
+
@TranscodeTask.deserialize(params['TranscodeTask'])
|
17777
|
+
end
|
17778
|
+
unless params['AdaptiveDynamicStreamingTask'].nil?
|
17779
|
+
@AdaptiveDynamicStreamingTask = ReduceMediaBitrateAdaptiveDynamicStreamingResult.new
|
17780
|
+
@AdaptiveDynamicStreamingTask.deserialize(params['AdaptiveDynamicStreamingTask'])
|
17781
|
+
end
|
17782
|
+
end
|
17783
|
+
end
|
17784
|
+
|
17785
|
+
# 降码率任务信息
|
17786
|
+
class ReduceMediaBitrateTask < TencentCloud::Common::AbstractModel
|
17787
|
+
# @param TaskId: 视频处理任务 ID。
|
17788
|
+
# @type TaskId: String
|
17789
|
+
# @param Status: 任务流状态,取值:
|
17790
|
+
# <li>PROCESSING:处理中;</li>
|
17791
|
+
# <li>FINISH:已完成。</li>
|
17792
|
+
# @type Status: String
|
17793
|
+
# @param FileId: 媒体文件 ID。
|
17794
|
+
# @type FileId: String
|
17795
|
+
# @param FileName: 媒体文件名称。
|
17796
|
+
# @type FileName: String
|
17797
|
+
# @param FileUrl: 媒体文件地址。
|
17798
|
+
# @type FileUrl: String
|
17799
|
+
# @param MetaData: 原始视频的元信息。
|
17800
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
17801
|
+
# @type MetaData: :class:`Tencentcloud::Vod.v20180717.models.MediaMetaData`
|
17802
|
+
# @param MediaProcessResultSet: 降码率任务执行状态与结果。
|
17803
|
+
# @type MediaProcessResultSet: Array
|
17804
|
+
# @param TasksPriority: 任务流的优先级,取值范围为 [-10, 10]。
|
17805
|
+
# @type TasksPriority: Integer
|
17806
|
+
# @param TasksNotifyMode: 任务流状态变更通知模式。
|
17807
|
+
# <li>Finish:只有当任务流全部执行完毕时,才发起一次事件通知;</li>
|
17808
|
+
# <li>None:不接受该任务流回调。</li>
|
17809
|
+
# @type TasksNotifyMode: String
|
17810
|
+
# @param SessionContext: 来源上下文,用于透传用户请求信息,任务流状态变更回调将返回该字段值,最长 1000 个字符。
|
17811
|
+
# @type SessionContext: String
|
17812
|
+
# @param SessionId: 用于去重的识别码,如果七天内曾有过相同的识别码的请求,则本次的请求会返回错误。最长 50 个字符,不带或者带空字符串表示不做去重。
|
17813
|
+
# @type SessionId: String
|
17814
|
+
|
17815
|
+
attr_accessor :TaskId, :Status, :FileId, :FileName, :FileUrl, :MetaData, :MediaProcessResultSet, :TasksPriority, :TasksNotifyMode, :SessionContext, :SessionId
|
17816
|
+
|
17817
|
+
def initialize(taskid=nil, status=nil, fileid=nil, filename=nil, fileurl=nil, metadata=nil, mediaprocessresultset=nil, taskspriority=nil, tasksnotifymode=nil, sessioncontext=nil, sessionid=nil)
|
17818
|
+
@TaskId = taskid
|
17819
|
+
@Status = status
|
17820
|
+
@FileId = fileid
|
17821
|
+
@FileName = filename
|
17822
|
+
@FileUrl = fileurl
|
17823
|
+
@MetaData = metadata
|
17824
|
+
@MediaProcessResultSet = mediaprocessresultset
|
17825
|
+
@TasksPriority = taskspriority
|
17826
|
+
@TasksNotifyMode = tasksnotifymode
|
17827
|
+
@SessionContext = sessioncontext
|
17828
|
+
@SessionId = sessionid
|
17829
|
+
end
|
17830
|
+
|
17831
|
+
def deserialize(params)
|
17832
|
+
@TaskId = params['TaskId']
|
17833
|
+
@Status = params['Status']
|
17834
|
+
@FileId = params['FileId']
|
17835
|
+
@FileName = params['FileName']
|
17836
|
+
@FileUrl = params['FileUrl']
|
17837
|
+
unless params['MetaData'].nil?
|
17838
|
+
@MetaData = MediaMetaData.new
|
17839
|
+
@MetaData.deserialize(params['MetaData'])
|
17840
|
+
end
|
17841
|
+
unless params['MediaProcessResultSet'].nil?
|
17842
|
+
@MediaProcessResultSet = []
|
17843
|
+
params['MediaProcessResultSet'].each do |i|
|
17844
|
+
reducemediabitratemediaprocesstaskresult_tmp = ReduceMediaBitrateMediaProcessTaskResult.new
|
17845
|
+
reducemediabitratemediaprocesstaskresult_tmp.deserialize(i)
|
17846
|
+
@MediaProcessResultSet << reducemediabitratemediaprocesstaskresult_tmp
|
17847
|
+
end
|
17848
|
+
end
|
17849
|
+
@TasksPriority = params['TasksPriority']
|
17850
|
+
@TasksNotifyMode = params['TasksNotifyMode']
|
17851
|
+
@SessionContext = params['SessionContext']
|
17852
|
+
@SessionId = params['SessionId']
|
17853
|
+
end
|
17854
|
+
end
|
17855
|
+
|
17856
|
+
# 降码率任务转码结果类型
|
17857
|
+
class ReduceMediaBitrateTranscodeResult < TencentCloud::Common::AbstractModel
|
17858
|
+
# @param Status: 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。
|
17859
|
+
# @type Status: String
|
17860
|
+
# @param ErrCodeExt: 错误码,空字符串表示成功,其他值表示失败,取值请参考 [视频处理类错误码](https://cloud.tencent.com/document/product/266/50368#.E8.A7.86.E9.A2.91.E5.A4.84.E7.90.86.E7.B1.BB.E9.94.99.E8.AF.AF.E7.A0.81) 列表。
|
17861
|
+
# @type ErrCodeExt: String
|
17862
|
+
# @param Message: 错误信息。
|
17863
|
+
# @type Message: String
|
17864
|
+
# @param Input: 转码任务的输入。
|
17865
|
+
# @type Input: :class:`Tencentcloud::Vod.v20180717.models.TranscodeTaskInput`
|
17866
|
+
# @param Output: 转码任务的输出。
|
17867
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
17868
|
+
# @type Output: :class:`Tencentcloud::Vod.v20180717.models.MediaTranscodeItem`
|
17869
|
+
# @param Progress: 转码进度,取值范围 [0-100] 。
|
17870
|
+
# @type Progress: Integer
|
17871
|
+
# @param BeginProcessTime: 转码任务开始执行的时间,采用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。
|
17872
|
+
# @type BeginProcessTime: String
|
17873
|
+
# @param FinishTime: 转码任务执行完毕的时间,采用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。
|
17874
|
+
# @type FinishTime: String
|
17875
|
+
|
17876
|
+
attr_accessor :Status, :ErrCodeExt, :Message, :Input, :Output, :Progress, :BeginProcessTime, :FinishTime
|
17877
|
+
|
17878
|
+
def initialize(status=nil, errcodeext=nil, message=nil, input=nil, output=nil, progress=nil, beginprocesstime=nil, finishtime=nil)
|
17879
|
+
@Status = status
|
17880
|
+
@ErrCodeExt = errcodeext
|
17881
|
+
@Message = message
|
17882
|
+
@Input = input
|
17883
|
+
@Output = output
|
17884
|
+
@Progress = progress
|
17885
|
+
@BeginProcessTime = beginprocesstime
|
17886
|
+
@FinishTime = finishtime
|
17887
|
+
end
|
17888
|
+
|
17889
|
+
def deserialize(params)
|
17890
|
+
@Status = params['Status']
|
17891
|
+
@ErrCodeExt = params['ErrCodeExt']
|
17892
|
+
@Message = params['Message']
|
17893
|
+
unless params['Input'].nil?
|
17894
|
+
@Input = TranscodeTaskInput.new
|
17895
|
+
@Input.deserialize(params['Input'])
|
17896
|
+
end
|
17897
|
+
unless params['Output'].nil?
|
17898
|
+
@Output = MediaTranscodeItem.new
|
17899
|
+
@Output.deserialize(params['Output'])
|
17900
|
+
end
|
17901
|
+
@Progress = params['Progress']
|
17902
|
+
@BeginProcessTime = params['BeginProcessTime']
|
17903
|
+
@FinishTime = params['FinishTime']
|
17904
|
+
end
|
17905
|
+
end
|
17906
|
+
|
17516
17907
|
# Referer 防盗链配置
|
17517
17908
|
class RefererAuthPolicy < TencentCloud::Common::AbstractModel
|
17518
17909
|
# @param Status: [Referer 防盗链](https://cloud.tencent.com/document/product/266/14046)设置状态,可选值:
|
@@ -19699,6 +20090,7 @@ module TencentCloud
|
|
19699
20090
|
# @param TaskType: 任务类型,取值:
|
19700
20091
|
# <li>Procedure:视频处理任务;</li>
|
19701
20092
|
# <li>EditMedia:视频编辑任务</li>
|
20093
|
+
# <li>ReduceMediaBitrate:降码率任务</li>
|
19702
20094
|
# <li>WechatDistribute:微信发布任务。</li>
|
19703
20095
|
# 兼容 2017 版的任务类型:
|
19704
20096
|
# <li>Transcode:视频转码任务;</li>
|
@@ -20203,16 +20595,22 @@ module TencentCloud
|
|
20203
20595
|
|
20204
20596
|
# 溯源水印参数
|
20205
20597
|
class TraceWatermarkInput < TencentCloud::Common::AbstractModel
|
20206
|
-
# @param
|
20598
|
+
# @param Switch: 溯源水印任务开关,此字段必填,可选值:
|
20599
|
+
# <li>ON:开启溯源水印;</li>
|
20600
|
+
# <li>OFF:关闭溯源水印。</li>
|
20601
|
+
# @type Switch: String
|
20602
|
+
# @param Definition: 该字段已废弃,请勿使用。
|
20207
20603
|
# @type Definition: Integer
|
20208
20604
|
|
20209
|
-
attr_accessor :Definition
|
20605
|
+
attr_accessor :Switch, :Definition
|
20210
20606
|
|
20211
|
-
def initialize(definition=nil)
|
20607
|
+
def initialize(switch=nil, definition=nil)
|
20608
|
+
@Switch = switch
|
20212
20609
|
@Definition = definition
|
20213
20610
|
end
|
20214
20611
|
|
20215
20612
|
def deserialize(params)
|
20613
|
+
@Switch = params['Switch']
|
20216
20614
|
@Definition = params['Definition']
|
20217
20615
|
end
|
20218
20616
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-vod
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.411
|
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-09-
|
11
|
+
date: 2022-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|