trait VideoSourceTrait

Trait VideoSourceTrait

Methods

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.

Details

static VideoSourceTrait|VideoSource video(string $videoId = null)

Adds another video layer.

Parameters

Name Type Description
$videoId string The public ID of the new video layer.

Return Value

VideoSourceTrait|VideoSource

static VideoSourceTrait|FetchVideoSource fetchVideo(string|null $fetchUrl)

Adds another video layer from a remote URL.

Parameters

Name Type Description
$fetchUrl string|null The URL of the asset to fetch.

Return Value

VideoSourceTrait|FetchVideoSource

static VideoSourceTrait|SubtitlesSource subtitles(string $subtitlesId = null)

Adds subtitles to a video.

Parameters

Name Type Description
$subtitlesId string The public ID of the subtitles file.

Return Value

VideoSourceTrait|SubtitlesSource