Skip to content
v2.277.0

Experimental

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

Scte27CaptionSourceOptions Struct ​

Options for an SCTE-27 caption source.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as medialive_alpha from '@aws-cdk/aws-medialive-alpha';

declare const ocrLanguage: medialive_alpha.OcrLanguage;
const scte27CaptionSourceOptions: medialive_alpha.Scte27CaptionSourceOptions = {
  ocrLanguage: ocrLanguage,
  pid: 123,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_medialive_alpha as medialive_alpha

# ocr_language: medialive_alpha.OcrLanguage

scte27_caption_source_options = medialive_alpha.Scte27CaptionSourceOptions(
    ocr_language=ocr_language,
    pid=123
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.medialive.alpha.*;

OcrLanguage ocrLanguage;

Scte27CaptionSourceOptions scte27CaptionSourceOptions = Scte27CaptionSourceOptions.builder()
        .ocrLanguage(ocrLanguage)
        .pid(123)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.MediaLive.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.MediaLive.Alpha;

OcrLanguage ocrLanguage;

var scte27CaptionSourceOptions = new Scte27CaptionSourceOptions {
    OcrLanguage = ocrLanguage,
    Pid = 123
};
go
// Install: go get github.com/aws/aws-cdk-go/awsmedialivealpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import medialive_alpha "github.com/aws/aws-cdk-go/awsmedialivealpha"

var ocrLanguage OcrLanguage

scte27CaptionSourceOptions := &Scte27CaptionSourceOptions{
	OcrLanguage: ocrLanguage,
	Pid: jsii.Number(123),
}

Properties ​

ocrLanguageoptionalOcrLanguageocr_languageoptionalOcrLanguageocrLanguageoptionalOcrLanguageOcrLanguageoptionalOcrLanguageOcrLanguageoptionalOcrLanguage#
The OCR language to use when converting this image-based source to text.

Default: MediaLive service default

pidoptionalnumberpidoptionalint | floatpidoptionalNumberPidoptionaldoublePidoptional*float64#
The PID to extract captions from.

Default: MediaLive service default

See the MediaLive docs for how PID and languageCode interact.