class SubtitlesSource extends AssetBasedSource

Defines how to manipulate a subtitle layer.

Learn more: Adding subtitles

Methods

backgroundColor(Background|ColorValue|string $color)

Sets the color of the background.

__construct($subtitlesId)

SubtitlesLayer constructor.

getTransformation()

Gets the transformation.

textStyle(array|TextStyle $style)

Sets the text style of the subtitles.

Details

BackgroundColorTrait backgroundColor(Background|ColorValue|string $color)

Sets the color of the background.

Parameters

Name Type Description
$color Background|ColorValue|string The color of the background to set.

Return Value

BackgroundColorTrait

See also

Background

__construct($subtitlesId)

SubtitlesLayer constructor.

Parameters

Name Type Description
$subtitlesId

VideoTransformation getTransformation()

Gets the transformation.

Return Value

VideoTransformation

$this textStyle(array|TextStyle $style)

Sets the text style of the subtitles.

Parameters

Name Type Description
$style array|TextStyle The style.

Return Value

$this