Documentation

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
$this

controls()

Allows to set or remove the HTML5 default controls

public controls([bool $status = true ]) : $this
Parameters
$status : bool = true
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

        
On this page

Search results