Class: AWSCDK::MediaPackage::CfnPackagingConfiguration::StreamSelectionProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
media_package/cfn_packaging_configuration.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.



1435
1436
1437
1438
1439
1440
1441
1442
# File 'media_package/cfn_packaging_configuration.rb', line 1435

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.



1450
1451
1452
# File 'media_package/cfn_packaging_configuration.rb', line 1450

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.



1457
1458
1459
# File 'media_package/cfn_packaging_configuration.rb', line 1457

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 .



1464
1465
1466
# File 'media_package/cfn_packaging_configuration.rb', line 1464

def stream_order
  @stream_order
end

Class Method Details

.jsii_propertiesObject



1466
1467
1468
1469
1470
1471
1472
# File 'media_package/cfn_packaging_configuration.rb', line 1466

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



1474
1475
1476
1477
1478
1479
1480
1481
1482
# File 'media_package/cfn_packaging_configuration.rb', line 1474

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