class VideoOverlay extends BasePositionalSourceContainer

Defines how the video layer is applied.

Learn more: Video overlays

Methods

__construct(BaseSource|string $source = null, BasePosition|null $position = null, Timeline|null $timeline = null)

BaseLayerContainer constructor.

timeline(Timeline $timeline = null)

Sets the timeline position of the overlay.

cutter()

Indicates that the video should be used as a cutter for the main video.

source(BaseSource $source)

Sets the source.

position(Position $position = null)

Sets the layer position.

Details

__construct(BaseSource|string $source = null, BasePosition|null $position = null, Timeline|null $timeline = null)

BaseLayerContainer constructor.

Parameters

Name Type Description
$source BaseSource|string
$position BasePosition|null
$timeline Timeline|null

BasePositionalSourceContainer timeline(Timeline $timeline = null)

Sets the timeline position of the overlay.

Parameters

Name Type Description
$timeline Timeline The timeline position of the overlay.

Return Value

BasePositionalSourceContainer

$this cutter()

Indicates that the video should be used as a cutter for the main video.

Return Value

$this

VideoOverlay source(BaseSource $source)

Sets the source.

Parameters

Name Type Description
$source BaseSource The source.

Return Value

VideoOverlay

VideoOverlay position(Position $position = null)

Sets the layer position.

Parameters

Name Type Description
$position Position The Position of the layer.

Return Value

VideoOverlay