VideoAsset
class VideoAsset implements Asset, HtmlRenderable
Video asset.
Methods
__construct(string $url, string|null $mimeType = null, string|null $file = null, int|null $width = null, int|null $height = null, float|null $duration = null, string|null $poster = null, bool $autoPlay = false)
No description
string
__toString()
Allows direct echoing of the object to get the URL.
Html
getImportElement()
Returns HTML tag name and attributes for rendering the asset.
Html
getPreloadElement()
Returns HTML tag name and attributes for preloading the asset.
Details
at line 15
__construct(string $url, string|null $mimeType = null, string|null $file = null, int|null $width = null, int|null $height = null, float|null $duration = null, string|null $poster = null, bool $autoPlay = false)
No description
at line 30
string
__toString()
Allows direct echoing of the object to get the URL.
at line 36
Html
getImportElement()
Returns HTML tag name and attributes for rendering the asset.
at line 49
Html
getPreloadElement()
Returns HTML tag name and attributes for preloading the asset.