Class: TencentCloud::Vod::V20180717::CreateSuperPlayerConfigRequest

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

Overview

CreateSuperPlayerConfig请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, subappid = nil, audiovideotype = nil, drmswitch = nil, adaptivedynamicstreamingdefinition = nil, drmstreamingsinfo = nil, transcodedefinition = nil, imagespritedefinition = nil, resolutionnames = nil, domain = nil, scheme = nil, comment = nil) ⇒ CreateSuperPlayerConfigRequest

Returns a new instance of CreateSuperPlayerConfigRequest.



8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
# File 'lib/v20180717/models.rb', line 8217

def initialize(name=nil, subappid=nil, audiovideotype=nil, drmswitch=nil, adaptivedynamicstreamingdefinition=nil, drmstreamingsinfo=nil, transcodedefinition=nil, imagespritedefinition=nil, resolutionnames=nil, domain=nil, scheme=nil, comment=nil)
  @Name = name
  @SubAppId = subappid
  @AudioVideoType = audiovideotype
  @DrmSwitch = drmswitch
  @AdaptiveDynamicStreamingDefinition = adaptivedynamicstreamingdefinition
  @DrmStreamingsInfo = drmstreamingsinfo
  @TranscodeDefinition = transcodedefinition
  @ImageSpriteDefinition = imagespritedefinition
  @ResolutionNames = resolutionnames
  @Domain = domain
  @Scheme = scheme
  @Comment = comment
end

Instance Attribute Details

#AdaptiveDynamicStreamingDefinitionObject

当 AudioVideoType 为 Transcode 时必填。<li>MinEdgeLength:240,Name:流畅;</li> <li>MinEdgeLength:480,Name:标清;</li> <li>MinEdgeLength:720,Name:高清;</li> <li>MinEdgeLength:1080,Name:全高清;</li> <li>MinEdgeLength:1440,Name:2K;</li> <li>MinEdgeLength:2160,Name:4K;</li> <li>MinEdgeLength:4320,Name:8K。</li> <li>HTTP;</li> <li>HTTPS。</li>

Parameters:



8215
8216
8217
# File 'lib/v20180717/models.rb', line 8215

def AdaptiveDynamicStreamingDefinition
  @AdaptiveDynamicStreamingDefinition
end

#AudioVideoTypeObject

当 AudioVideoType 为 Transcode 时必填。<li>MinEdgeLength:240,Name:流畅;</li> <li>MinEdgeLength:480,Name:标清;</li> <li>MinEdgeLength:720,Name:高清;</li> <li>MinEdgeLength:1080,Name:全高清;</li> <li>MinEdgeLength:1440,Name:2K;</li> <li>MinEdgeLength:2160,Name:4K;</li> <li>MinEdgeLength:4320,Name:8K。</li> <li>HTTP;</li> <li>HTTPS。</li>

Parameters:



8215
8216
8217
# File 'lib/v20180717/models.rb', line 8215

def AudioVideoType
  @AudioVideoType
end

#CommentObject

当 AudioVideoType 为 Transcode 时必填。<li>MinEdgeLength:240,Name:流畅;</li> <li>MinEdgeLength:480,Name:标清;</li> <li>MinEdgeLength:720,Name:高清;</li> <li>MinEdgeLength:1080,Name:全高清;</li> <li>MinEdgeLength:1440,Name:2K;</li> <li>MinEdgeLength:2160,Name:4K;</li> <li>MinEdgeLength:4320,Name:8K。</li> <li>HTTP;</li> <li>HTTPS。</li>

Parameters:



8215
8216
8217
# File 'lib/v20180717/models.rb', line 8215

def Comment
  @Comment
end

#DomainObject

当 AudioVideoType 为 Transcode 时必填。<li>MinEdgeLength:240,Name:流畅;</li> <li>MinEdgeLength:480,Name:标清;</li> <li>MinEdgeLength:720,Name:高清;</li> <li>MinEdgeLength:1080,Name:全高清;</li> <li>MinEdgeLength:1440,Name:2K;</li> <li>MinEdgeLength:2160,Name:4K;</li> <li>MinEdgeLength:4320,Name:8K。</li> <li>HTTP;</li> <li>HTTPS。</li>

Parameters:



8215
8216
8217
# File 'lib/v20180717/models.rb', line 8215

def Domain
  @Domain
end

#DrmStreamingsInfoObject

当 AudioVideoType 为 Transcode 时必填。<li>MinEdgeLength:240,Name:流畅;</li> <li>MinEdgeLength:480,Name:标清;</li> <li>MinEdgeLength:720,Name:高清;</li> <li>MinEdgeLength:1080,Name:全高清;</li> <li>MinEdgeLength:1440,Name:2K;</li> <li>MinEdgeLength:2160,Name:4K;</li> <li>MinEdgeLength:4320,Name:8K。</li> <li>HTTP;</li> <li>HTTPS。</li>

Parameters:



8215
8216
8217
# File 'lib/v20180717/models.rb', line 8215

def DrmStreamingsInfo
  @DrmStreamingsInfo
end

#DrmSwitchObject

当 AudioVideoType 为 Transcode 时必填。<li>MinEdgeLength:240,Name:流畅;</li> <li>MinEdgeLength:480,Name:标清;</li> <li>MinEdgeLength:720,Name:高清;</li> <li>MinEdgeLength:1080,Name:全高清;</li> <li>MinEdgeLength:1440,Name:2K;</li> <li>MinEdgeLength:2160,Name:4K;</li> <li>MinEdgeLength:4320,Name:8K。</li> <li>HTTP;</li> <li>HTTPS。</li>

