0.0.24 • Published 10 months ago
awscdk-construct-scte-scheduler v0.0.24
awscdk-construct-scte-scheduler
AWS CDK Construct for scheduling SCTE-35 events using the MediaLive schedule API
- Input:
- MediaLive channel id
- SCTE event duration (seconds)
- Repeat interval (minutes)
- Repeat count (optional)
- Lambda function to be called after the repeat (optional)
- Output:
- Lambda function for calling MediaLive schedule API
- EventBridge rule or Stepfunctions state machine for periodically invoking the function
Install
Usage
import { Stack, StackProps, CfnOutput } from 'aws-cdk-lib';
import { Construct } from 'constructs';
import { LiveChannelFromMp4 } from 'awscdk-construct-live-channel-from-mp4-file';
import { ScteScheduler } from 'awscdk-construct-scte-scheduler';
export class ExampleStack extends Stack {
constructor(scope: Construct, id: string, props?: StackProps) {
super(scope, id, props);
// Create a live channel (MediaLive + MediaPackage)
const {eml, emp} = new LiveChannelFromMp4(this, 'LiveChannelFromMp4', {
sourceUrl: 's3ssl://example_bucket/test.mp4',
timecodeBurninPrefix: 'Ch1',
autoStart: true,
});
// Schedule a 30-sec ad break every minute
new ScteScheduler(this, 'ScteScheduler', {
channelId: eml.channel.ref,
scteDurationInSeconds: 30,
intervalInMinutes: 1,
repeqtCount: 5,
});
// Print MediaPackage endpoint URL (HLS)
new CfnOutput(this, "MediaPackageEndpointURL", {
value: emp.endpoints.hls.attrUrl,
exportName: "MediaPackageEndpointURL",
description: "MediaPackage endpoint URL",
});
}
}
0.0.23
10 months ago
0.0.24
10 months ago
0.0.22
11 months ago
0.0.21
11 months ago
0.0.20
11 months ago
0.0.17
11 months ago
0.0.18
11 months ago
0.0.19
11 months ago
0.0.12
11 months ago
0.0.13
11 months ago
0.0.14
11 months ago
0.0.15
11 months ago
0.0.16
11 months ago
0.0.10
1 year ago
0.0.11
12 months ago
0.0.9
1 year ago
0.0.8
1 year ago
0.0.7
1 year ago
0.0.5
1 year ago
0.0.4
1 year ago
0.0.6
1 year ago
0.0.3
1 year ago
0.0.2
1 year ago
0.0.1
1 year ago
0.0.0
1 year ago