Added skip function to wavesurfer driver layer

pull/18/head
Nikan Dalvand 2019-07-25 22:49:57 +04:30
parent d41f96bfee
commit 3ba4e31bb4
1 changed files with 3 additions and 0 deletions

View File

@ -66,6 +66,9 @@ export default {
isPlaying () { isPlaying () {
return typeof this.wavesurfer === 'undefined' ? false : this.wavesurfer.isPlaying() return typeof this.wavesurfer === 'undefined' ? false : this.wavesurfer.isPlaying()
}, },
skip (offset) {
this.wavesurfer.skip(offset)
}
togglePlay () { togglePlay () {
this.wavesurfer.playPause() this.wavesurfer.playPause()
this.playingStatus = this.isPlaying() this.playingStatus = this.isPlaying()