Class: TencentCloud::Drm::V20181115::GenerateTDRMKeyRequest

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

Overview

GenerateTDRMKey请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(drmtype = nil, tracks = nil, contentid = nil, contenttype = nil) ⇒ GenerateTDRMKeyRequest

Returns a new instance of GenerateTDRMKeyRequest.



599
600
601
602
603
604
# File 'lib/v20181115/models.rb', line 599

def initialize(drmtype=nil, tracks=nil, contentid=nil, contenttype=nil)
  @DrmType = drmtype
  @Tracks = tracks
  @ContentId = contentid
  @ContentType = contenttype
end

Instance Attribute Details

#ContentIdObject

Parameters:

  • DrmType:

    使用的DRM方案类型,接口取值 NORMALAES 。

  • Tracks:

    加密的track列表,接口取值 SD 。

  • ContentId:

    一个加密内容的唯一标识。

  • ContentType:

    内容类型。接口取值 LiveVideo 。



597
598
599
# File 'lib/v20181115/models.rb', line 597

def ContentId
  @ContentId
end

#ContentTypeObject

Parameters:

  • DrmType:

    使用的DRM方案类型,接口取值 NORMALAES 。

  • Tracks:

    加密的track列表,接口取值 SD 。

  • ContentId:

    一个加密内容的唯一标识。

  • ContentType:

    内容类型。接口取值 LiveVideo 。



597
598
599
# File 'lib/v20181115/models.rb', line 597

def ContentType
  @ContentType
end

#DrmTypeObject

Parameters:

  • DrmType:

    使用的DRM方案类型,接口取值 NORMALAES 。

  • Tracks:

    加密的track列表,接口取值 SD 。

  • ContentId:

    一个加密内容的唯一标识。

  • ContentType:

    内容类型。接口取值 LiveVideo 。



597
598
599
# File 'lib/v20181115/models.rb', line 597

def DrmType
  @DrmType
end

#TracksObject

Parameters:

  • DrmType:

    使用的DRM方案类型,接口取值 NORMALAES 。

  • Tracks:

    加密的track列表,接口取值 SD 。

  • ContentId:

    一个加密内容的唯一标识。

  • ContentType:

    内容类型。接口取值 LiveVideo 。



597
598
599
# File 'lib/v20181115/models.rb', line 597

def Tracks
  @Tracks
end

Instance Method Details

#deserialize(params) ⇒ Object



606
607
608
609
610
611
# File 'lib/v20181115/models.rb', line 606

def deserialize(params)
  @DrmType = params['DrmType']
  @Tracks = params['Tracks']
  @ContentId = params['ContentId']
  @ContentType = params['ContentType']
end