tencentcloud-sdk-vod 3.0.440 → 3.0.441

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20180717/models.rb +27 -15
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3230d775f14000c699f6679078e832f7a868a873
4
- data.tar.gz: 8f77e5e1e1a97df6eda06e38a15bb43dbbb72997
3
+ metadata.gz: f4e39e9f32be6cffff6838bd166f1e26d05b2960
4
+ data.tar.gz: 505428bb9120c05de75d8b4a5952dd7483f27d26
5
5
  SHA512:
6
- metadata.gz: d6a7829eafc91656c7e3614b5dcc155ef119de0f7e35d7bdf4c04d954c78e3aac77da5ff6c9e1971250e1d22cd8922a7431151494e4a761dbaad2cf0f5cd71f4
7
- data.tar.gz: 71dcb28a7f091fbf46bdfd94e9ae9bf2ee14959995aacdc30434a8403704de78a9911ad6b6fd63785093093858f0b420bf8bcc9a9c707ad16ef84d642ed34e22
6
+ metadata.gz: e3031d7cdf59933aa515e197084315925024eba90672eb4396af384f0353e92bdb1ffe8af605786e85a4ff2117f7f43faef36d240c4e01a85404f8e23e31bb27
7
+ data.tar.gz: 1e31525785c0e12c8d1e6c792fa7f8409dbbbca075e0ba13b4289310fccb108ddc256a4151007d7876f0788e2d8aad50ab4ad9b1e87ec7344c6700b233891623
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.440
1
+ 3.0.441
@@ -4033,15 +4033,20 @@ module TencentCloud
4033
4033
  # @type SourceMediaStartTime: Float
4034
4034
  # @param Duration: 音频片段的时长,单位为秒。默认和素材本身长度一致,表示截取全部素材。
4035
4035
  # @type Duration: Float
4036
+ # @param TargetDuration: 音频片段目标时长,单位为秒。
4037
+ # <li>当 TargetDuration 不填或填0时,表示目标时长和 Duration 一致;</li>
4038
+ # <li>当 TargetDuration 取大于0的值时,将对音频片段做快进或慢放等处理,使得输出片段的时长等于 TargetDuration。</li>
4039
+ # @type TargetDuration: Float
4036
4040
  # @param AudioOperations: 对音频片段进行的操作,如音量调节等。
4037
4041
  # @type AudioOperations: Array
4038
4042
 
4039
- attr_accessor :SourceMedia, :SourceMediaStartTime, :Duration, :AudioOperations
4043
+ attr_accessor :SourceMedia, :SourceMediaStartTime, :Duration, :TargetDuration, :AudioOperations
4040
4044
 
4041
- def initialize(sourcemedia=nil, sourcemediastarttime=nil, duration=nil, audiooperations=nil)
4045
+ def initialize(sourcemedia=nil, sourcemediastarttime=nil, duration=nil, targetduration=nil, audiooperations=nil)
4042
4046
  @SourceMedia = sourcemedia
4043
4047
  @SourceMediaStartTime = sourcemediastarttime
4044
4048
  @Duration = duration
4049
+ @TargetDuration = targetduration
4045
4050
  @AudioOperations = audiooperations
4046
4051
  end
4047
4052
 
@@ -4049,6 +4054,7 @@ module TencentCloud
4049
4054
  @SourceMedia = params['SourceMedia']
4050
4055
  @SourceMediaStartTime = params['SourceMediaStartTime']
4051
4056
  @Duration = params['Duration']
4057
+ @TargetDuration = params['TargetDuration']
4052
4058
  unless params['AudioOperations'].nil?
4053
4059
  @AudioOperations = []
4054
4060
  params['AudioOperations'].each do |i|
@@ -21455,6 +21461,10 @@ module TencentCloud
21455
21461
  # @type SourceMediaStartTime: Float
21456
21462
  # @param Duration: 视频片段时长,单位为秒。默认取视频素材本身长度,表示截取全部素材。如果源文件是图片,Duration需要大于0。
21457
21463
  # @type Duration: Float
21464
+ # @param TargetDuration: 视频片段目标时长,单位为秒。
21465
+ # <li>当 TargetDuration 不填或填0时,表示目标时长和 Duration 一致;</li>
21466
+ # <li>当 TargetDuration 取大于0的值时,将对视频片段做快进或慢放等处理,使得输出片段的时长等于 TargetDuration。</li>
21467
+ # @type TargetDuration: Float
21458
21468
  # @param CoordinateOrigin: 视频原点位置,取值有:
