-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AWS Elemental MediaLive now supports configuring how SCTE 35 passthro…
…ugh triggers segment breaks in HLS and MediaPackage output groups. Previously, messages triggered breaks in all these output groups. The new option is to trigger segment breaks only in groups that have SCTE 35 passthrough enabled.
- Loading branch information
1 parent
a768356
commit 469d895
Showing
7 changed files
with
238 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.11.321 | ||
1.11.322 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
generated/src/aws-cpp-sdk-medialive/include/aws/medialive/model/Scte35SegmentationScope.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/** | ||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* SPDX-License-Identifier: Apache-2.0. | ||
*/ | ||
|
||
#pragma once | ||
#include <aws/medialive/MediaLive_EXPORTS.h> | ||
#include <aws/core/utils/memory/stl/AWSString.h> | ||
|
||
namespace Aws | ||
{ | ||
namespace MediaLive | ||
{ | ||
namespace Model | ||
{ | ||
enum class Scte35SegmentationScope | ||
{ | ||
NOT_SET, | ||
ALL_OUTPUT_GROUPS, | ||
SCTE35_ENABLED_OUTPUT_GROUPS | ||
}; | ||
|
||
namespace Scte35SegmentationScopeMapper | ||
{ | ||
AWS_MEDIALIVE_API Scte35SegmentationScope GetScte35SegmentationScopeForName(const Aws::String& name); | ||
|
||
AWS_MEDIALIVE_API Aws::String GetNameForScte35SegmentationScope(Scte35SegmentationScope value); | ||
} // namespace Scte35SegmentationScopeMapper | ||
} // namespace Model | ||
} // namespace MediaLive | ||
} // namespace Aws |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 72 additions & 0 deletions
72
generated/src/aws-cpp-sdk-medialive/source/model/Scte35SegmentationScope.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
/** | ||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* SPDX-License-Identifier: Apache-2.0. | ||
*/ | ||
|
||
#include <aws/medialive/model/Scte35SegmentationScope.h> | ||
#include <aws/core/utils/HashingUtils.h> | ||
#include <aws/core/Globals.h> | ||
#include <aws/core/utils/EnumParseOverflowContainer.h> | ||
|
||
using namespace Aws::Utils; | ||
|
||
|
||
namespace Aws | ||
{ | ||
namespace MediaLive | ||
{ | ||
namespace Model | ||
{ | ||
namespace Scte35SegmentationScopeMapper | ||
{ | ||
|
||
static const int ALL_OUTPUT_GROUPS_HASH = HashingUtils::HashString("ALL_OUTPUT_GROUPS"); | ||
static const int SCTE35_ENABLED_OUTPUT_GROUPS_HASH = HashingUtils::HashString("SCTE35_ENABLED_OUTPUT_GROUPS"); | ||
|
||
|
||
Scte35SegmentationScope GetScte35SegmentationScopeForName(const Aws::String& name) | ||
{ | ||
int hashCode = HashingUtils::HashString(name.c_str()); | ||
if (hashCode == ALL_OUTPUT_GROUPS_HASH) | ||
{ | ||
return Scte35SegmentationScope::ALL_OUTPUT_GROUPS; | ||
} | ||
else if (hashCode == SCTE35_ENABLED_OUTPUT_GROUPS_HASH) | ||
{ | ||
return Scte35SegmentationScope::SCTE35_ENABLED_OUTPUT_GROUPS; | ||
} | ||
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); | ||
if(overflowContainer) | ||
{ | ||
overflowContainer->StoreOverflow(hashCode, name); | ||
return static_cast<Scte35SegmentationScope>(hashCode); | ||
} | ||
|
||
return Scte35SegmentationScope::NOT_SET; | ||
} | ||
|
||
Aws::String GetNameForScte35SegmentationScope(Scte35SegmentationScope enumValue) | ||
{ | ||
switch(enumValue) | ||
{ | ||
case Scte35SegmentationScope::NOT_SET: | ||
return {}; | ||
case Scte35SegmentationScope::ALL_OUTPUT_GROUPS: | ||
return "ALL_OUTPUT_GROUPS"; | ||
case Scte35SegmentationScope::SCTE35_ENABLED_OUTPUT_GROUPS: | ||
return "SCTE35_ENABLED_OUTPUT_GROUPS"; | ||
default: | ||
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); | ||
if(overflowContainer) | ||
{ | ||
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue)); | ||
} | ||
|
||
return {}; | ||
} | ||
} | ||
|
||
} // namespace Scte35SegmentationScopeMapper | ||
} // namespace Model | ||
} // namespace MediaLive | ||
} // namespace Aws |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters