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.
| Stability | Experimental |
|---|---|
| Source | lib/endpoint.ts |
Example
declare const channel: Channel;
new OriginEndpoint(this, 'Endpoint', {
channel,
segment: Segment.cmaf(),
manifests: [
Manifest.hls({
manifestName: 'index',
startTag: StartTag.of(10),
}),
],
});
# channel: Channel
OriginEndpoint(self, "Endpoint",
channel=channel,
segment=Segment.cmaf(),
manifests=[
Manifest.hls(
manifest_name="index",
start_tag=StartTag.of(10)
)
]
)
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();
// 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)
}) }
});
// 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
new StartTag()
StartTag()
new StartTag()
new StartTag()
NewStartTag()
Properties
precisemay be undefinedbooleanprecisemay be undefinedboolprecisemay be undefinedBooleanPrecisemay be undefinedboolPrecisemay be undefined*bool #Leave blank, or choose false, to use the default value NO. Choose true to use the value YES.
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 #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 #1 parameter
Parameters
timeOffsettime_offsettimeOffsettimeOffsetTimeOffset— The time offset in seconds (positive or negative).