Skip to content
v2.278.0

Experimental

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

GopSize Class ​

GOP size (keyframe interval). Use the static factory methods to specify in frames or seconds.

The value must be greater than zero. When expressed in frames it must be a whole number; when expressed in seconds it may be fractional.

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';
const gopSize = medialive_alpha.GopSize.frames(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

gop_size = medialive_alpha.GopSize.frames(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.*;

GopSize gopSize = GopSize.frames(123);
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;

var gopSize = GopSize.Frames(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"

gopSize := medialive_alpha.GopSize_Frames(jsii.Number(123))

Methods ​

frames(value: number): GopSize // chainable@staticmethod def frames(value: int | float) -> GopSizepublic static GopSize frames(Number value)public static GopSize Frames(double value)func Frames(Value *float64) GopSize static #
GOP size in frames.

Must be a whole number.

seconds(value: number): GopSize // chainable@staticmethod def seconds(value: int | float) -> GopSizepublic static GopSize seconds(Number value)public static GopSize Seconds(double value)func Seconds(Value *float64) GopSize static #
GOP size in seconds.

May be fractional (e.g. 1.5).