Class OutputLocking
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.medialive.alpha.OutputLocking
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-02T11:03:41.304Z")
@Stability(Experimental)
public abstract class OutputLocking
extends software.amazon.jsii.JsiiObject
(experimental) 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.
Example:
Stack stack;
IInput input;
IBucket bucket;
EncodeConfiguration video;
EncodeConfiguration audio;
Channel.Builder.create(stack, "Channel")
.inputs(List.of(InputAttachment.builder().input(input).build()))
.timecodeConfig(TimecodeConfig.builder()
.source(TimecodeSource.EMBEDDED)
.build())
.globalConfiguration(GlobalConfiguration.builder()
.outputLocking(OutputLocking.epoch())
.outputTimingSource(OutputTimingSource.INPUT_CLOCK)
.build())
.outputGroups(List.of(OutputGroupConfiguration.hls(HlsOutputGroupProps.builder()
.name("hls")
.destinations(List.of(OutputDestination.toBucket(bucket, "live/stream")))
.outputs(List.of(HlsOutputDefinition.builder().encodes(List.of(video, audio)).outputName("hls_out").build()))
.build())))
.build();
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedOutputLocking(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedOutputLocking(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic OutputLockingdisabled()(experimental) Disable output locking (optionally with a custom epoch).static OutputLocking(experimental) Disable output locking (optionally with a custom epoch).static OutputLockingepoch()(experimental) Lock outputs to an epoch.static OutputLockingepoch(EpochOutputLockingProps props) (experimental) Lock outputs to an epoch.static OutputLockingpipeline()(experimental) Lock pipelines to each other.static OutputLocking(experimental) Lock pipelines to each other.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
OutputLocking
protected OutputLocking(software.amazon.jsii.JsiiObjectRef objRef) -
OutputLocking
protected OutputLocking(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
OutputLocking
@Stability(Experimental) protected OutputLocking()
-
-
Method Details
-
disabled
@Stability(Experimental) @NotNull public static OutputLocking disabled(@Nullable String customEpoch) (experimental) Disable output locking (optionally with a custom epoch).- Parameters:
customEpoch-
-
disabled
(experimental) Disable output locking (optionally with a custom epoch). -
epoch
@Stability(Experimental) @NotNull public static OutputLocking epoch(@Nullable EpochOutputLockingProps props) (experimental) Lock outputs to an epoch.- Parameters:
props-
-
epoch
(experimental) Lock outputs to an epoch. -
pipeline
@Stability(Experimental) @NotNull public static OutputLocking pipeline(@Nullable PipelineOutputLockingProps props) (experimental) Lock pipelines to each other.- Parameters:
props-
-
pipeline
(experimental) Lock pipelines to each other.
-