Experimental
@aws-cdk/aws-mediapackagev2-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
IsmSegmentProps Struct
Properties for ISM (Microsoft Smooth Streaming) segment configuration.
| Stability | Experimental |
|---|---|
| Source | lib/endpoint.ts |
Example
ts
declare const channel: Channel;
declare const spekeRole: iam.IRole;
new OriginEndpoint(this, 'IsmEndpoint', {
channel,
segment: Segment.ism({
encryption: IsmEncryption.speke({
resourceId: 'my-content-id',
url: 'https://example.com/speke',
role: spekeRole,
}),
}),
manifests: [Manifest.mss({ manifestName: 'index' })],
});
python
# channel: Channel
# speke_role: iam.IRole
OriginEndpoint(self, "IsmEndpoint",
channel=channel,
segment=Segment.ism(
encryption=IsmEncryption.speke(
resource_id="my-content-id",
url="https://example.com/speke",
role=speke_role
)
),
manifests=[Manifest.mss(manifest_name="index")]
)
java
Channel channel;
IRole spekeRole;
OriginEndpoint.Builder.create(this, "IsmEndpoint")
.channel(channel)
.segment(Segment.ism(IsmSegmentProps.builder()
.encryption(IsmEncryption.speke(IsmSpekeEncryptionProps.builder()
.resourceId("my-content-id")
.url("https://example.com/speke")
.role(spekeRole)
.build()))
.build()))
.manifests(List.of(Manifest.mss(MssManifestConfiguration.builder().manifestName("index").build())))
.build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.MediaPackageV2.Alpha
Channel channel;
IRole spekeRole;
new OriginEndpoint(this, "IsmEndpoint", new OriginEndpointProps {
Channel = channel,
Segment = Segment.Ism(new IsmSegmentProps {
Encryption = IsmEncryption.Speke(new IsmSpekeEncryptionProps {
ResourceId = "my-content-id",
Url = "https://example.com/speke",
Role = spekeRole
})
}),
Manifests = new [] { Manifest.Mss(new MssManifestConfiguration { ManifestName = "index" }) }
});
go
// Install: go get github.com/aws/aws-cdk-go/awsmediapackagev2alpha/v2
var channel Channel
var spekeRole IRole
awsmediapackagev2alpha.NewOriginEndpoint(this, jsii.String("IsmEndpoint"), &OriginEndpointProps{
Channel: Channel,
Segment: awsmediapackagev2alpha.Segment_Ism(&IsmSegmentProps{
Encryption: awsmediapackagev2alpha.IsmEncryption_Speke(&IsmSpekeEncryptionProps{
ResourceId: jsii.String("my-content-id"),
Url: jsii.String("https://example.com/speke"),
Role: spekeRole,
}),
}),
Manifests: []Manifest{
awsmediapackagev2alpha.Manifest_Mss(&MssManifestConfiguration{
ManifestName: jsii.String("index"),
}),
},
})
Properties
durationoptionalDurationdurationoptionalDurationdurationoptionalDurationDurationoptionalDurationDurationoptionalDuration = Duration.seconds(6) #Duration of each segment.
encryptionoptionalIsmEncryptionencryptionoptionalIsmEncryptionencryptionoptionalIsmEncryptionEncryptionoptionalIsmEncryptionEncryptionoptionalIsmEncryption #Encryption configuration for the ISM segment.
Default: No encryption
Use IsmEncryption.speke() to create the configuration.
includeIframeOnlyStreamsoptionalbooleaninclude_iframe_only_streamsoptionalboolincludeIframeOnlyStreamsoptionalBooleanIncludeIframeOnlyStreamsoptionalboolIncludeIframeOnlyStreamsoptional*bool = false #Whether to include I-frame-only streams.
nameoptionalstringnameoptionalstrnameoptionalStringNameoptionalstringNameoptional*string = 'segment' #Name of the segment.