MediaPlayerTrait
Class implements audio object interface.
Table of Contents
Methods
- autoplay() : $this
- Allows to set the autoplay attribute
- controls() : $this
- Allows to set or remove the HTML5 default controls
- 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.
Methods
autoplay()
Allows to set the autoplay attribute
public
autoplay([bool $status = false ]) : $this
Parameters
- $status : bool = false
Return values
$thiscontrols()
Allows to set or remove the HTML5 default controls
public
controls([bool $status = true ]) : $this
Parameters
- $status : bool = true
Return values
$thisloop()
Allows to set the loop attribute
public
loop([bool $status = false ]) : $this
Parameters
- $status : bool = false
Return values
$thismuted()
Allows to set the muted attribute
public
muted([bool $status = false ]) : $this
Parameters
- $status : bool = false
Return values
$thispreload()
Allows to set the preload behaviour
public
preload([string|null $preload = null ]) : $this
Parameters
- $preload : string|null = null
Return values
$thisresetPlayer()
Reset player.
public
resetPlayer() : mixed