class OutputLocking
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.MediaLive.Alpha.OutputLocking |
Go | github.com/aws/aws-cdk-go/awsmedialivealpha/v2#OutputLocking |
Java | software.amazon.awscdk.services.medialive.alpha.OutputLocking |
Python | aws_cdk.aws_medialive_alpha.OutputLocking |
TypeScript (source) | @aws-cdk/aws-medialive-alpha ยป OutputLocking |
Output locking synchronises the frames emitted by a channel's two pipelines. Use the static factory methods to select a strategy:.
OutputLocking.pipeline()โ synchronise each pipeline's output to the other.OutputLocking.epoch()โ synchronise each pipeline's output to the Unix epoch.OutputLocking.disabled()โ do not synchronise pipelines.
See also: https://docs.aws.amazon.com/medialive/latest/ug/pipeline-lock.html
Example
declare const stack: Stack;
declare const input: medialive.IInput;
declare const bucket: s3.IBucket;
declare const video: medialive.EncodeConfiguration;
declare const audio: medialive.EncodeConfiguration;
new medialive.Channel(stack, 'Channel', {
inputs: [{ input }],
timecodeConfig: {
source: medialive.TimecodeSource.EMBEDDED,
},
globalConfiguration: {
outputLocking: medialive.OutputLocking.epoch(),
outputTimingSource: medialive.OutputTimingSource.INPUT_CLOCK,
},
outputGroups: [
medialive.OutputGroupConfiguration.hls({
name: 'hls',
destinations: [medialive.OutputDestination.toBucket(bucket, 'live/stream')],
outputs: [{ encodes: [video, audio], outputName: 'hls_out' }],
}),
],
});
Initializer
new OutputLocking()
Methods
| Name | Description |
|---|---|
| static disabled(customEpoch?) | Disable output locking (optionally with a custom epoch). |
| static epoch(props?) | Lock outputs to an epoch. |
| static pipeline(props?) | Lock pipelines to each other. |
static disabled(customEpoch?)
public static disabled(customEpoch?: string): OutputLocking
Parameters
- customEpoch
string
Returns
Disable output locking (optionally with a custom epoch).
static epoch(props?)
public static epoch(props?: EpochOutputLockingProps): OutputLocking
Parameters
- props
EpochOutput Locking Props
Returns
Lock outputs to an epoch.
static pipeline(props?)
public static pipeline(props?: PipelineOutputLockingProps): OutputLocking
Parameters
Returns
Lock pipelines to each other.

.NET
Go
Java
Python
TypeScript (