Added skip function to wavesurfer driver layer
parent
d41f96bfee
commit
3ba4e31bb4
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue