Class: TencentCloud::Mps::V20190612::AdaptiveDynamicStreamingTemplate

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

Overview

转自适应码流模板详情

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(definition = nil, type = nil, name = nil, comment = nil, format = nil, streaminfos = nil, disablehighervideobitrate = nil, disablehighervideoresolution = nil, createtime = nil, updatetime = nil, pureaudio = nil, segmenttype = nil) ⇒ AdaptiveDynamicStreamingTemplate

Returns a new instance of AdaptiveDynamicStreamingTemplate.



687
688
689
690
691
692
693
694
695
696
697
698
699
700
# File 'lib/v20190612/models.rb', line 687

def initialize(definition=nil, type=nil, name=nil, comment=nil, format=nil, streaminfos=nil, disablehighervideobitrate=nil, disablehighervideoresolution=nil, createtime=nil, updatetime=nil, pureaudio=nil, segmenttype=nil)
  @Definition = definition
  @Type = type
  @Name = name
  @Comment = comment
  @Format = format
  @StreamInfos = streaminfos
  @DisableHigherVideoBitrate = disablehighervideobitrate
  @DisableHigherVideoResolution = disablehighervideoresolution
  @CreateTime = createtime
  @UpdateTime = updatetime
  @PureAudio = pureaudio
  @SegmentType = segmenttype
end

Instance Attribute Details

#CommentObject

注:自适应码流的hls分片格式已此字段为准注意:此字段可能返回 null,表示取不到有效值。



685
686
687
# File 'lib/v20190612/models.rb', line 685

def Comment
  @Comment
end

#CreateTimeObject

注:自适应码流的hls分片格式已此字段为准注意:此字段可能返回 null,表示取不到有效值。



685
686
687
# File 'lib/v20190612/models.rb', line 685

def CreateTime
  @CreateTime
end

#DefinitionObject

注:自适应码流的hls分片格式已此字段为准注意:此字段可能返回 null,表示取不到有效值。



685
686
687
# File 'lib/v20190612/models.rb', line 685

def Definition
  @Definition
end

#DisableHigherVideoBitrateObject

注:自适应码流的hls分片格式已此字段为准注意:此字段可能返回 null,表示取不到有效值。



685
686
687
# File 'lib/v20190612/models.rb', line 685

def DisableHigherVideoBitrate
  @DisableHigherVideoBitrate
end

#DisableHigherVideoResolutionObject

注:自适应码流的hls分片格式已此字段为准注意:此字段可能返回 null,表示取不到有效值。



685
686
687
# File 'lib/v20190612/models.rb', line 685

def DisableHigherVideoResolution
  @DisableHigherVideoResolution
end

#FormatObject

注:自适应码流的hls分片格式已此字段为准注意:此字段可能返回 null,表示取不到有效值。



685
686
687
# File 'lib/v20190612/models.rb', line 685

def Format
  @Format
end

#NameObject

注:自适应码流的hls分片格式已此字段为准注意:此字段可能返回 null,表示取不到有效值。



685
686
687
# File 'lib/v20190612/models.rb', line 685

def Name
  @Name
end

#PureAudioObject

注:自适应码流的hls分片格式已此字段为准注意:此字段可能返回 null,表示取不到有效值。



685
686
687
# File 'lib/v20190612/models.rb', line 685

def PureAudio
  @PureAudio
end

#SegmentTypeObject

注:自适应码流的hls分片格式已此字段为准注意:此字段可能返回 null,表示取不到有效值。



685
686
687
# File 'lib/v20190612/models.rb', line 685

def SegmentType
  @SegmentType
end

#StreamInfosObject

注:自适应码流的hls分片格式已此字段为准注意:此字段可能返回 null,表示取不到有效值。



685
686
687
# File 'lib/v20190612/models.rb', line 685

def StreamInfos
  @StreamInfos
end

#TypeObject

注:自适应码流的hls分片格式已此字段为准注意:此字段可能返回 null,表示取不到有效值。



685
686
687
# File 'lib/v20190612/models.rb', line 685

def Type
  @Type
end

#UpdateTimeObject

注:自适应码流的hls分片格式已此字段为准注意:此字段可能返回 null,表示取不到有效值。



685
686
687
# File 'lib/v20190612/models.rb', line 685

def UpdateTime
  @UpdateTime
end

Instance Method Details

#deserialize(params) ⇒ Object



702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
# File 'lib/v20190612/models.rb', line 702

def deserialize(params)
  @Definition = params['Definition']
  @Type = params['Type']
  @Name = params['Name']
  @Comment = params['Comment']
  @Format = params['Format']
  unless params['StreamInfos'].nil?
    @StreamInfos = []
    params['StreamInfos'].each do |i|
      adaptivestreamtemplate_tmp = AdaptiveStreamTemplate.new
      adaptivestreamtemplate_tmp.deserialize(i)
      @StreamInfos << adaptivestreamtemplate_tmp
    end
  end
  @DisableHigherVideoBitrate = params['DisableHigherVideoBitrate']
  @DisableHigherVideoResolution = params['DisableHigherVideoResolution']
  @CreateTime = params['CreateTime']
  @UpdateTime = params['UpdateTime']
  @PureAudio = params['PureAudio']
  @SegmentType = params['SegmentType']
end