tencentcloud-sdk-mps 3.0.806 → 3.0.807
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/models.rb +79 -25
- 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: 34b8e38e0dea1539291bcfb968527f98877b1b18
|
4
|
+
data.tar.gz: cb52e4b8197eee22087a37c49ce6371297a7e2b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f82eb08e5d1fd395745db76414efe76af0d106b3b7ab1e4405a461db2fd09a7d9adea179caac910350ff08933c4fcfa3258c14ff8d8c260a08d492182594550c
|
7
|
+
data.tar.gz: bf876c30d84acda8193f30531cb67ddb39379835769eea23c4ed895c0824cf9613b2f2bb73cf9e0f73911f07884d0936d10025d238ee508847545e6ae9721a60
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.807
|
data/lib/v20190612/models.rb
CHANGED
@@ -488,10 +488,15 @@ module TencentCloud
|
|
488
488
|
# @param DrmInfo: Drm信息。
|
489
489
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
490
490
|
# @type DrmInfo: :class:`Tencentcloud::Mps.v20190612.models.DrmInfo`
|
491
|
+
# @param DefinitionType: 自适应转码模板类型:
|
492
|
+
# Common:音视频类型
|
493
|
+
# PureAudio:纯音频类型
|
494
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
495
|
+
# @type DefinitionType: String
|
491
496
|
|
492
|
-
attr_accessor :Definition, :WatermarkSet, :OutputStorage, :OutputObjectPath, :SubStreamObjectName, :SegmentObjectName, :AddOnSubtitles, :DrmInfo
|
497
|
+
attr_accessor :Definition, :WatermarkSet, :OutputStorage, :OutputObjectPath, :SubStreamObjectName, :SegmentObjectName, :AddOnSubtitles, :DrmInfo, :DefinitionType
|
493
498
|
|
494
|
-
def initialize(definition=nil, watermarkset=nil, outputstorage=nil, outputobjectpath=nil, substreamobjectname=nil, segmentobjectname=nil, addonsubtitles=nil, drminfo=nil)
|
499
|
+
def initialize(definition=nil, watermarkset=nil, outputstorage=nil, outputobjectpath=nil, substreamobjectname=nil, segmentobjectname=nil, addonsubtitles=nil, drminfo=nil, definitiontype=nil)
|
495
500
|
@Definition = definition
|
496
501
|
@WatermarkSet = watermarkset
|
497
502
|
@OutputStorage = outputstorage
|
@@ -500,6 +505,7 @@ module TencentCloud
|
|
500
505
|
@SegmentObjectName = segmentobjectname
|
501
506
|
@AddOnSubtitles = addonsubtitles
|
502
507
|
@DrmInfo = drminfo
|
508
|
+
@DefinitionType = definitiontype
|
503
509
|
end
|
504
510
|
|
505
511
|
def deserialize(params)
|
@@ -531,6 +537,7 @@ module TencentCloud
|
|
531
537
|
@DrmInfo = DrmInfo.new
|
532
538
|
@DrmInfo.deserialize(params['DrmInfo'])
|
533
539
|
end
|
540
|
+
@DefinitionType = params['DefinitionType']
|
534
541
|
end
|
535
542
|
end
|
536
543
|
|
@@ -564,10 +571,13 @@ module TencentCloud
|
|
564
571
|
# @type CreateTime: String
|
565
572
|
# @param UpdateTime: 模板最后修改时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。
|
566
573
|
# @type UpdateTime: String
|
574
|
+
# @param PureAudio: 是否为纯音频,0表示视频,1表示纯音频
|
575
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
576
|
+
# @type PureAudio: Integer
|
567
577
|
|
568
|
-
attr_accessor :Definition, :Type, :Name, :Comment, :Format, :StreamInfos, :DisableHigherVideoBitrate, :DisableHigherVideoResolution, :CreateTime, :UpdateTime
|
578
|
+
attr_accessor :Definition, :Type, :Name, :Comment, :Format, :StreamInfos, :DisableHigherVideoBitrate, :DisableHigherVideoResolution, :CreateTime, :UpdateTime, :PureAudio
|
569
579
|
|
570
|
-
def initialize(definition=nil, type=nil, name=nil, comment=nil, format=nil, streaminfos=nil, disablehighervideobitrate=nil, disablehighervideoresolution=nil, createtime=nil, updatetime=nil)
|
580
|
+
def initialize(definition=nil, type=nil, name=nil, comment=nil, format=nil, streaminfos=nil, disablehighervideobitrate=nil, disablehighervideoresolution=nil, createtime=nil, updatetime=nil, pureaudio=nil)
|
571
581
|
@Definition = definition
|
572
582
|
@Type = type
|
573
583
|
@Name = name
|
@@ -578,6 +588,7 @@ module TencentCloud
|
|
578
588
|
@DisableHigherVideoResolution = disablehighervideoresolution
|
579
589
|
@CreateTime = createtime
|
580
590
|
@UpdateTime = updatetime
|
591
|
+
@PureAudio = pureaudio
|
581
592
|
end
|
582
593
|
|
583
594
|
def deserialize(params)
|
@@ -598,15 +609,16 @@ module TencentCloud
|
|
598
609
|
@DisableHigherVideoResolution = params['DisableHigherVideoResolution']
|
599
610
|
@CreateTime = params['CreateTime']
|
600
611
|
@UpdateTime = params['UpdateTime']
|
612
|
+
@PureAudio = params['PureAudio']
|
601
613
|
end
|
602
614
|
end
|
603
615
|
|
604
616
|
# 自适应转码流参数模板
|
605
617
|
class AdaptiveStreamTemplate < TencentCloud::Common::AbstractModel
|
606
|
-
# @param Video: 视频参数信息。
|
607
|
-
# @type Video: :class:`Tencentcloud::Mps.v20190612.models.VideoTemplateInfo`
|
608
618
|
# @param Audio: 音频参数信息。
|
609
619
|
# @type Audio: :class:`Tencentcloud::Mps.v20190612.models.AudioTemplateInfo`
|
620
|
+
# @param Video: 视频参数信息。
|
621
|
+
# @type Video: :class:`Tencentcloud::Mps.v20190612.models.VideoTemplateInfo`
|
610
622
|
# @param RemoveAudio: 是否移除音频流,取值范围:
|
611
623
|
# <li>0:否,</li>
|
612
624
|
# <li>1:是。</li>
|
@@ -616,24 +628,24 @@ module TencentCloud
|
|
616
628
|
# <li>1:是。</li>
|
617
629
|
# @type RemoveVideo: Integer
|
618
630
|
|
619
|
-
attr_accessor :
|
631
|
+
attr_accessor :Audio, :Video, :RemoveAudio, :RemoveVideo
|
620
632
|
|
621
|
-
def initialize(
|
622
|
-
@Video = video
|
633
|
+
def initialize(audio=nil, video=nil, removeaudio=nil, removevideo=nil)
|
623
634
|
@Audio = audio
|
635
|
+
@Video = video
|
624
636
|
@RemoveAudio = removeaudio
|
625
637
|
@RemoveVideo = removevideo
|
626
638
|
end
|
627
639
|
|
628
640
|
def deserialize(params)
|
629
|
-
unless params['Video'].nil?
|
630
|
-
@Video = VideoTemplateInfo.new
|
631
|
-
@Video.deserialize(params['Video'])
|
632
|
-
end
|
633
641
|
unless params['Audio'].nil?
|
634
642
|
@Audio = AudioTemplateInfo.new
|
635
643
|
@Audio.deserialize(params['Audio'])
|
636
644
|
end
|
645
|
+
unless params['Video'].nil?
|
646
|
+
@Video = VideoTemplateInfo.new
|
647
|
+
@Video.deserialize(params['Video'])
|
648
|
+
end
|
637
649
|
@RemoveAudio = params['RemoveAudio']
|
638
650
|
@RemoveVideo = params['RemoveVideo']
|
639
651
|
end
|
@@ -5793,16 +5805,28 @@ module TencentCloud
|
|
5793
5805
|
# @type DisableHigherVideoResolution: Integer
|
5794
5806
|
# @param Comment: 模板描述信息,长度限制:256 个字符。
|
5795
5807
|
# @type Comment: String
|
5808
|
+
# @param PureAudio: 是否为纯音频,0表示视频模版,1表示纯音频模版
|
5809
|
+
# 当值为1:
|
5810
|
+
# 1. StreamInfos.N.RemoveVideo=1
|
5811
|
+
# 2. StreamInfos.N.RemoveAudio=0
|
5812
|
+
# 3. StreamInfos.N.Video.Codec=copy
|
5813
|
+
|
5814
|
+
# 当值为0:
|
5796
5815
|
|
5797
|
-
|
5816
|
+
# 1. StreamInfos.N.Video.Codec不能为copy
|
5817
|
+
# 2. StreamInfos.N.Video.Fps不能为null
|
5818
|
+
# @type PureAudio: Integer
|
5798
5819
|
|
5799
|
-
|
5820
|
+
attr_accessor :Format, :StreamInfos, :Name, :DisableHigherVideoBitrate, :DisableHigherVideoResolution, :Comment, :PureAudio
|
5821
|
+
|
5822
|
+
def initialize(format=nil, streaminfos=nil, name=nil, disablehighervideobitrate=nil, disablehighervideoresolution=nil, comment=nil, pureaudio=nil)
|
5800
5823
|
@Format = format
|
5801
5824
|
@StreamInfos = streaminfos
|
5802
5825
|
@Name = name
|
5803
5826
|
@DisableHigherVideoBitrate = disablehighervideobitrate
|
5804
5827
|
@DisableHigherVideoResolution = disablehighervideoresolution
|
5805
5828
|
@Comment = comment
|
5829
|
+
@PureAudio = pureaudio
|
5806
5830
|
end
|
5807
5831
|
|
5808
5832
|
def deserialize(params)
|
@@ -5819,6 +5843,7 @@ module TencentCloud
|
|
5819
5843
|
@DisableHigherVideoBitrate = params['DisableHigherVideoBitrate']
|
5820
5844
|
@DisableHigherVideoResolution = params['DisableHigherVideoResolution']
|
5821
5845
|
@Comment = params['Comment']
|
5846
|
+
@PureAudio = params['PureAudio']
|
5822
5847
|
end
|
5823
5848
|
end
|
5824
5849
|
|
@@ -8072,14 +8097,17 @@ module TencentCloud
|
|
8072
8097
|
# <li>Preset:系统预置模板;</li>
|
8073
8098
|
# <li>Custom:用户自定义模板。</li>
|
8074
8099
|
# @type Type: String
|
8100
|
+
# @param PureAudio: 是否为纯音频,0表示视频,1表示纯音频
|
8101
|
+
# @type PureAudio: Integer
|
8075
8102
|
|
8076
|
-
attr_accessor :Definitions, :Offset, :Limit, :Type
|
8103
|
+
attr_accessor :Definitions, :Offset, :Limit, :Type, :PureAudio
|
8077
8104
|
|
8078
|
-
def initialize(definitions=nil, offset=nil, limit=nil, type=nil)
|
8105
|
+
def initialize(definitions=nil, offset=nil, limit=nil, type=nil, pureaudio=nil)
|
8079
8106
|
@Definitions = definitions
|
8080
8107
|
@Offset = offset
|
8081
8108
|
@Limit = limit
|
8082
8109
|
@Type = type
|
8110
|
+
@PureAudio = pureaudio
|
8083
8111
|
end
|
8084
8112
|
|
8085
8113
|
def deserialize(params)
|
@@ -8087,6 +8115,7 @@ module TencentCloud
|
|
8087
8115
|
@Offset = params['Offset']
|
8088
8116
|
@Limit = params['Limit']
|
8089
8117
|
@Type = params['Type']
|
8118
|
+
@PureAudio = params['PureAudio']
|
8090
8119
|
end
|
8091
8120
|
end
|
8092
8121
|
|
@@ -14861,10 +14890,21 @@ module TencentCloud
|
|
14861
14890
|
# @type StreamInfos: Array
|
14862
14891
|
# @param Comment: 模板描述信息,长度限制:256 个字符。
|
14863
14892
|
# @type Comment: String
|
14893
|
+
# @param PureAudio: 是否为纯音频,0表示视频模版,1表示纯音频模版
|
14894
|
+
# 当值为1:
|
14895
|
+
# 1. StreamInfos.N.RemoveVideo=1
|
14896
|
+
# 2. StreamInfos.N.RemoveAudio=0
|
14897
|
+
# 3. StreamInfos.N.Video.Codec=copy
|
14898
|
+
|
14899
|
+
# 当值为0:
|
14900
|
+
|
14901
|
+
# 1. StreamInfos.N.Video.Codec不能为copy
|
14902
|
+
# 2. StreamInfos.N.Video.Fps不能为null
|
14903
|
+
# @type PureAudio: Integer
|
14864
14904
|
|
14865
|
-
attr_accessor :Definition, :Name, :Format, :DisableHigherVideoBitrate, :DisableHigherVideoResolution, :StreamInfos, :Comment
|
14905
|
+
attr_accessor :Definition, :Name, :Format, :DisableHigherVideoBitrate, :DisableHigherVideoResolution, :StreamInfos, :Comment, :PureAudio
|
14866
14906
|
|
14867
|
-
def initialize(definition=nil, name=nil, format=nil, disablehighervideobitrate=nil, disablehighervideoresolution=nil, streaminfos=nil, comment=nil)
|
14907
|
+
def initialize(definition=nil, name=nil, format=nil, disablehighervideobitrate=nil, disablehighervideoresolution=nil, streaminfos=nil, comment=nil, pureaudio=nil)
|
14868
14908
|
@Definition = definition
|
14869
14909
|
@Name = name
|
14870
14910
|
@Format = format
|
@@ -14872,6 +14912,7 @@ module TencentCloud
|
|
14872
14912
|
@DisableHigherVideoResolution = disablehighervideoresolution
|
14873
14913
|
@StreamInfos = streaminfos
|
14874
14914
|
@Comment = comment
|
14915
|
+
@PureAudio = pureaudio
|
14875
14916
|
end
|
14876
14917
|
|
14877
14918
|
def deserialize(params)
|
@@ -14889,6 +14930,7 @@ module TencentCloud
|
|
14889
14930
|
end
|
14890
14931
|
end
|
14891
14932
|
@Comment = params['Comment']
|
14933
|
+
@PureAudio = params['PureAudio']
|
14892
14934
|
end
|
14893
14935
|
end
|
14894
14936
|
|
@@ -19386,7 +19428,7 @@ module TencentCloud
|
|
19386
19428
|
# <li>simkai.ttf:可以支持中文和英文;</li>
|
19387
19429
|
# <li>arial.ttf:仅支持英文。</li>
|
19388
19430
|
# @type FontType: String
|
19389
|
-
# @param FontSize: 字体大小,格式:Npx,N 为数值。
|
19431
|
+
# @param FontSize: 字体大小,格式:Npx,N 为数值。N的取值范围:[0,1] 和 [8, 4096]
|
19390
19432
|
# @type FontSize: String
|
19391
19433
|
# @param FontColor: 字体颜色,格式:0xRRGGBB,默认值:0xFFFFFF(白色)。
|
19392
19434
|
# @type FontColor: String
|
@@ -19395,14 +19437,18 @@ module TencentCloud
|
|
19395
19437
|
# <li>1:完全不透明</li>
|
19396
19438
|
# 默认值:1。
|
19397
19439
|
# @type FontAlpha: Float
|
19440
|
+
# @param TextContent: 文字内容,长度不超过100个字符。
|
19441
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
19442
|
+
# @type TextContent: String
|
19398
19443
|
|
19399
|
-
attr_accessor :FontType, :FontSize, :FontColor, :FontAlpha
|
19444
|
+
attr_accessor :FontType, :FontSize, :FontColor, :FontAlpha, :TextContent
|
19400
19445
|
|
19401
|
-
def initialize(fonttype=nil, fontsize=nil, fontcolor=nil, fontalpha=nil)
|
19446
|
+
def initialize(fonttype=nil, fontsize=nil, fontcolor=nil, fontalpha=nil, textcontent=nil)
|
19402
19447
|
@FontType = fonttype
|
19403
19448
|
@FontSize = fontsize
|
19404
19449
|
@FontColor = fontcolor
|
19405
19450
|
@FontAlpha = fontalpha
|
19451
|
+
@TextContent = textcontent
|
19406
19452
|
end
|
19407
19453
|
|
19408
19454
|
def deserialize(params)
|
@@ -19410,6 +19456,7 @@ module TencentCloud
|
|
19410
19456
|
@FontSize = params['FontSize']
|
19411
19457
|
@FontColor = params['FontColor']
|
19412
19458
|
@FontAlpha = params['FontAlpha']
|
19459
|
+
@TextContent = params['TextContent']
|
19413
19460
|
end
|
19414
19461
|
end
|
19415
19462
|
|
@@ -19419,7 +19466,7 @@ module TencentCloud
|
|
19419
19466
|
# <li>simkai.ttf:可以支持中文和英文;</li>
|
19420
19467
|
# <li>arial.ttf:仅支持英文。</li>
|
19421
19468
|
# @type FontType: String
|
19422
|
-
# @param FontSize: 字体大小,格式:Npx,N 为数值。
|
19469
|
+
# @param FontSize: 字体大小,格式:Npx,N 为数值。N的取值范围:[0,1] 和 [8, 4096]
|
19423
19470
|
# @type FontSize: String
|
19424
19471
|
# @param FontColor: 字体颜色,格式:0xRRGGBB,默认值:0xFFFFFF(白色)。
|
19425
19472
|
# @type FontColor: String
|
@@ -19427,14 +19474,17 @@ module TencentCloud
|
|
19427
19474
|
# <li>0:完全透明</li>
|
19428
19475
|
# <li>1:完全不透明</li>
|
19429
19476
|
# @type FontAlpha: Float
|
19477
|
+
# @param TextContent: 文字内容,长度不超过100个字符。
|
19478
|
+
# @type TextContent: String
|
19430
19479
|
|
19431
|
-
attr_accessor :FontType, :FontSize, :FontColor, :FontAlpha
|
19480
|
+
attr_accessor :FontType, :FontSize, :FontColor, :FontAlpha, :TextContent
|
19432
19481
|
|
19433
|
-
def initialize(fonttype=nil, fontsize=nil, fontcolor=nil, fontalpha=nil)
|
19482
|
+
def initialize(fonttype=nil, fontsize=nil, fontcolor=nil, fontalpha=nil, textcontent=nil)
|
19434
19483
|
@FontType = fonttype
|
19435
19484
|
@FontSize = fontsize
|
19436
19485
|
@FontColor = fontcolor
|
19437
19486
|
@FontAlpha = fontalpha
|
19487
|
+
@TextContent = textcontent
|
19438
19488
|
end
|
19439
19489
|
|
19440
19490
|
def deserialize(params)
|
@@ -19442,6 +19492,7 @@ module TencentCloud
|
|
19442
19492
|
@FontSize = params['FontSize']
|
19443
19493
|
@FontColor = params['FontColor']
|
19444
19494
|
@FontAlpha = params['FontAlpha']
|
19495
|
+
@TextContent = params['TextContent']
|
19445
19496
|
end
|
19446
19497
|
end
|
19447
19498
|
|
@@ -20096,6 +20147,7 @@ module TencentCloud
|
|
20096
20147
|
# 视频流配置参数
|
20097
20148
|
class VideoTemplateInfo < TencentCloud::Common::AbstractModel
|
20098
20149
|
# @param Codec: 视频流的编码格式,可选值:
|
20150
|
+
# <li>copy:纯音频模版</li>
|
20099
20151
|
# <li>h264:H.264 编码</li>
|
20100
20152
|
# <li>h265:H.265 编码</li>
|
20101
20153
|
# <li>av1:AOMedia Video 1 编码</li>
|
@@ -20301,11 +20353,13 @@ module TencentCloud
|
|
20301
20353
|
# <li>不填或填0,表示水印从画面开始就出现;</li>
|
20302
20354
|
# <li>当数值大于0时(假设为 n),表示水印从画面开始的第 n 秒出现;</li>
|
20303
20355
|
# <li>当数值小于0时(假设为 -n),表示水印从离画面结束 n 秒前开始出现。</li>
|
20356
|
+
# 注:只用于视频场景,截图不支持。
|
20304
20357
|
# @type StartTimeOffset: Float
|
20305
20358
|
# @param EndTimeOffset: 水印的结束时间偏移,单位:秒。
|
20306
20359
|
# <li>不填或填0,表示水印持续到画面结束;</li>
|
20307
20360
|
# <li>当数值大于0时(假设为 n),表示水印持续到第 n 秒时消失;</li>
|
20308
20361
|
# <li>当数值小于0时(假设为 -n),表示水印持续到离画面结束 n 秒前消失。</li>
|
20362
|
+
# 注:只用于视频场景,截图不支持。
|
20309
20363
|
# @type EndTimeOffset: Float
|
20310
20364
|
|
20311
20365
|
attr_accessor :Definition, :RawParameter, :TextContent, :SvgContent, :StartTimeOffset, :EndTimeOffset
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-mps
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.807
|
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-04-
|
11
|
+
date: 2024-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|