class Segment
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.MediaLive.Alpha.Segment |
Go | github.com/aws/aws-cdk-go/awsmedialivealpha/v2#Segment |
Java | software.amazon.awscdk.services.medialive.alpha.Segment |
Python | aws_cdk.aws_medialive_alpha.Segment |
TypeScript (source) | @aws-cdk/aws-medialive-alpha ยป Segment |
The length of a media segment for an output group.
Express the length in whole seconds with {@link Segment.seconds} or in milliseconds with {@link Segment.milliseconds}. Some output groups (e.g. HLS) only support whole-second segments and will reject sub-second millisecond values.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as medialive_alpha from '@aws-cdk/aws-medialive-alpha';
const segment = medialive_alpha.Segment.milliseconds(123);
Methods
| Name | Description |
|---|---|
| static milliseconds(value) | A segment length in milliseconds. |
| static seconds(value) | A segment length in whole seconds. |
static milliseconds(value)
public static milliseconds(value: number): Segment
Parameters
- value
numberโ Number of milliseconds (non-negative integer).
Returns
A segment length in milliseconds.
static seconds(value)
public static seconds(value: number): Segment
Parameters
- value
numberโ Number of seconds (non-negative integer).
Returns
A segment length in whole seconds.

.NET
Go
Java
Python
TypeScript (