Class: AWSCDK::MediaTailor::CfnChannel::DashPlaylistSettingsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
media_tailor/cfn_channel.rb

Overview

Dash manifest configuration parameters.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(manifest_window_seconds: nil, min_buffer_time_seconds: nil, min_update_period_seconds: nil, suggested_presentation_delay_seconds: nil) ⇒ DashPlaylistSettingsProperty

Returns a new instance of DashPlaylistSettingsProperty.

Parameters:

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

    The total duration (in seconds) of each manifest.

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

    Minimum amount of content (measured in seconds) that a player must keep available in the buffer.

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

    Minimum amount of time (in seconds) that the player should wait before requesting updates to the manifest.

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

    Amount of time (in seconds) that the player should be from the live point at the end of the manifest.



655
656
657
658
659
660
661
662
663
664
# File 'media_tailor/cfn_channel.rb', line 655

def initialize(manifest_window_seconds: nil, min_buffer_time_seconds: nil, min_update_period_seconds: nil, suggested_presentation_delay_seconds: nil)
  @manifest_window_seconds = manifest_window_seconds
  Jsii::Type.check_type(@manifest_window_seconds, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "manifestWindowSeconds") unless @manifest_window_seconds.nil?
  @min_buffer_time_seconds = min_buffer_time_seconds
  Jsii::Type.check_type(@min_buffer_time_seconds, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "minBufferTimeSeconds") unless @min_buffer_time_seconds.nil?
  @min_update_period_seconds = min_update_period_seconds
  Jsii::Type.check_type(@min_update_period_seconds, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "minUpdatePeriodSeconds") unless @min_update_period_seconds.nil?
  @suggested_presentation_delay_seconds = suggested_presentation_delay_seconds
  Jsii::Type.check_type(@suggested_presentation_delay_seconds, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "suggestedPresentationDelaySeconds") unless @suggested_presentation_delay_seconds.nil?
end

Instance Attribute Details

#manifest_window_secondsNumeric? (readonly)

The total duration (in seconds) of each manifest.

Minimum value: 30 seconds. Maximum value: 3600 seconds.



672
673
674
# File 'media_tailor/cfn_channel.rb', line 672

def manifest_window_seconds
  @manifest_window_seconds
end

#min_buffer_time_secondsNumeric? (readonly)

Minimum amount of content (measured in seconds) that a player must keep available in the buffer.

Minimum value: 2 seconds. Maximum value: 60 seconds.



679
680
681
# File 'media_tailor/cfn_channel.rb', line 679

def min_buffer_time_seconds
  @min_buffer_time_seconds
end

#min_update_period_secondsNumeric? (readonly)

Minimum amount of time (in seconds) that the player should wait before requesting updates to the manifest.

Minimum value: 2 seconds. Maximum value: 60 seconds.



686
687
688
# File 'media_tailor/cfn_channel.rb', line 686

def min_update_period_seconds
  @min_update_period_seconds
end

#suggested_presentation_delay_secondsNumeric? (readonly)

Amount of time (in seconds) that the player should be from the live point at the end of the manifest.

Minimum value: 2 seconds. Maximum value: 60 seconds.



693
694
695
# File 'media_tailor/cfn_channel.rb', line 693

def suggested_presentation_delay_seconds
  @suggested_presentation_delay_seconds
end

Class Method Details

.jsii_propertiesObject



695
696
697
698
699
700
701
702
# File 'media_tailor/cfn_channel.rb', line 695

def self.jsii_properties
  {
    :manifest_window_seconds => "manifestWindowSeconds",
    :min_buffer_time_seconds => "minBufferTimeSeconds",
    :min_update_period_seconds => "minUpdatePeriodSeconds",
    :suggested_presentation_delay_seconds => "suggestedPresentationDelaySeconds",
  }
end

Instance Method Details

#to_jsiiObject



704
705
706
707
708
709
710
711
712
713
# File 'media_tailor/cfn_channel.rb', line 704

def to_jsii
  result = {}
  result.merge!({
    "manifestWindowSeconds" => @manifest_window_seconds,
    "minBufferTimeSeconds" => @min_buffer_time_seconds,
    "minUpdatePeriodSeconds" => @min_update_period_seconds,
    "suggestedPresentationDelaySeconds" => @suggested_presentation_delay_seconds,
  })
  result.compact
end