Class: TencentCloud::Cme::V20191029::AudioTrackItem
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cme::V20191029::AudioTrackItem
- Defined in:
- lib/v20191029/models.rb
Overview
音频轨道上的音频片段信息。
Instance Attribute Summary collapse
-
#Duration ⇒ Object
注意:
- 当 SourceType 为 EXTERNAL 并且媒体 URL Scheme 为
https时(如:https://www.example.com/a.mp3),参数为:1000000:www.example.com/a.mp3。- 当 SourceType 为 EXTERNAL 并且媒体 URL Scheme 为
.http时(如:http://www.example.com/b.mp3),参数为:1000001:www.example.com/b.mp3。 - 当 SourceType 为 EXTERNAL 并且媒体 URL Scheme 为
-
#SourceMedia ⇒ Object
注意:
- 当 SourceType 为 EXTERNAL 并且媒体 URL Scheme 为
https时(如:https://www.example.com/a.mp3),参数为:1000000:www.example.com/a.mp3。- 当 SourceType 为 EXTERNAL 并且媒体 URL Scheme 为
.http时(如:http://www.example.com/b.mp3),参数为:1000001:www.example.com/b.mp3。 - 当 SourceType 为 EXTERNAL 并且媒体 URL Scheme 为
-
#SourceMediaStartTime ⇒ Object
注意:
- 当 SourceType 为 EXTERNAL 并且媒体 URL Scheme 为
https时(如:https://www.example.com/a.mp3),参数为:1000000:www.example.com/a.mp3。- 当 SourceType 为 EXTERNAL 并且媒体 URL Scheme 为
.http时(如:http://www.example.com/b.mp3),参数为:1000001:www.example.com/b.mp3。 - 当 SourceType 为 EXTERNAL 并且媒体 URL Scheme 为
-
#SourceType ⇒ Object
注意:
- 当 SourceType 为 EXTERNAL 并且媒体 URL Scheme 为
https时(如:https://www.example.com/a.mp3),参数为:1000000:www.example.com/a.mp3。- 当 SourceType 为 EXTERNAL 并且媒体 URL Scheme 为
.http时(如:http://www.example.com/b.mp3),参数为:1000001:www.example.com/b.mp3。 - 当 SourceType 为 EXTERNAL 并且媒体 URL Scheme 为
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(sourcetype = nil, sourcemedia = nil, sourcemediastarttime = nil, duration = nil) ⇒ AudioTrackItem
constructor
A new instance of AudioTrackItem.
Constructor Details
#initialize(sourcetype = nil, sourcemedia = nil, sourcemediastarttime = nil, duration = nil) ⇒ AudioTrackItem
Returns a new instance of AudioTrackItem.
221 222 223 224 225 226 |
# File 'lib/v20191029/models.rb', line 221 def initialize(sourcetype=nil, sourcemedia=nil, sourcemediastarttime=nil, duration=nil) @SourceType = sourcetype @SourceMedia = sourcemedia @SourceMediaStartTime = sourcemediastarttime @Duration = duration end |
Instance Attribute Details
#Duration ⇒ Object
注意:
219 220 221 |
# File 'lib/v20191029/models.rb', line 219 def Duration @Duration end |
#SourceMedia ⇒ Object
注意:
219 220 221 |
# File 'lib/v20191029/models.rb', line 219 def SourceMedia @SourceMedia end |
#SourceMediaStartTime ⇒ Object
注意:
219 220 221 |
# File 'lib/v20191029/models.rb', line 219 def SourceMediaStartTime @SourceMediaStartTime end |
#SourceType ⇒ Object
注意:
219 220 221 |
# File 'lib/v20191029/models.rb', line 219 def SourceType @SourceType end |
Instance Method Details
#deserialize(params) ⇒ Object
228 229 230 231 232 233 |
# File 'lib/v20191029/models.rb', line 228 def deserialize(params) @SourceType = params['SourceType'] @SourceMedia = params['SourceMedia'] @SourceMediaStartTime = params['SourceMediaStartTime'] @Duration = params['Duration'] end |