class AudioOverlay extends BaseSourceContainer

Defines how the audio layer is applied.

Learn more: Audio overlays

Methods

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

BaseLayerContainer constructor.

timeline(Timeline $timeline = null)

Sets the timeline position of the overlay.

source(BaseSource $source)

Sets the source.

Details

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

BaseLayerContainer constructor.

Parameters

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

AudioOverlay 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

AudioOverlay

AudioOverlay source(BaseSource $source)

Sets the source.

Parameters

Name Type Description
$source BaseSource The source.

Return Value

AudioOverlay