531 lines
18 KiB
C++
531 lines
18 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/mediapackage/MediaPackage_EXPORTS.h>
|
|
#include <aws/mediapackage/model/AdMarkers.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/mediapackage/model/PlaylistType.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace MediaPackage
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* A HTTP Live Streaming (HLS) manifest configuration.<p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/mediapackage-2017-10-12/HlsManifest">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_MEDIAPACKAGE_API HlsManifest
|
|
{
|
|
public:
|
|
HlsManifest();
|
|
HlsManifest(Aws::Utils::Json::JsonView jsonValue);
|
|
HlsManifest& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* This setting controls how ad markers are included in the packaged
|
|
* OriginEndpoint.
|
|
"NONE" will omit all SCTE-35 ad markers from the
|
|
* output.
|
|
"PASSTHROUGH" causes the manifest to contain a copy of the SCTE-35
|
|
* ad
|
|
markers (comments) taken directly from the input HTTP Live Streaming (HLS)
|
|
* manifest.
|
|
"SCTE35_ENHANCED" generates ad markers and blackout tags based on
|
|
* SCTE-35
|
|
messages in the input source.
|
|
"DATERANGE" inserts EXT-X-DATERANGE tags
|
|
* to signal ad and program transition events
|
|
in HLS and CMAF manifests. For this
|
|
* option, you must set a programDateTimeIntervalSeconds value
|
|
that is greater
|
|
* than 0.
|
|
|
|
*/
|
|
inline const AdMarkers& GetAdMarkers() const{ return m_adMarkers; }
|
|
|
|
/**
|
|
* This setting controls how ad markers are included in the packaged
|
|
* OriginEndpoint.
|
|
"NONE" will omit all SCTE-35 ad markers from the
|
|
* output.
|
|
"PASSTHROUGH" causes the manifest to contain a copy of the SCTE-35
|
|
* ad
|
|
markers (comments) taken directly from the input HTTP Live Streaming (HLS)
|
|
* manifest.
|
|
"SCTE35_ENHANCED" generates ad markers and blackout tags based on
|
|
* SCTE-35
|
|
messages in the input source.
|
|
"DATERANGE" inserts EXT-X-DATERANGE tags
|
|
* to signal ad and program transition events
|
|
in HLS and CMAF manifests. For this
|
|
* option, you must set a programDateTimeIntervalSeconds value
|
|
that is greater
|
|
* than 0.
|
|
|
|
*/
|
|
inline bool AdMarkersHasBeenSet() const { return m_adMarkersHasBeenSet; }
|
|
|
|
/**
|
|
* This setting controls how ad markers are included in the packaged
|
|
* OriginEndpoint.
|
|
"NONE" will omit all SCTE-35 ad markers from the
|
|
* output.
|
|
"PASSTHROUGH" causes the manifest to contain a copy of the SCTE-35
|
|
* ad
|
|
markers (comments) taken directly from the input HTTP Live Streaming (HLS)
|
|
* manifest.
|
|
"SCTE35_ENHANCED" generates ad markers and blackout tags based on
|
|
* SCTE-35
|
|
messages in the input source.
|
|
"DATERANGE" inserts EXT-X-DATERANGE tags
|
|
* to signal ad and program transition events
|
|
in HLS and CMAF manifests. For this
|
|
* option, you must set a programDateTimeIntervalSeconds value
|
|
that is greater
|
|
* than 0.
|
|
|
|
*/
|
|
inline void SetAdMarkers(const AdMarkers& value) { m_adMarkersHasBeenSet = true; m_adMarkers = value; }
|
|
|
|
/**
|
|
* This setting controls how ad markers are included in the packaged
|
|
* OriginEndpoint.
|
|
"NONE" will omit all SCTE-35 ad markers from the
|
|
* output.
|
|
"PASSTHROUGH" causes the manifest to contain a copy of the SCTE-35
|
|
* ad
|
|
markers (comments) taken directly from the input HTTP Live Streaming (HLS)
|
|
* manifest.
|
|
"SCTE35_ENHANCED" generates ad markers and blackout tags based on
|
|
* SCTE-35
|
|
messages in the input source.
|
|
"DATERANGE" inserts EXT-X-DATERANGE tags
|
|
* to signal ad and program transition events
|
|
in HLS and CMAF manifests. For this
|
|
* option, you must set a programDateTimeIntervalSeconds value
|
|
that is greater
|
|
* than 0.
|
|
|
|
*/
|
|
inline void SetAdMarkers(AdMarkers&& value) { m_adMarkersHasBeenSet = true; m_adMarkers = std::move(value); }
|
|
|
|
/**
|
|
* This setting controls how ad markers are included in the packaged
|
|
* OriginEndpoint.
|
|
"NONE" will omit all SCTE-35 ad markers from the
|
|
* output.
|
|
"PASSTHROUGH" causes the manifest to contain a copy of the SCTE-35
|
|
* ad
|
|
markers (comments) taken directly from the input HTTP Live Streaming (HLS)
|
|
* manifest.
|
|
"SCTE35_ENHANCED" generates ad markers and blackout tags based on
|
|
* SCTE-35
|
|
messages in the input source.
|
|
"DATERANGE" inserts EXT-X-DATERANGE tags
|
|
* to signal ad and program transition events
|
|
in HLS and CMAF manifests. For this
|
|
* option, you must set a programDateTimeIntervalSeconds value
|
|
that is greater
|
|
* than 0.
|
|
|
|
*/
|
|
inline HlsManifest& WithAdMarkers(const AdMarkers& value) { SetAdMarkers(value); return *this;}
|
|
|
|
/**
|
|
* This setting controls how ad markers are included in the packaged
|
|
* OriginEndpoint.
|
|
"NONE" will omit all SCTE-35 ad markers from the
|
|
* output.
|
|
"PASSTHROUGH" causes the manifest to contain a copy of the SCTE-35
|
|
* ad
|
|
markers (comments) taken directly from the input HTTP Live Streaming (HLS)
|
|
* manifest.
|
|
"SCTE35_ENHANCED" generates ad markers and blackout tags based on
|
|
* SCTE-35
|
|
messages in the input source.
|
|
"DATERANGE" inserts EXT-X-DATERANGE tags
|
|
* to signal ad and program transition events
|
|
in HLS and CMAF manifests. For this
|
|
* option, you must set a programDateTimeIntervalSeconds value
|
|
that is greater
|
|
* than 0.
|
|
|
|
*/
|
|
inline HlsManifest& WithAdMarkers(AdMarkers&& value) { SetAdMarkers(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* The ID of the manifest. The ID must be unique within the OriginEndpoint and it
|
|
* cannot be changed after it is created.
|
|
*/
|
|
inline const Aws::String& GetId() const{ return m_id; }
|
|
|
|
/**
|
|
* The ID of the manifest. The ID must be unique within the OriginEndpoint and it
|
|
* cannot be changed after it is created.
|
|
*/
|
|
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
|
|
|
|
/**
|
|
* The ID of the manifest. The ID must be unique within the OriginEndpoint and it
|
|
* cannot be changed after it is created.
|
|
*/
|
|
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
|
|
|
|
/**
|
|
* The ID of the manifest. The ID must be unique within the OriginEndpoint and it
|
|
* cannot be changed after it is created.
|
|
*/
|
|
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
|
|
|
|
/**
|
|
* The ID of the manifest. The ID must be unique within the OriginEndpoint and it
|
|
* cannot be changed after it is created.
|
|
*/
|
|
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
|
|
|
|
/**
|
|
* The ID of the manifest. The ID must be unique within the OriginEndpoint and it
|
|
* cannot be changed after it is created.
|
|
*/
|
|
inline HlsManifest& WithId(const Aws::String& value) { SetId(value); return *this;}
|
|
|
|
/**
|
|
* The ID of the manifest. The ID must be unique within the OriginEndpoint and it
|
|
* cannot be changed after it is created.
|
|
*/
|
|
inline HlsManifest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* The ID of the manifest. The ID must be unique within the OriginEndpoint and it
|
|
* cannot be changed after it is created.
|
|
*/
|
|
inline HlsManifest& WithId(const char* value) { SetId(value); return *this;}
|
|
|
|
|
|
/**
|
|
* When enabled, an I-Frame only stream will be included in the output.
|
|
*/
|
|
inline bool GetIncludeIframeOnlyStream() const{ return m_includeIframeOnlyStream; }
|
|
|
|
/**
|
|
* When enabled, an I-Frame only stream will be included in the output.
|
|
*/
|
|
inline bool IncludeIframeOnlyStreamHasBeenSet() const { return m_includeIframeOnlyStreamHasBeenSet; }
|
|
|
|
/**
|
|
* When enabled, an I-Frame only stream will be included in the output.
|
|
*/
|
|
inline void SetIncludeIframeOnlyStream(bool value) { m_includeIframeOnlyStreamHasBeenSet = true; m_includeIframeOnlyStream = value; }
|
|
|
|
/**
|
|
* When enabled, an I-Frame only stream will be included in the output.
|
|
*/
|
|
inline HlsManifest& WithIncludeIframeOnlyStream(bool value) { SetIncludeIframeOnlyStream(value); return *this;}
|
|
|
|
|
|
/**
|
|
* An optional short string appended to the end of the OriginEndpoint URL. If not
|
|
* specified, defaults to the manifestName for the OriginEndpoint.
|
|
*/
|
|
inline const Aws::String& GetManifestName() const{ return m_manifestName; }
|
|
|
|
/**
|
|
* An optional short string appended to the end of the OriginEndpoint URL. If not
|
|
* specified, defaults to the manifestName for the OriginEndpoint.
|
|
*/
|
|
inline bool ManifestNameHasBeenSet() const { return m_manifestNameHasBeenSet; }
|
|
|
|
/**
|
|
* An optional short string appended to the end of the OriginEndpoint URL. If not
|
|
* specified, defaults to the manifestName for the OriginEndpoint.
|
|
*/
|
|
inline void SetManifestName(const Aws::String& value) { m_manifestNameHasBeenSet = true; m_manifestName = value; }
|
|
|
|
/**
|
|
* An optional short string appended to the end of the OriginEndpoint URL. If not
|
|
* specified, defaults to the manifestName for the OriginEndpoint.
|
|
*/
|
|
inline void SetManifestName(Aws::String&& value) { m_manifestNameHasBeenSet = true; m_manifestName = std::move(value); }
|
|
|
|
/**
|
|
* An optional short string appended to the end of the OriginEndpoint URL. If not
|
|
* specified, defaults to the manifestName for the OriginEndpoint.
|
|
*/
|
|
inline void SetManifestName(const char* value) { m_manifestNameHasBeenSet = true; m_manifestName.assign(value); }
|
|
|
|
/**
|
|
* An optional short string appended to the end of the OriginEndpoint URL. If not
|
|
* specified, defaults to the manifestName for the OriginEndpoint.
|
|
*/
|
|
inline HlsManifest& WithManifestName(const Aws::String& value) { SetManifestName(value); return *this;}
|
|
|
|
/**
|
|
* An optional short string appended to the end of the OriginEndpoint URL. If not
|
|
* specified, defaults to the manifestName for the OriginEndpoint.
|
|
*/
|
|
inline HlsManifest& WithManifestName(Aws::String&& value) { SetManifestName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* An optional short string appended to the end of the OriginEndpoint URL. If not
|
|
* specified, defaults to the manifestName for the OriginEndpoint.
|
|
*/
|
|
inline HlsManifest& WithManifestName(const char* value) { SetManifestName(value); return *this;}
|
|
|
|
|
|
/**
|
|
* The HTTP Live Streaming (HLS) playlist type.
|
|
When either "EVENT" or "VOD" is
|
|
* specified, a corresponding EXT-X-PLAYLIST-TYPE
|
|
entry will be included in the
|
|
* media playlist.
|
|
|
|
*/
|
|
inline const PlaylistType& GetPlaylistType() const{ return m_playlistType; }
|
|
|
|
/**
|
|
* The HTTP Live Streaming (HLS) playlist type.
|
|
When either "EVENT" or "VOD" is
|
|
* specified, a corresponding EXT-X-PLAYLIST-TYPE
|
|
entry will be included in the
|
|
* media playlist.
|
|
|
|
*/
|
|
inline bool PlaylistTypeHasBeenSet() const { return m_playlistTypeHasBeenSet; }
|
|
|
|
/**
|
|
* The HTTP Live Streaming (HLS) playlist type.
|
|
When either "EVENT" or "VOD" is
|
|
* specified, a corresponding EXT-X-PLAYLIST-TYPE
|
|
entry will be included in the
|
|
* media playlist.
|
|
|
|
*/
|
|
inline void SetPlaylistType(const PlaylistType& value) { m_playlistTypeHasBeenSet = true; m_playlistType = value; }
|
|
|
|
/**
|
|
* The HTTP Live Streaming (HLS) playlist type.
|
|
When either "EVENT" or "VOD" is
|
|
* specified, a corresponding EXT-X-PLAYLIST-TYPE
|
|
entry will be included in the
|
|
* media playlist.
|
|
|
|
*/
|
|
inline void SetPlaylistType(PlaylistType&& value) { m_playlistTypeHasBeenSet = true; m_playlistType = std::move(value); }
|
|
|
|
/**
|
|
* The HTTP Live Streaming (HLS) playlist type.
|
|
When either "EVENT" or "VOD" is
|
|
* specified, a corresponding EXT-X-PLAYLIST-TYPE
|
|
entry will be included in the
|
|
* media playlist.
|
|
|
|
*/
|
|
inline HlsManifest& WithPlaylistType(const PlaylistType& value) { SetPlaylistType(value); return *this;}
|
|
|
|
/**
|
|
* The HTTP Live Streaming (HLS) playlist type.
|
|
When either "EVENT" or "VOD" is
|
|
* specified, a corresponding EXT-X-PLAYLIST-TYPE
|
|
entry will be included in the
|
|
* media playlist.
|
|
|
|
*/
|
|
inline HlsManifest& WithPlaylistType(PlaylistType&& value) { SetPlaylistType(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* Time window (in seconds) contained in each parent manifest.
|
|
*/
|
|
inline int GetPlaylistWindowSeconds() const{ return m_playlistWindowSeconds; }
|
|
|
|
/**
|
|
* Time window (in seconds) contained in each parent manifest.
|
|
*/
|
|
inline bool PlaylistWindowSecondsHasBeenSet() const { return m_playlistWindowSecondsHasBeenSet; }
|
|
|
|
/**
|
|
* Time window (in seconds) contained in each parent manifest.
|
|
*/
|
|
inline void SetPlaylistWindowSeconds(int value) { m_playlistWindowSecondsHasBeenSet = true; m_playlistWindowSeconds = value; }
|
|
|
|
/**
|
|
* Time window (in seconds) contained in each parent manifest.
|
|
*/
|
|
inline HlsManifest& WithPlaylistWindowSeconds(int value) { SetPlaylistWindowSeconds(value); return *this;}
|
|
|
|
|
|
/**
|
|
* The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag
|
|
inserted into
|
|
* manifests. Additionally, when an interval is specified
|
|
ID3Timed Metadata
|
|
* messages will be generated every 5 seconds using the
|
|
ingest time of the
|
|
* content.
|
|
If the interval is not specified, or set to 0, then
|
|
no
|
|
* EXT-X-PROGRAM-DATE-TIME tags will be inserted into manifests and no
|
|
ID3Timed
|
|
* Metadata messages will be generated. Note that irrespective
|
|
of this parameter,
|
|
* if any ID3 Timed Metadata is found in HTTP Live Streaming (HLS) input,
|
|
it will
|
|
* be passed through to HLS output.
|
|
|
|
*/
|
|
inline int GetProgramDateTimeIntervalSeconds() const{ return m_programDateTimeIntervalSeconds; }
|
|
|
|
/**
|
|
* The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag
|
|
inserted into
|
|
* manifests. Additionally, when an interval is specified
|
|
ID3Timed Metadata
|
|
* messages will be generated every 5 seconds using the
|
|
ingest time of the
|
|
* content.
|
|
If the interval is not specified, or set to 0, then
|
|
no
|
|
* EXT-X-PROGRAM-DATE-TIME tags will be inserted into manifests and no
|
|
ID3Timed
|
|
* Metadata messages will be generated. Note that irrespective
|
|
of this parameter,
|
|
* if any ID3 Timed Metadata is found in HTTP Live Streaming (HLS) input,
|
|
it will
|
|
* be passed through to HLS output.
|
|
|
|
*/
|
|
inline bool ProgramDateTimeIntervalSecondsHasBeenSet() const { return m_programDateTimeIntervalSecondsHasBeenSet; }
|
|
|
|
/**
|
|
* The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag
|
|
inserted into
|
|
* manifests. Additionally, when an interval is specified
|
|
ID3Timed Metadata
|
|
* messages will be generated every 5 seconds using the
|
|
ingest time of the
|
|
* content.
|
|
If the interval is not specified, or set to 0, then
|
|
no
|
|
* EXT-X-PROGRAM-DATE-TIME tags will be inserted into manifests and no
|
|
ID3Timed
|
|
* Metadata messages will be generated. Note that irrespective
|
|
of this parameter,
|
|
* if any ID3 Timed Metadata is found in HTTP Live Streaming (HLS) input,
|
|
it will
|
|
* be passed through to HLS output.
|
|
|
|
*/
|
|
inline void SetProgramDateTimeIntervalSeconds(int value) { m_programDateTimeIntervalSecondsHasBeenSet = true; m_programDateTimeIntervalSeconds = value; }
|
|
|
|
/**
|
|
* The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag
|
|
inserted into
|
|
* manifests. Additionally, when an interval is specified
|
|
ID3Timed Metadata
|
|
* messages will be generated every 5 seconds using the
|
|
ingest time of the
|
|
* content.
|
|
If the interval is not specified, or set to 0, then
|
|
no
|
|
* EXT-X-PROGRAM-DATE-TIME tags will be inserted into manifests and no
|
|
ID3Timed
|
|
* Metadata messages will be generated. Note that irrespective
|
|
of this parameter,
|
|
* if any ID3 Timed Metadata is found in HTTP Live Streaming (HLS) input,
|
|
it will
|
|
* be passed through to HLS output.
|
|
|
|
*/
|
|
inline HlsManifest& WithProgramDateTimeIntervalSeconds(int value) { SetProgramDateTimeIntervalSeconds(value); return *this;}
|
|
|
|
|
|
/**
|
|
* The URL of the packaged OriginEndpoint for consumption.
|
|
*/
|
|
inline const Aws::String& GetUrl() const{ return m_url; }
|
|
|
|
/**
|
|
* The URL of the packaged OriginEndpoint for consumption.
|
|
*/
|
|
inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
|
|
|
|
/**
|
|
* The URL of the packaged OriginEndpoint for consumption.
|
|
*/
|
|
inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; }
|
|
|
|
/**
|
|
* The URL of the packaged OriginEndpoint for consumption.
|
|
*/
|
|
inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); }
|
|
|
|
/**
|
|
* The URL of the packaged OriginEndpoint for consumption.
|
|
*/
|
|
inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); }
|
|
|
|
/**
|
|
* The URL of the packaged OriginEndpoint for consumption.
|
|
*/
|
|
inline HlsManifest& WithUrl(const Aws::String& value) { SetUrl(value); return *this;}
|
|
|
|
/**
|
|
* The URL of the packaged OriginEndpoint for consumption.
|
|
*/
|
|
inline HlsManifest& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* The URL of the packaged OriginEndpoint for consumption.
|
|
*/
|
|
inline HlsManifest& WithUrl(const char* value) { SetUrl(value); return *this;}
|
|
|
|
private:
|
|
|
|
AdMarkers m_adMarkers;
|
|
bool m_adMarkersHasBeenSet;
|
|
|
|
Aws::String m_id;
|
|
bool m_idHasBeenSet;
|
|
|
|
bool m_includeIframeOnlyStream;
|
|
bool m_includeIframeOnlyStreamHasBeenSet;
|
|
|
|
Aws::String m_manifestName;
|
|
bool m_manifestNameHasBeenSet;
|
|
|
|
PlaylistType m_playlistType;
|
|
bool m_playlistTypeHasBeenSet;
|
|
|
|
int m_playlistWindowSeconds;
|
|
bool m_playlistWindowSecondsHasBeenSet;
|
|
|
|
int m_programDateTimeIntervalSeconds;
|
|
bool m_programDateTimeIntervalSecondsHasBeenSet;
|
|
|
|
Aws::String m_url;
|
|
bool m_urlHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace MediaPackage
|
|
} // namespace Aws
|