class StartTag
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.MediaPackageV2.Alpha.StartTag |
Go | github.com/aws/aws-cdk-go/awsmediapackagev2alpha/v2#StartTag |
Java | software.amazon.awscdk.services.mediapackagev2.alpha.StartTag |
Python | aws_cdk.aws_mediapackagev2_alpha.StartTag |
TypeScript (source) | @aws-cdk/aws-mediapackagev2-alpha ยป StartTag |
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
declare const channel: Channel;
new OriginEndpoint(this, 'Endpoint', {
channel,
segment: Segment.cmaf(),
manifests: [
Manifest.hls({
manifestName: 'index',
startTag: StartTag.of(10),
}),
],
});
Initializer
new StartTag()
Properties
| Name | Type | Description |
|---|---|---|
| time | number | Specify the value for TIME-OFFSET within your EXT-X-START tag. |
| precise? | boolean | Specify the value for PRECISE within your EXT-X-START tag. |
timeOffset
Type:
number
Specify the value for TIME-OFFSET within your EXT-X-START tag.
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.
precise?
Type:
boolean
(optional)
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.
Methods
| Name | Description |
|---|---|
| static of(timeOffset, options?) | Create a start tag with a time offset. |
| static with | Create a start tag with precise positioning enabled (PRECISE=YES). |
static of(timeOffset, options?)
public static of(timeOffset: number, options?: StartTagOptions): StartTag
Parameters
- timeOffset
numberโ The time offset in seconds. - options
Startโ Additional options.Tag Options
Returns
Create a start tag with a time offset.
static withPrecise(timeOffset)
public static withPrecise(timeOffset: number): StartTag
Parameters
- timeOffset
numberโ The time offset in seconds (positive or negative).
Returns
Create a start tag with precise positioning enabled (PRECISE=YES).

.NET
Go
Java
Python
TypeScript (