Skip to content

Commit

Permalink
support RTMP ingest
Browse files Browse the repository at this point in the history
  • Loading branch information
mazyu36 committed Sep 10, 2024
1 parent bc4dbfd commit 6cd4524
Show file tree
Hide file tree
Showing 12 changed files with 422 additions and 1 deletion.
12 changes: 12 additions & 0 deletions packages/@aws-cdk/aws-ivs-alpha/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,18 @@ const myChannel = new ivs.Channel(this, 'myChannel', {
});
```

If you want to use RTMP ingest, set `ingestInsecure` property to `true`.

By default, `ingestInsecure` is `false` which means using RTMPS ingest.

For more information, see [Encoder Settings](https://docs.aws.amazon.com/ivs/latest/LowLatencyUserGuide/streaming-config.html#streaming-config-settings).

```ts
const myRtmpChannel = new ivs.Channel(this, 'myRtmpChannel', {
type: ivs.ChannelType.STANDARD,
insecureIngest: true, // default value is false
});
```

### Importing an existing channel

Expand Down
8 changes: 8 additions & 0 deletions packages/@aws-cdk/aws-ivs-alpha/lib/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,13 @@ export interface ChannelProps {
*/
readonly authorized?: boolean;

/**
* Whether the channel allows insecure RTMP ingest.
*
* @default false
*/
readonly insecureIngest?: boolean;

/**
* Channel latency mode.
*
Expand Down Expand Up @@ -211,6 +218,7 @@ export class Channel extends ChannelBase {

const resource = new CfnChannel(this, 'Resource', {
authorized: props.authorized,
insecureIngest: props.insecureIngest,
latencyMode: props.latencyMode,
name: this.physicalName,
type: props.type,
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"Resources": {
"ChannelInsecureIngestEnabled1E9B93E0": {
"Type": "AWS::IVS::Channel",
"Properties": {
"InsecureIngest": true,
"Name": "aws-cdk-ivs-insecure-ingestChannelInsecureIngestEnabled15F31314",
"Type": "STANDARD"
}
}
},
"Parameters": {
"BootstrapVersion": {
"Type": "AWS::SSM::Parameter::Value<String>",
"Default": "/cdk-bootstrap/hnb659fds/version",
"Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]"
}
},
"Rules": {
"CheckBootstrapVersion": {
"Assertions": [
{
"Assert": {
"Fn::Not": [
{
"Fn::Contains": [
[
"1",
"2",
"3",
"4",
"5"
],
{
"Ref": "BootstrapVersion"
}
]
}
]
},
"AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI."
}
]
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6cd4524

Please sign in to comment.