21459
21469
  # <li>Center:坐标原点为中心位置,如画布中心。</li>
21460
21470
  # 默认值 :Center。
@@ -21483,43 +21493,37 @@ module TencentCloud
21483
21493
  # <li>当 Width 为空,Height 非空,则 Width 按比例缩放</li>
21484
21494
  # <li>当 Width 非空,Height 为空,则 Height 按比例缩放。</li>
21485
21495
  # @type Height: String
21486
- # @param ImageOperations: 对图像进行的操作,如图像旋转等。
21487
- # @type ImageOperations: Array
21488
21496
  # @param AudioOperations: 对音频进行操作,如静音等。
21489
21497
  # @type AudioOperations: Array
21498
+ # @param ImageOperations: 对图像进行的操作,如图像旋转等。
21499
+ # @type ImageOperations: Array
21490
21500
 
21491
- attr_accessor :SourceMedia, :SourceMediaStartTime, :Duration, :CoordinateOrigin, :XPos, :YPos, :Width, :Height, :ImageOperations, :AudioOperations
21501
+ attr_accessor :SourceMedia, :SourceMediaStartTime, :Duration, :TargetDuration, :CoordinateOrigin, :XPos, :YPos, :Width, :Height, :AudioOperations, :ImageOperations
21492
21502
 
21493
- def initialize(sourcemedia=nil, sourcemediastarttime=nil, duration=nil, coordinateorigin=nil, xpos=nil, ypos=nil, width=nil, height=nil, imageoperations=nil, audiooperations=nil)
21503
+ def initialize(sourcemedia=nil, sourcemediastarttime=nil, duration=nil, targetduration=nil, coordinateorigin=nil, xpos=nil, ypos=nil, width=nil, height=nil, audiooperations=nil, imageoperations=nil)
21494
21504
  @SourceMedia = sourcemedia
21495
21505
  @SourceMediaStartTime = sourcemediastarttime
21496
21506
  @Duration = duration
21507
+ @TargetDuration = targetduration
21497
21508
  @CoordinateOrigin = coordinateorigin
21498
21509
  @XPos = xpos
21499
21510
  @YPos = ypos
21500
21511
  @Width = width
21501
21512
  @Height = height
21502
- @ImageOperations = imageoperations
21503
21513
  @AudioOperations = audiooperations
21514
+ @ImageOperations = imageoperations
21504
21515
  end
21505
21516
 
21506
21517
  def deserialize(params)
21507
21518
  @SourceMedia = params['SourceMedia']
21508
21519
  @SourceMediaStartTime = params['SourceMediaStartTime']
21509
21520
  @Duration = params['Duration']
21521
+ @TargetDuration = params['TargetDuration']
21510
21522
  @CoordinateOrigin = params['CoordinateOrigin']
21511
21523
  @XPos = params['XPos']
21512
21524
  @YPos = params['YPos']
21513
21525
  @Width = params['Width']
21514
21526
  @Height = params['Height']
21515
- unless params['ImageOperations'].nil?
21516
- @ImageOperations = []
21517
- params['ImageOperations'].each do |i|
21518
- imagetransform_tmp = ImageTransform.new
21519
- imagetransform_tmp.deserialize(i)
21520
- @ImageOperations << imagetransform_tmp
21521
- end
21522
- end
21523
21527
  unless params['AudioOperations'].nil?
21524
21528
  @AudioOperations = []
21525
21529
  params['AudioOperations'].each do |i|
@@ -21528,6 +21532,14 @@ module TencentCloud
21528
21532
  @AudioOperations << audiotransform_tmp
21529
21533
  end
21530
21534
  end
21535
+ unless params['ImageOperations'].nil?
21536
+ @ImageOperations = []
21537
+ params['ImageOperations'].each do |i|
21538
+ imagetransform_tmp = ImageTransform.new
21539
+ imagetransform_tmp.deserialize(i)
21540
+ @ImageOperations << imagetransform_tmp
21541
+ end
21542
+ end
21531
21543
  end
21532
21544
  end
21533
21545
 
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.440
4
+ version: 3.0.441
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-10-31 00:00:00.000000000 Z
11
+ date: 2022-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common