Class: TencentCloud::Mps::V20190612::ComposeMediaItem

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20190612/models.rb

Overview

视频编辑/合成任务 轨道元素信息。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type = nil, video = nil, audio = nil, image = nil, transition = nil, subtitle = nil, empty = nil) ⇒ ComposeMediaItem

Returns a new instance of ComposeMediaItem.



5897
5898
5899
5900
5901
5902
5903
5904
5905
# File 'lib/v20190612/models.rb', line 5897

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

#AudioObject

<li>Video:视频元素。</li> <li>Audio:音频元素。</li> <li>Image:图片元素。</li> <li>Transition:转场元素。</li> <li>Subtitle:字幕元素。</li> <li>Empty:空白元素。</li>

Parameters:

  • Type:

    元素类型。取值有:

  • Video:

    视频元素,当 Type = Video 时有效。

  • Audio:

    音频元素,当 Type = Audio 时有效。

  • Image:

    图片元素,当 Type = Image 时有效。

  • Transition:

    转场元素,当 Type = Transition 时有效。

  • Subtitle:

    字幕元素,当 Type = Subtitle 是有效。

  • Empty:

    空白元素,当 Type = Empty 时有效。用于时间轴的占位。



5895
5896
5897
# File 'lib/v20190612/models.rb', line 5895

def Audio
  @Audio
end

#EmptyObject

<li>Video:视频元素。</li> <li>Audio:音频元素。</li> <li>Image:图片元素。</li> <li>Transition:转场元素。</li> <li>Subtitle:字幕元素。</li> <li>Empty:空白元素。</li>

Parameters:

  • Type:

    元素类型。取值有:

  • Video:

    视频元素,当 Type = Video 时有效。

  • Audio:

    音频元素,当 Type = Audio 时有效。

  • Image:

    图片元素,当 Type = Image 时有效。

  • Transition:

    转场元素,当 Type = Transition 时有效。

  • Subtitle:

    字幕元素,当 Type = Subtitle 是有效。

  • Empty:

    空白元素,当 Type = Empty 时有效。用于时间轴的占位。



5895
5896
5897
# File 'lib/v20190612/models.rb', line 5895

def Empty
  @Empty
end

#ImageObject

<li>Video:视频元素。</li> <li>Audio:音频元素。</li> <li>Image:图片元素。</li> <li>Transition:转场元素。</li> <li>Subtitle:字幕元素。</li> <li>Empty:空白元素。</li>

Parameters:

  • Type:

    元素类型。取值有:

  • Video:

    视频元素,当 Type = Video 时有效。

  • Audio:

    音频元素,当 Type = Audio 时有效。

  • Image:

    图片元素,当 Type = Image 时有效。

  • Transition:

    转场元素,当 Type = Transition 时有效。

  • Subtitle:

    字幕元素,当 Type = Subtitle 是有效。

  • Empty:

    空白元素,当 Type = Empty 时有效。用于时间轴的占位。



5895
5896
5897
# File 'lib/v20190612/models.rb', line 5895

def Image
  @Image
end

#SubtitleObject

<li>Video:视频元素。</li> <li>Audio:音频元素。</li> <li>Image:图片元素。</li> <li>Transition:转场元素。</li> <li>Subtitle:字幕元素。</li> <li>Empty:空白元素。</li>

Parameters:

  • Type:

    元素类型。取值有:

  • Video:

    视频元素,当 Type = Video 时有效。

  • Audio:

    音频元素,当 Type = Audio 时有效。

  • Image:

    图片元素,当 Type = Image 时有效。

  • Transition:

    转场元素,当 Type = Transition 时有效。

  • Subtitle:

    字幕元素,当 Type = Subtitle 是有效。

  • Empty:

    空白元素,当 Type = Empty 时有效。用于时间轴的占位。



5895
5896
5897
# File 'lib/v20190612/models.rb', line 5895

def Subtitle
  @Subtitle
end

#TransitionObject

<li>Video:视频元素。</li> <li>Audio:音频元素。</li> <li>Image:图片元素。</li> <li>Transition:转场元素。</li> <li>Subtitle:字幕元素。</li> <li>Empty:空白元素。</li>

Parameters:

  • Type:

    元素类型。取值有:

  • Video:

    视频元素,当 Type = Video 时有效。

  • Audio:

    音频元素,当 Type = Audio 时有效。

  • Image:

    图片元素,当 Type = Image 时有效。

  • Transition:

    转场元素,当 Type = Transition 时有效。

  • Subtitle:

    字幕元素,当 Type = Subtitle 是有效。

  • Empty:

    空白元素,当 Type = Empty 时有效。用于时间轴的占位。



5895
5896
5897
# File 'lib/v20190612/models.rb', line 5895

def Transition
  @Transition
end

#TypeObject

<li>Video:视频元素。</li> <li>Audio:音频元素。</li> <li>Image:图片元素。</li> <li>Transition:转场元素。</li> <li>Subtitle:字幕元素。</li> <li>Empty:空白元素。</li>

Parameters:

  • Type:

    元素类型。取值有:

  • Video:

    视频元素,当 Type = Video 时有效。

  • Audio:

    音频元素,当 Type = Audio 时有效。

  • Image:

    图片元素,当 Type = Image 时有效。

  • Transition:

    转场元素,当 Type = Transition 时有效。

  • Subtitle:

    字幕元素,当 Type = Subtitle 是有效。

  • Empty:

    空白元素,当 Type = Empty 时有效。用于时间轴的占位。



5895
5896
5897
# File 'lib/v20190612/models.rb', line 5895

def Type
  @Type
end

#VideoObject

<li>Video:视频元素。</li> <li>Audio:音频元素。</li> <li>Image:图片元素。</li> <li>Transition:转场元素。</li> <li>Subtitle:字幕元素。</li> <li>Empty:空白元素。</li>

Parameters:

  • Type:

    元素类型。取值有:

  • Video:

    视频元素,当 Type = Video 时有效。

  • Audio:

    音频元素,当 Type = Audio 时有效。

  • Image:

    图片元素,当 Type = Image 时有效。

  • Transition:

    转场元素,当 Type = Transition 时有效。

  • Subtitle:

    字幕元素,当 Type = Subtitle 是有效。

  • Empty:

    空白元素,当 Type = Empty 时有效。用于时间轴的占位。



5895
5896
5897
# File 'lib/v20190612/models.rb', line 5895

def Video
  @Video
end

Instance Method Details

#deserialize(params) ⇒ Object



5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
# File 'lib/v20190612/models.rb', line 5907

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