Documentation

AudioMediaTrait uses trait:short, trait:short

Trait AudioMediaTrait

Table of Contents

Methods

autoplay()  : $this
Allows to set the autoplay attribute
controls()  : $this
Allows to set or remove the HTML5 default controls
controlsList()  : $this
Allows to set the controlsList behaviour Separate multiple values with a hyphen
loop()  : $this
Allows to set the loop attribute
muted()  : $this
Allows to set the muted attribute
preload()  : $this
Allows to set the preload behaviour
resetPlayer()  : mixed
Reset player.
resize()  : $this
Resize media by setting attributes
sourceParsedownElement()  : array<string|int, mixed>
Parsedown element for source display mode

Methods

autoplay()

Allows to set the autoplay attribute

public autoplay([bool $status = false ]) : $this
Parameters
$status : bool = false
Return values
$this

controls()

Allows to set or remove the HTML5 default controls

public controls([bool $status = true ]) : $this
Parameters
$status : bool = true
Return values
$this

controlsList()

Allows to set the controlsList behaviour Separate multiple values with a hyphen

public controlsList(string $controlsList) : $this
Parameters
$controlsList : string
Return values
$this

loop()

Allows to set the loop attribute

public loop([bool $status = false ]) : $this
Parameters
$status : bool = false
Return values
$this

muted()

Allows to set the muted attribute

public muted([bool $status = false ]) : $this
Parameters
$status : bool = false
Return values
$this

preload()

Allows to set the preload behaviour

public preload([string|null $preload = null ]) : $this
Parameters
$preload : string|null = null
Return values
$this

resize()

Resize media by setting attributes

public resize([int|null $width = null ][, int|null $height = null ]) : $this
Parameters
$width : int|null = null
$height : int|null = null
Return values
$this

sourceParsedownElement()

Parsedown element for source display mode

protected sourceParsedownElement(array<string|int, mixed> $attributes[, bool $reset = true ]) : array<string|int, mixed>
Parameters
$attributes : array<string|int, mixed>
$reset : bool = true
Return values
array<string|int, mixed>

        
On this page

Search results