class VideoAsset implements Asset, HtmlRenderable

Video file.

Methods

__construct(string $url, string|null $file = null, int|null $width = null, int|null $height = null, string|null $mimeType = null, float|null $duration = null, string|null $poster = null, bool $autoPlay = false)

No description

string
__toString()

Returns the asset URL.

Html
getImportElement()

Returns the HTML element used to import the asset (img, script, link rel="stylesheet", etc.).

Html
getPreloadElement()

Returns the HTML element used to preload the asset (link rel="preload" or rel="modulepreload").

Details

at line 13
__construct(string $url, string|null $file = null, int|null $width = null, int|null $height = null, string|null $mimeType = null, float|null $duration = null, string|null $poster = null, bool $autoPlay = false)

No description

Parameters

string $url
string|null $file
int|null $width
int|null $height
string|null $mimeType
float|null $duration
string|null $poster
bool $autoPlay

at line 28
string __toString()

Returns the asset URL.

Return Value

string

at line 34
Html getImportElement()

Returns the HTML element used to import the asset (img, script, link rel="stylesheet", etc.).

Return Value

Html

at line 47
Html getPreloadElement()

Returns the HTML element used to preload the asset (link rel="preload" or rel="modulepreload").

Return Value

Html