Class: AWSCDK::MediaPackagev2::CfnOriginEndpoint::StartTagProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::MediaPackagev2::CfnOriginEndpoint::StartTagProperty
- Defined in:
- media_packagev2/cfn_origin_endpoint.rb
Overview
To insert an EXT-X-START tag in your HLS playlist, specify a StartTag configuration object with a valid TimeOffset.
When you do, you can also optionally specify whether to include a PRECISE value in the EXT-X-START tag.
Instance Attribute Summary collapse
-
#precise ⇒ Boolean, ...
readonly
Specify the value for PRECISE within your EXT-X-START tag.
-
#time_offset ⇒ Numeric
readonly
Specify the value for TIME-OFFSET within your EXT-X-START tag.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(time_offset:, precise: nil) ⇒ StartTagProperty
constructor
A new instance of StartTagProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(time_offset:, precise: nil) ⇒ StartTagProperty
Returns a new instance of StartTagProperty.
2401 2402 2403 2404 2405 2406 |
# File 'media_packagev2/cfn_origin_endpoint.rb', line 2401 def initialize(time_offset:, precise: nil) @time_offset = time_offset Jsii::Type.check_type(@time_offset, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "timeOffset") @precise = precise Jsii::Type.check_type(@precise, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "precise") unless @precise.nil? end |
Instance Attribute Details
#precise ⇒ Boolean, ... (readonly)
Specify the value for PRECISE within your EXT-X-START tag.
Leave blank, or choose false, to use the default value NO. Choose yes to use the value YES.
2421 2422 2423 |
# File 'media_packagev2/cfn_origin_endpoint.rb', line 2421 def precise @precise end |
#time_offset ⇒ Numeric (readonly)
Specify the value for TIME-OFFSET within your EXT-X-START tag.
Enter a signed floating point value which, if positive, must be less than the configured manifest duration minus three times the configured segment target duration. If negative, the absolute value must be larger than three times the configured segment target duration, and the absolute value must be smaller than the configured manifest duration.
2414 2415 2416 |
# File 'media_packagev2/cfn_origin_endpoint.rb', line 2414 def time_offset @time_offset end |
Class Method Details
.jsii_properties ⇒ Object
2423 2424 2425 2426 2427 2428 |
# File 'media_packagev2/cfn_origin_endpoint.rb', line 2423 def self.jsii_properties { :time_offset => "timeOffset", :precise => "precise", } end |
Instance Method Details
#to_jsii ⇒ Object
2430 2431 2432 2433 2434 2435 2436 2437 |
# File 'media_packagev2/cfn_origin_endpoint.rb', line 2430 def to_jsii result = {} result.merge!({ "timeOffset" => @time_offset, "precise" => @precise, }) result.compact end |