Class: Player

@bldr/vue-plugin-media~Player

A deeply with vuex coupled media player. Only one media file can be played a the same time.

new Player ()

Members

globalVolume Number

Global volume: from 0 - 1

Methods

backward (interval)

Jump backwards.

Name Type Default Description
interval Number 10

Time interval in seconds.

forward (interval)

Jump forwards.

Name Type Default Description
interval Number 10

Time interval in seconds.

load (uriOrSample)

Load a sample. Only loaded sample can be played.

Name Type Description
uriOrSample String | Object

pause () async

Pause a sample at the current position.

start () async

Play a loaded sample from the position sample.startTimeSec on. Stop the currently playing sample.

stop (fadeOutSec) async

Stop the playback and reset the play position to sample.startTimeSec and unload the playing sample.

Name Type Description
fadeOutSec Number

Duration in seconds to fade out the sample.

toggle ()

Toggle between Player.pause() and Player.play(). If a sample is loaded start this sample.