Class: AWSCDK::MediaLive::CfnChannel::InputLossBehaviorProperty

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

Overview

The configuration of channel behavior when the input is lost.

The parent of this entity is GlobalConfiguration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(black_frame_msec: nil, input_loss_image_color: nil, input_loss_image_slate: nil, input_loss_image_type: nil, repeat_frame_msec: nil) ⇒ InputLossBehaviorProperty

Returns a new instance of InputLossBehaviorProperty.

Parameters:

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

    On input loss, the number of milliseconds to substitute black into the output before switching to the frame specified by inputLossImageType.

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

    When the input loss image type is "color," this field specifies the color to use.

  • input_loss_image_slate (AWSCDK::IResolvable, AWSCDK::MediaLive::CfnChannel::InputLocationProperty, nil) (defaults to: nil)

    When the input loss image type is "slate," these fields specify the parameters for accessing the slate.

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

    Indicates whether to substitute a solid color or a slate into the output after the input loss exceeds blackFrameMsec.

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

    On input loss, the number of milliseconds to repeat the previous picture before substituting black into the output.



8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
# File 'media_live/cfn_channel.rb', line 8743

def initialize(black_frame_msec: nil, input_loss_image_color: nil, input_loss_image_slate: nil, input_loss_image_type: nil, repeat_frame_msec: nil)
  @black_frame_msec = black_frame_msec
  Jsii::Type.check_type(@black_frame_msec, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "blackFrameMsec") unless @black_frame_msec.nil?
  @input_loss_image_color = input_loss_image_color
  Jsii::Type.check_type(@input_loss_image_color, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "inputLossImageColor") unless @input_loss_image_color.nil?
  @input_loss_image_slate = input_loss_image_slate.is_a?(Hash) ? ::AWSCDK::MediaLive::CfnChannel::InputLocationProperty.new(**input_loss_image_slate.transform_keys(&:to_sym)) : input_loss_image_slate
  Jsii::Type.check_type(@input_loss_image_slate, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYWxpdmUuQ2ZuQ2hhbm5lbC5JbnB1dExvY2F0aW9uUHJvcGVydHkifV19fQ==")), "inputLossImageSlate") unless @input_loss_image_slate.nil?
  @input_loss_image_type = input_loss_image_type
  Jsii::Type.check_type(@input_loss_image_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "inputLossImageType") unless @input_loss_image_type.nil?
  @repeat_frame_msec = repeat_frame_msec
  Jsii::Type.check_type(@repeat_frame_msec, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "repeatFrameMsec") unless @repeat_frame_msec.nil?
end

Instance Attribute Details

#black_frame_msecNumeric? (readonly)

On input loss, the number of milliseconds to substitute black into the output before switching to the frame specified by inputLossImageType.

A value x, where 0 <= x <= 1,000,000 and a value of 1,000,000, is interpreted as infinite.



8762
8763
8764
# File 'media_live/cfn_channel.rb', line 8762

def black_frame_msec
  @black_frame_msec
end

#input_loss_image_colorString? (readonly)

When the input loss image type is "color," this field specifies the color to use.

Value: 6 hex characters that represent the values of RGB.



8769
8770
8771
# File 'media_live/cfn_channel.rb', line 8769

def input_loss_image_color
  @input_loss_image_color
end

#input_loss_image_slateAWSCDK::IResolvable, ... (readonly)

When the input loss image type is "slate," these fields specify the parameters for accessing the slate.



8774
8775
8776
# File 'media_live/cfn_channel.rb', line 8774

def input_loss_image_slate
  @input_loss_image_slate
end

#input_loss_image_typeString? (readonly)

Indicates whether to substitute a solid color or a slate into the output after the input loss exceeds blackFrameMsec.



8779
8780
8781
# File 'media_live/cfn_channel.rb', line 8779

def input_loss_image_type
  @input_loss_image_type
end

#repeat_frame_msecNumeric? (readonly)

On input loss, the number of milliseconds to repeat the previous picture before substituting black into the output.

A value x, where 0 <= x <= 1,000,000 and a value of 1,000,000, is interpreted as infinite.



8786
8787
8788
# File 'media_live/cfn_channel.rb', line 8786

def repeat_frame_msec
  @repeat_frame_msec
end

Class Method Details

.jsii_propertiesObject



8788
8789
8790
8791
8792
8793
8794
8795
8796
# File 'media_live/cfn_channel.rb', line 8788

def self.jsii_properties
  {
    :black_frame_msec => "blackFrameMsec",
    :input_loss_image_color => "inputLossImageColor",
    :input_loss_image_slate => "inputLossImageSlate",
    :input_loss_image_type => "inputLossImageType",
    :repeat_frame_msec => "repeatFrameMsec",
  }
end

Instance Method Details

#to_jsiiObject



8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
# File 'media_live/cfn_channel.rb', line 8798

def to_jsii
  result = {}
  result.merge!({
    "blackFrameMsec" => @black_frame_msec,
    "inputLossImageColor" => @input_loss_image_color,
    "inputLossImageSlate" => @input_loss_image_slate,
    "inputLossImageType" => @input_loss_image_type,
    "repeatFrameMsec" => @repeat_frame_msec,
  })
  result.compact
end