> **Experimental**
>
> `@aws-cdk/aws-medialive-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# HlsSettings

Per-output HLS settings.

Select the variant that matches the output: a standard (video)
output, an audio-only rendition, an fMP4 output, or a frame-capture output.

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/m3u8-settings.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0-alpha.0/packages/@aws-cdk/aws-medialive-alpha/lib/m3u8-settings.ts#L354)

## Example

```ts
declare const bucket: s3.IBucket;
declare const video: medialive.EncodeConfiguration;
declare const audio: medialive.EncodeConfiguration;

medialive.OutputGroupConfiguration.hls({
  name: 'hls',
  destinations: [medialive.OutputDestination.toBucket(bucket, 'live/stream')],
  outputs: [
    {
      encodes: [video],
      outputName: 'video',
      hlsSettings: medialive.HlsSettings.standard({
        m3u8Settings: medialive.M3u8Settings.of({
          scte35Behavior: medialive.M3u8Scte35Behavior.PASSTHROUGH,
          programNum: 1,
        }),
      }),
    },
    {
      encodes: [audio],
      outputName: 'audio',
      hlsSettings: medialive.HlsSettings.audioOnly({
        audioGroupId: 'program',
        audioOnlyImage: medialive.FileLocation.fromBucket(bucket, 'art/cover.png'),
      }),
    },
  ],
});
```

## Initializer

```ts
new HlsSettings()
```

## Methods

- `audioOnly(props?: AudioOnlyHlsSettingsProps): HlsSettings // chainable` (static) — Settings for an audio-only HLS rendition.

- `fmp4(props?: Fmp4HlsSettingsProps): HlsSettings // chainable` (static) — Settings for an fMP4 HLS output.

- `frameCapture(): HlsSettings // chainable` (static) — Settings for a frame-capture output in an HLS output group.

- `standard(props?: StandardHlsSettingsProps): HlsSettings // chainable` (static) — Settings for a standard (video) HLS output.