Parameters:



8215
8216
8217
# File 'lib/v20180717/models.rb', line 8215

def DrmSwitch
  @DrmSwitch
end

#ImageSpriteDefinitionObject

当 AudioVideoType 为 Transcode 时必填。<li>MinEdgeLength:240,Name:流畅;</li> <li>MinEdgeLength:480,Name:标清;</li> <li>MinEdgeLength:720,Name:高清;</li> <li>MinEdgeLength:1080,Name:全高清;</li> <li>MinEdgeLength:1440,Name:2K;</li> <li>MinEdgeLength:2160,Name:4K;</li> <li>MinEdgeLength:4320,Name:8K。</li> <li>HTTP;</li> <li>HTTPS。</li>

Parameters:



8215
8216
8217
# File 'lib/v20180717/models.rb', line 8215

def ImageSpriteDefinition
  @ImageSpriteDefinition
end

#NameObject

当 AudioVideoType 为 Transcode 时必填。<li>MinEdgeLength:240,Name:流畅;</li> <li>MinEdgeLength:480,Name:标清;</li> <li>MinEdgeLength:720,Name:高清;</li> <li>MinEdgeLength:1080,Name:全高清;</li> <li>MinEdgeLength:1440,Name:2K;</li> <li>MinEdgeLength:2160,Name:4K;</li> <li>MinEdgeLength:4320,Name:8K。</li> <li>HTTP;</li> <li>HTTPS。</li>

Parameters:



8215
8216
8217
# File 'lib/v20180717/models.rb', line 8215

def Name
  @Name
end

#ResolutionNamesObject

当 AudioVideoType 为 Transcode 时必填。<li>MinEdgeLength:240,Name:流畅;</li> <li>MinEdgeLength:480,Name:标清;</li> <li>MinEdgeLength:720,Name:高清;</li> <li>MinEdgeLength:1080,Name:全高清;</li> <li>MinEdgeLength:1440,Name:2K;</li> <li>MinEdgeLength:2160,Name:4K;</li> <li>MinEdgeLength:4320,Name:8K。</li> <li>HTTP;</li> <li>HTTPS。</li>

Parameters:



8215
8216
8217
# File 'lib/v20180717/models.rb', line 8215

def ResolutionNames
  @ResolutionNames
end

#SchemeObject

当 AudioVideoType 为 Transcode 时必填。<li>MinEdgeLength:240,Name:流畅;</li> <li>MinEdgeLength:480,Name:标清;</li> <li>MinEdgeLength:720,Name:高清;</li> <li>MinEdgeLength:1080,Name:全高清;</li> <li>MinEdgeLength:1440,Name:2K;</li> <li>MinEdgeLength:2160,Name:4K;</li> <li>MinEdgeLength:4320,Name:8K。</li> <li>HTTP;</li> <li>HTTPS。</li>

Parameters:



8215
8216
8217
# File 'lib/v20180717/models.rb', line 8215

def Scheme
  @Scheme
end

#SubAppIdObject

当 AudioVideoType 为 Transcode 时必填。<li>MinEdgeLength:240,Name:流畅;</li> <li>MinEdgeLength:480,Name:标清;</li> <li>MinEdgeLength:720,Name:高清;</li> <li>MinEdgeLength:1080,Name:全高清;</li> <li>MinEdgeLength:1440,Name:2K;</li> <li>MinEdgeLength:2160,Name:4K;</li> <li>MinEdgeLength:4320,Name:8K。</li> <li>HTTP;</li> <li>HTTPS。</li>

Parameters:



8215
8216
8217
# File 'lib/v20180717/models.rb', line 8215

def SubAppId
  @SubAppId
end

#TranscodeDefinitionObject

当 AudioVideoType 为 Transcode 时必填。<li>MinEdgeLength:240,Name:流畅;</li> <li>MinEdgeLength:480,Name:标清;</li> <li>MinEdgeLength:720,Name:高清;</li> <li>MinEdgeLength:1080,Name:全高清;</li> <li>MinEdgeLength:1440,Name:2K;</li> <li>MinEdgeLength:2160,Name:4K;</li> <li>MinEdgeLength:4320,Name:8K。</li> <li>HTTP;</li> <li>HTTPS。</li>

Parameters:



8215
8216
8217
# File 'lib/v20180717/models.rb', line 8215

def TranscodeDefinition
  @TranscodeDefinition
end

Instance Method Details

#deserialize(params) ⇒ Object



8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
# File 'lib/v20180717/models.rb', line 8232

def deserialize(params)
  @Name = params['Name']
  @SubAppId = params['SubAppId']
  @AudioVideoType = params['AudioVideoType']
  @DrmSwitch = params['DrmSwitch']
  @AdaptiveDynamicStreamingDefinition = params['AdaptiveDynamicStreamingDefinition']
  unless params['DrmStreamingsInfo'].nil?
    @DrmStreamingsInfo = DrmStreamingsInfo.new
    @DrmStreamingsInfo.deserialize(params['DrmStreamingsInfo'])
  end
  @TranscodeDefinition = params['TranscodeDefinition']
  @ImageSpriteDefinition = params['ImageSpriteDefinition']
  unless params['ResolutionNames'].nil?
    @ResolutionNames = []
    params['ResolutionNames'].each do |i|
      resolutionnameinfo_tmp = ResolutionNameInfo.new
      resolutionnameinfo_tmp.deserialize(i)
      @ResolutionNames << resolutionnameinfo_tmp
    end
  end
  @Domain = params['Domain']
  @Scheme = params['Scheme']
  @Comment = params['Comment']
end