Class: TencentCloud::Mps::V20190612::ComposeMediaItem
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Mps::V20190612::ComposeMediaItem
- Defined in:
- lib/v20190612/models.rb
Overview
视频编辑/合成任务 轨道元素信息。
Instance Attribute Summary collapse
-
#Audio ⇒ Object
- Video:视频元素。
- Audio:音频元素。
- Image:图片元素。
- Transition:转场元素。
- Subtitle:字幕元素。
- Empty:空白元素。
. -
#Empty ⇒ Object
- Video:视频元素。
- Audio:音频元素。
- Image:图片元素。
- Transition:转场元素。
- Subtitle:字幕元素。
- Empty:空白元素。
. -
#Image ⇒ Object
- Video:视频元素。
- Audio:音频元素。
- Image:图片元素。
- Transition:转场元素。
- Subtitle:字幕元素。
- Empty:空白元素。
. -
#Subtitle ⇒ Object
- Video:视频元素。
- Audio:音频元素。
- Image:图片元素。
- Transition:转场元素。
- Subtitle:字幕元素。
- Empty:空白元素。
. -
#Transition ⇒ Object
- Video:视频元素。
- Audio:音频元素。
- Image:图片元素。
- Transition:转场元素。
- Subtitle:字幕元素。
- Empty:空白元素。
. -
#Type ⇒ Object
- Video:视频元素。
- Audio:音频元素。
- Image:图片元素。
- Transition:转场元素。
- Subtitle:字幕元素。
- Empty:空白元素。
. -
#Video ⇒ Object
- Video:视频元素。
- Audio:音频元素。
- Image:图片元素。
- Transition:转场元素。
- Subtitle:字幕元素。
- Empty:空白元素。
.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(type = nil, video = nil, audio = nil, image = nil, transition = nil, subtitle = nil, empty = nil) ⇒ ComposeMediaItem
constructor
A new instance of ComposeMediaItem.
Constructor Details
#initialize(type = nil, video = nil, audio = nil, image = nil, transition = nil, subtitle = nil, empty = nil) ⇒ ComposeMediaItem
Returns a new instance of ComposeMediaItem.
6700 6701 6702 6703 6704 6705 6706 6707 6708 |
# File 'lib/v20190612/models.rb', line 6700 def initialize(type=nil, video=nil, audio=nil, image=nil, transition=nil, subtitle=nil, empty=nil) @Type = type @Video = video @Audio = audio @Image = image @Transition = transition @Subtitle = subtitle @Empty = empty end |
Instance Attribute Details
#Audio ⇒ Object
6698 6699 6700 |
# File 'lib/v20190612/models.rb', line 6698 def Audio @Audio end |
#Empty ⇒ Object
6698 6699 6700 |
# File 'lib/v20190612/models.rb', line 6698 def Empty @Empty end |
#Image ⇒ Object
6698 6699 6700 |
# File 'lib/v20190612/models.rb', line 6698 def Image @Image end |
#Subtitle ⇒ Object
6698 6699 6700 |
# File 'lib/v20190612/models.rb', line 6698 def Subtitle @Subtitle end |
#Transition ⇒ Object
6698 6699 6700 |
# File 'lib/v20190612/models.rb', line 6698 def Transition @Transition end |
#Type ⇒ Object
6698 6699 6700 |
# File 'lib/v20190612/models.rb', line 6698 def Type @Type end |
#Video ⇒ Object
6698 6699 6700 |
# File 'lib/v20190612/models.rb', line 6698 def Video @Video end |
Instance Method Details
#deserialize(params) ⇒ Object
6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 |
# File 'lib/v20190612/models.rb', line 6710 def deserialize(params) @Type = params['Type'] unless params['Video'].nil? @Video = ComposeVideoItem.new @Video.deserialize(params['Video']) end unless params['Audio'].nil? @Audio = ComposeAudioItem.new @Audio.deserialize(params['Audio']) end unless params['Image'].nil? @Image = ComposeImageItem.new @Image.deserialize(params['Image']) end unless params['Transition'].nil? @Transition = ComposeTransitionItem.new @Transition.deserialize(params['Transition']) end unless params['Subtitle'].nil? @Subtitle = ComposeSubtitleItem.new @Subtitle.deserialize(params['Subtitle']) end unless params['Empty'].nil? @Empty = ComposeEmptyItem.new @Empty.deserialize(params['Empty']) end end |