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

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

Overview

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

Instance Attribute Summary collapse

  • #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

    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

    #AudioObject

  • Video:视频元素。
  • Audio:音频元素。
  • Image:图片元素。
  • Transition:转场元素。
  • Subtitle:字幕元素。
  • Empty:空白元素。
  • Parameters:

    • Type:

      元素类型。取值有:

    • Video:

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

    • Audio:

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

    • Image:

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

    • Transition:

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

    • Subtitle:

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

    • Empty:

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

    
    
    6698
    6699
    6700
    # File 'lib/v20190612/models.rb', line 6698
    
    def Audio
      @Audio
    end

    #EmptyObject

  • Video:视频元素。
  • Audio:音频元素。
  • Image:图片元素。
  • Transition:转场元素。
  • Subtitle:字幕元素。
  • Empty:空白元素。
  • Parameters:

    • Type:

      元素类型。取值有:

    • Video:

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

    • Audio:

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

    • Image:

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

    • Transition:

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

    • Subtitle:

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

    • Empty:

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

    
    
    6698
    6699
    6700
    # File 'lib/v20190612/models.rb', line 6698
    
    def Empty
      @Empty
    end

    #ImageObject

  • Video:视频元素。
  • Audio:音频元素。
  • Image:图片元素。
  • Transition:转场元素。
  • Subtitle:字幕元素。
  • Empty:空白元素。
  • Parameters:

    • Type:

      元素类型。取值有:

    • Video:

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

    • Audio:

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

    • Image:

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

    • Transition:

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

    • Subtitle:

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

    • Empty:

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

    
    
    6698
    6699
    6700
    # File 'lib/v20190612/models.rb', line 6698
    
    def Image
      @Image
    end

    #SubtitleObject

  • Video:视频元素。
  • Audio:音频元素。
  • Image:图片元素。
  • Transition:转场元素。
  • Subtitle:字幕元素。
  • Empty:空白元素。
  • Parameters:

    • Type:

      元素类型。取值有:

    • Video:

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

    • Audio:

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

    • Image:

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

    • Transition:

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

    • Subtitle:

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

    • Empty:

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

    
    
    6698
    6699
    6700
    # File 'lib/v20190612/models.rb', line 6698
    
    def Subtitle
      @Subtitle
    end

    #TransitionObject

  • Video:视频元素。
  • Audio:音频元素。
  • Image:图片元素。
  • Transition:转场元素。
  • Subtitle:字幕元素。
  • Empty:空白元素。
  • Parameters:

    • Type:

      元素类型。取值有:

    • Video:

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

    • Audio:

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

    • Image:

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

    • Transition:

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

    • Subtitle:

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

    • Empty:

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

    
    
    6698
    6699
    6700
    # File 'lib/v20190612/models.rb', line 6698
    
    def Transition
      @Transition
    end

    #TypeObject

  • Video:视频元素。
  • Audio:音频元素。
  • Image:图片元素。
  • Transition:转场元素。
  • Subtitle:字幕元素。
  • Empty:空白元素。
  • Parameters:

    • Type:

      元素类型。取值有:

    • Video:

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

    • Audio:

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

    • Image:

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

    • Transition:

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

    • Subtitle:

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

    • Empty:

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

    
    
    6698
    6699
    6700
    # File 'lib/v20190612/models.rb', line 6698
    
    def Type
      @Type
    end

    #VideoObject

  • Video:视频元素。
  • Audio:音频元素。
  • Image:图片元素。
  • Transition:转场元素。
  • Subtitle:字幕元素。
  • Empty:空白元素。
  • Parameters:

    • Type:

      元素类型。取值有:

    • Video:

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

    • Audio:

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

    • Image:

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

    • Transition:

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

    • Subtitle:

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

    • Empty:

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

    
    
    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