Skip to content
v2.278.0

Experimental

@aws-cdk/aws-mediapackagev2-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

StartTag Class ​

Helper class for creating EXT-X-START tags in HLS playlists.

The EXT-X-START tag indicates a preferred point at which to start playing a playlist. Configuration for EXT-X-START tag in HLS playlists.

Use the StartTag helper class to create instances with validation.

Example ​

ts
declare const channel: Channel;

new OriginEndpoint(this, 'Endpoint', {
  channel,
  segment: Segment.cmaf(),
  manifests: [
    Manifest.hls({
      manifestName: 'index',
      startTag: StartTag.of(10),
    }),
  ],
});
python
# channel: Channel


OriginEndpoint(self, "Endpoint",
    channel=channel,
    segment=Segment.cmaf(),
    manifests=[
        Manifest.hls(
            manifest_name="index",
            start_tag=StartTag.of(10)
        )
    ]
)
java
Channel channel;


OriginEndpoint.Builder.create(this, "Endpoint")
        .channel(channel)
        .segment(Segment.cmaf())
        .manifests(List.of(Manifest.hls(HlsManifestConfiguration.builder()
                .manifestName("index")
                .startTag(StartTag.of(10))
                .build())))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.MediaPackageV2.Alpha
Channel channel;


new OriginEndpoint(this, "Endpoint", new OriginEndpointProps {
    Channel = channel,
    Segment = Segment.Cmaf(),
    Manifests = new [] { Manifest.Hls(new HlsManifestConfiguration {
        ManifestName = "index",
        StartTag = StartTag.Of(10)
    }) }
});
go
// Install: go get github.com/aws/aws-cdk-go/awsmediapackagev2alpha/v2
var channel Channel


awsmediapackagev2alpha.NewOriginEndpoint(this, jsii.String("Endpoint"), &OriginEndpointProps{
	Channel: Channel,
	Segment: awsmediapackagev2alpha.Segment_Cmaf(),
	Manifests: []Manifest{
		awsmediapackagev2alpha.Manifest_Hls(&HlsManifestConfiguration{
			ManifestName: jsii.String("index"),
			StartTag: awsmediapackagev2alpha.StartTag_Of(jsii.Number(10)),
		}),
	},
})

Initializer ​

ts
new StartTag()
python
StartTag()
java
new StartTag()
csharp
new StartTag()
go
NewStartTag()

Properties ​

precisemay be undefinedbooleanprecisemay be undefinedboolprecisemay be undefinedBooleanPrecisemay be undefinedboolPrecisemay be undefined*bool #
Specify the value for PRECISE within your EXT-X-START tag.

Leave blank, or choose false, to use the default value NO. Choose true to use the value YES.

timeOffsetnumbertime_offsetint | floattimeOffsetNumberTimeOffsetdoubleTimeOffset*float64 #
Specify the value for TIME-OFFSET within your EXT-X-START tag.
notes

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.

Methods ​

of(timeOffset: number, options?: StartTagOptions): StartTag // chainable@staticmethod def of(time_offset: int | float, options: typing.Optional[StartTagOptions] = None) -> StartTagpublic static StartTag of(Number timeOffset, StartTagOptions options)public static StartTag Of(double timeOffset, StartTagOptions? options = null)func Of(TimeOffset *float64, Options StartTagOptions) StartTag static #
Create a start tag with a time offset.
2 parameters

Parameters

  • timeOffsettime_offsettimeOffsettimeOffsetTimeOffset — The time offset in seconds.
  • optionsoptionsoptionsoptionsOptions — Additional options.
withPrecise(timeOffset: number): StartTag // chainable@staticmethod def with_precise(time_offset: int | float) -> StartTagpublic static StartTag withPrecise(Number timeOffset)public static StartTag WithPrecise(double timeOffset)func WithPrecise(TimeOffset *float64) StartTag static #
Create a start tag with precise positioning enabled (PRECISE=YES).
1 parameter

Parameters

  • timeOffsettime_offsettimeOffsettimeOffsetTimeOffset — The time offset in seconds (positive or negative).