Class: AWSCDK::MediaPackage::CfnOriginEndpoint::StreamSelectionProperty

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

Overview

Limitations for outputs from the endpoint, based on the video bitrate.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(max_video_bits_per_second: nil, min_video_bits_per_second: nil, stream_order: nil) ⇒ StreamSelectionProperty

Returns a new instance of StreamSelectionProperty.

Parameters:

  • max_video_bits_per_second (Numeric, nil) (defaults to: nil)

    The upper limit of the bitrates that this endpoint serves.

  • min_video_bits_per_second (Numeric, nil) (defaults to: nil)

    The lower limit of the bitrates that this endpoint serves.

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

    Order in which the different video bitrates are presented to the player.



1827
1828
1829
1830
1831
1832
1833
1834
# File 'media_package/cfn_origin_endpoint.rb', line 1827

def initialize(max_video_bits_per_second: nil, min_video_bits_per_second: nil, stream_order: nil)
  @max_video_bits_per_second = max_video_bits_per_second
  Jsii::Type.check_type(@max_video_bits_per_second, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maxVideoBitsPerSecond") unless @max_video_bits_per_second.nil?
  @min_video_bits_per_second = min_video_bits_per_second
  Jsii::Type.check_type(@min_video_bits_per_second, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "minVideoBitsPerSecond") unless @min_video_bits_per_second.nil?
  @stream_order = stream_order
  Jsii::Type.check_type(@stream_order, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "streamOrder") unless @stream_order.nil?
end

Instance Attribute Details

#max_video_bits_per_secondNumeric? (readonly)

The upper limit of the bitrates that this endpoint serves.

If the video track exceeds this threshold, then AWS Elemental MediaPackage excludes it from output. If you don't specify a value, it defaults to 2147483647 bits per second.



1842
1843
1844
# File 'media_package/cfn_origin_endpoint.rb', line 1842

def max_video_bits_per_second
  @max_video_bits_per_second
end

#min_video_bits_per_secondNumeric? (readonly)

The lower limit of the bitrates that this endpoint serves.

If the video track is below this threshold, then AWS Elemental MediaPackage excludes it from output. If you don't specify a value, it defaults to 0 bits per second.



1849
1850
1851
# File 'media_package/cfn_origin_endpoint.rb', line 1849

def min_video_bits_per_second
  @min_video_bits_per_second
end

#stream_orderString? (readonly)

Order in which the different video bitrates are presented to the player.

Valid values: ORIGINAL , VIDEO_BITRATE_ASCENDING , VIDEO_BITRATE_DESCENDING .



1856
1857
1858
# File 'media_package/cfn_origin_endpoint.rb', line 1856

def stream_order
  @stream_order
end

Class Method Details

.jsii_propertiesObject



1858
1859
1860
1861
1862
1863
1864
# File 'media_package/cfn_origin_endpoint.rb', line 1858

def self.jsii_properties
  {
    :max_video_bits_per_second => "maxVideoBitsPerSecond",
    :min_video_bits_per_second => "minVideoBitsPerSecond",
    :stream_order => "streamOrder",
  }
end

Instance Method Details

#to_jsiiObject



1866
1867
1868
1869
1870
1871
1872
1873
1874
# File 'media_package/cfn_origin_endpoint.rb', line 1866

def to_jsii
  result = {}
  result.merge!({
    "maxVideoBitsPerSecond" => @max_video_bits_per_second,
    "minVideoBitsPerSecond" => @min_video_bits_per_second,
    "streamOrder" => @stream_order,
  })
  result.compact
end