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.

TimecodeSource Class ​

The source of timecode for the channel outputs.

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 ​

EMBEDDEDTimecodeSourceembeddedTimecodeSourceEMBEDDEDTimecodeSourceEMBEDDEDTimecodeSourceEMBEDDEDTimecodeSourcerequiredstatic#
Use embedded timecode from the source.

Falls back to zero-based if not detected.

SYSTEMCLOCKTimecodeSourcesystemclockTimecodeSourceSYSTEMCLOCKTimecodeSourceSYSTEMCLOCKTimecodeSourceSYSTEMCLOCKTimecodeSourcerequiredstatic#
Use the system clock (UTC).
valuestringvaluestrvalueStringValuestringValue*stringrequired#
The underlying string value passed to CloudFormation.
ZEROBASEDTimecodeSourcezerobasedTimecodeSourceZEROBASEDTimecodeSourceZEROBASEDTimecodeSourceZEROBASEDTimecodeSourcerequiredstatic#
Start at 00:00:00:00.

Methods ​

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