Skip to content
v2.274.0

Experimental

@aws-cdk/aws-medialive-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

OutputTimingSource Class ​

Source of output timing.

Example ​

ts
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' }],
    }),
  ],
});

Properties ​

INPUT_CLOCKOutputTimingSourceinput_clockOutputTimingSourceINPUT_CLOCKOutputTimingSourceINPUT_CLOCKOutputTimingSourceINPUT_CLOCKOutputTimingSourcerequiredstatic#
Use the input clock.
SYSTEM_CLOCKOutputTimingSourcesystem_clockOutputTimingSourceSYSTEM_CLOCKOutputTimingSourceSYSTEM_CLOCKOutputTimingSourceSYSTEM_CLOCKOutputTimingSourcerequiredstatic#
Use the system clock.
valuestringvaluestrvalueStringValuestringValue*stringrequired#
The underlying string value passed to CloudFormation.

Methods ​

of(value: string): OutputTimingSource // chainable@staticmethod def of(value: str) -> OutputTimingSourcepublic static OutputTimingSource of(String value)public static OutputTimingSource Of(string value)func Of(Value *string) OutputTimingSourcestatic#
A value not yet modelled by AWS CDK.