ScalingMode

ScalingMode

enum ScalingMode : Enum<ScalingMode>

Specifies how the video content is scaled or stretched.

Entries

FitFit
Specifies that the player should preserve the video’s aspect ratio and fit the video within the container's bounds.
StretchStretch
Specifies that the video should be stretched to fill the container’s bounds. The aspect ratio may not be preserved.
ZoomZoom
Specifies that the player should preserve the video’s aspect ratio and fill the container’s bounds.

Properties

NameSummary
entriesval entries: EnumEntries<ScalingMode>
Returns a representation of an immutable list of all enum entries, in the order they're declared.

Functions

NameSummary
valueOffun valueOf(value: String): ScalingMode
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
valuesfun values(): Array<ScalingMode>
Returns an array containing the constants of this enum type, in the order they're declared.