Class: AWSCDK::MediaTailor::CfnPlaybackConfiguration::DashConfigurationProperty

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

Overview

The configuration for DASH content.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(manifest_endpoint_prefix: nil, mpd_location: nil, origin_manifest_type: nil) ⇒ DashConfigurationProperty

Returns a new instance of DashConfigurationProperty.

Parameters:

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

    The URL generated by MediaTailor to initiate a playback session.

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

    The setting that controls whether MediaTailor includes the Location tag in DASH manifests.

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

    The setting that controls whether MediaTailor handles manifests from the origin server as multi-period manifests or single-period manifests.



1115
1116
1117
1118
1119
1120
1121
1122
# File 'media_tailor/cfn_playback_configuration.rb', line 1115

def initialize(manifest_endpoint_prefix: nil, mpd_location: nil, origin_manifest_type: nil)
  @manifest_endpoint_prefix = manifest_endpoint_prefix
  Jsii::Type.check_type(@manifest_endpoint_prefix, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "manifestEndpointPrefix") unless @manifest_endpoint_prefix.nil?
  @mpd_location = mpd_location
  Jsii::Type.check_type(@mpd_location, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "mpdLocation") unless @mpd_location.nil?
  @origin_manifest_type = origin_manifest_type
  Jsii::Type.check_type(@origin_manifest_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "originManifestType") unless @origin_manifest_type.nil?
end

Instance Attribute Details

#manifest_endpoint_prefixString? (readonly)

The URL generated by MediaTailor to initiate a playback session.

The session uses server-side reporting. This setting is ignored in PUT operations.



1130
1131
1132
# File 'media_tailor/cfn_playback_configuration.rb', line 1130

def manifest_endpoint_prefix
  @manifest_endpoint_prefix
end

#mpd_locationString? (readonly)

The setting that controls whether MediaTailor includes the Location tag in DASH manifests.

MediaTailor populates the Location tag with the URL for manifest update requests, to be used by players that don't support sticky redirects. Disable this if you have CDN routing rules set up for accessing MediaTailor manifests, and you are either using client-side reporting or your players support sticky HTTP redirects. Valid values are DISABLED and EMT_DEFAULT . The EMT_DEFAULT setting enables the inclusion of the tag and is the default value.



1137
1138
1139
# File 'media_tailor/cfn_playback_configuration.rb', line 1137

def mpd_location
  @mpd_location
end

#origin_manifest_typeString? (readonly)

The setting that controls whether MediaTailor handles manifests from the origin server as multi-period manifests or single-period manifests.

If your origin server produces single-period manifests, set this to SINGLE_PERIOD . The default setting is MULTI_PERIOD . For multi-period manifests, omit this setting or set it to MULTI_PERIOD .



1144
1145
1146
# File 'media_tailor/cfn_playback_configuration.rb', line 1144

def origin_manifest_type
  @origin_manifest_type
end

Class Method Details

.jsii_propertiesObject



1146
1147
1148
1149
1150
1151
1152
# File 'media_tailor/cfn_playback_configuration.rb', line 1146

def self.jsii_properties
  {
    :manifest_endpoint_prefix => "manifestEndpointPrefix",
    :mpd_location => "mpdLocation",
    :origin_manifest_type => "originManifestType",
  }
end

Instance Method Details

#to_jsiiObject



1154
1155
1156
1157
1158
1159
1160
1161
1162
# File 'media_tailor/cfn_playback_configuration.rb', line 1154

def to_jsii
  result = {}
  result.merge!({
    "manifestEndpointPrefix" => @manifest_endpoint_prefix,
    "mpdLocation" => @mpd_location,
    "originManifestType" => @origin_manifest_type,
  })
  result.compact
end