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

Behavior on input loss: substitute black, optionally repeat the last frame, then show a solid color or a slate image.

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

## Example

```ts
declare const slateBucket: s3.IBucket;

const inputLoss: medialive.InputLossBehavior = {
  blackFrame: Duration.seconds(1),
  repeatFrame: Duration.seconds(5),
  imageType: medialive.InputLossImageType.SLATE,
  imageSlate: medialive.FileLocation.fromBucket(slateBucket, 'slates/offline.png'),
};
```

## Properties

- `blackFrame`: [Duration](/cdk/api/v2/docs/aws-cdk-lib.Duration.html) — How long to substitute black before showing the input-loss image (up to Duration.seconds(1000); Duration.seconds(1000) is interpreted as infinite).

  **Default:** service default

- `imageColor`: string — The image color as 6 hex characters (RGB).

  **Default:** service default

  Used when InputLossImageType.COLOR.

- `imageSlate`: [FileLocation](/cdk/api/v2/docs/@aws-cdk_aws-medialive-alpha.FileLocation.html) — The slate image to display.

  **Default:** service default

  Used when `imageType` is SLATE. Provide a `FileLocation`
  referencing an S3 bucket (`FileLocation.fromBucket`, which auto-grants read access) or
  a URL (`FileLocation.url`).

- `imageType`: [InputLossImageType](/cdk/api/v2/docs/@aws-cdk_aws-medialive-alpha.InputLossImageType.html) — Whether to substitute a solid color or a slate image after the black period.

  **Default:** service default

- `repeatFrame`: [Duration](/cdk/api/v2/docs/aws-cdk-lib.Duration.html) — How long to repeat the previous picture before substituting black (up to Duration.seconds(1000); Duration.seconds(1000) is interpreted as infinite).

  **Default:** service default
