Source
abstract class Source
Defines the asset to use as the layered file in an overlay or underlay.
Learn more: Applying layers to images | Applying layers to videos
Methods
image(string $publicId)
Adds another image layer.
fetch(string|null $fetchUrl)
Adds another image layer.
lut(string $lutId)
Applies a look-up table (LUT) file to the image.
text(string $text = null, string $style = null, string $color = null)
Adds a text layer.
video(string $videoId = null)
Adds another video layer.
fetchVideo(string|null $fetchUrl)
Adds another video layer from a remote URL.
subtitles(string $subtitlesId = null)
Adds subtitles to a video.
audio(string $audioId = null)
Adds another audio layer.
Details
static ImageSourceTrait|ImageSource
image(string $publicId)
Adds another image layer.
static ImageSourceTrait|FetchImageSource
fetch(string|null $fetchUrl)
Adds another image layer.
static ImageSourceTrait|LutLayer
lut(string $lutId)
Applies a look-up table (LUT) file to the image.
static ImageSourceTrait|TextSource
text(string $text = null, string $style = null, string $color = null)
Adds a text layer.
static VideoSourceTrait|VideoSource
video(string $videoId = null)
Adds another video layer.
static VideoSourceTrait|FetchVideoSource
fetchVideo(string|null $fetchUrl)
Adds another video layer from a remote URL.
static VideoSourceTrait|SubtitlesSource
subtitles(string $subtitlesId = null)
Adds subtitles to a video.
static AudioSourceTrait|AudioSource
audio(string $audioId = null)
Adds another audio layer.