> **Experimental**
>
> `@aws-cdk/aws-mediapackagev2-alpha` is an [**experimental**](https://docs.aws.amazon.com/cdk/api/stability.html) (alpha) package: its API may change in any release, without a major version bump.
# 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.

Obtainable from: StartTag.of, StartTag.withPrecise

- Stability: [Experimental](https://docs.aws.amazon.com/cdk/api/stability.html)
- Source: [`lib/endpoint.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/@aws-cdk/aws-mediapackagev2-alpha/lib/endpoint.ts#L1201)

## Example

TypeScript:

```ts
declare const channel: Channel;

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

Python:

```python
# channel: Channel

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

Java:

```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();
```

C# / .NET:

```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)
    }) }
});
```

Golang:

```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

TypeScript:

```ts
new StartTag()
```

Python:

```python
StartTag()
```

Java:

```java
new StartTag()
```

C# / .NET:

```csharp
new StartTag()
```

Golang:

```go
NewStartTag()
```

## Properties

- `precise`: boolean — 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.

- `timeOffset`: 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.

## Methods

- `of(timeOffset: number, options?: StartTagOptions): StartTag // chainable` (static) — Create a start tag with a time offset.

  **Parameters**

  - `timeOffset` — The time offset in seconds.
  - `options` — Additional options.

- `withPrecise(timeOffset: number): StartTag // chainable` (static) — Create a start tag with precise positioning enabled (PRECISE=YES).

  **Parameters**

  - `timeOffset` — The time offset in seconds (positive or negative).
