Class: AWSCDK::MediaPackagev2::CfnOriginEndpoint::DashDvbFontDownloadProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
media_packagev2/cfn_origin_endpoint.rb

Overview

For use with DVB-DASH profiles only.

The settings for font downloads that you want AWS Elemental MediaPackage to pass through to the manifest.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(font_family: nil, mime_type: nil, url: nil) ⇒ DashDvbFontDownloadProperty

Returns a new instance of DashDvbFontDownloadProperty.

Parameters:

  • font_family (String, nil) (defaults to: nil)

    The fontFamily name for subtitles, as described in EBU-TT-D Subtitling Distribution Format .

  • mime_type (String, nil) (defaults to: nil)

    The mimeType of the resource that's at the font download URL.

  • url (String, nil) (defaults to: nil)

    The URL for downloading fonts for subtitles.



834
835
836
837
838
839
840
841
# File 'media_packagev2/cfn_origin_endpoint.rb', line 834

def initialize(font_family: nil, mime_type: nil, url: nil)
  @font_family = font_family
  Jsii::Type.check_type(@font_family, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "fontFamily") unless @font_family.nil?
  @mime_type = mime_type
  Jsii::Type.check_type(@mime_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "mimeType") unless @mime_type.nil?
  @url = url
  Jsii::Type.check_type(@url, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "url") unless @url.nil?
end

Instance Attribute Details

#font_familyString? (readonly)

The fontFamily name for subtitles, as described in EBU-TT-D Subtitling Distribution Format .



847
848
849
# File 'media_packagev2/cfn_origin_endpoint.rb', line 847

def font_family
  @font_family
end

#mime_typeString? (readonly)

The mimeType of the resource that's at the font download URL.

For information about font MIME types, see the MPEG-DASH Profile for Transport of ISO BMFF Based DVB Services over IP Based Networks document.



854
855
856
# File 'media_packagev2/cfn_origin_endpoint.rb', line 854

def mime_type
  @mime_type
end

#urlString? (readonly)

The URL for downloading fonts for subtitles.



859
860
861
# File 'media_packagev2/cfn_origin_endpoint.rb', line 859

def url
  @url
end

Class Method Details

.jsii_propertiesObject



861
862
863
864
865
866
867
# File 'media_packagev2/cfn_origin_endpoint.rb', line 861

def self.jsii_properties
  {
    :font_family => "fontFamily",
    :mime_type => "mimeType",
    :url => "url",
  }
end

Instance Method Details

#to_jsiiObject



869
870
871
872
873
874
875
876
877
# File 'media_packagev2/cfn_origin_endpoint.rb', line 869

def to_jsii
  result = {}
  result.merge!({
    "fontFamily" => @font_family,
    "mimeType" => @mime_type,
    "url" => @url,
  })
  result.compact
end