Added volume control and added missing semi colon

pull/18/head
Nikan Dalvand 2019-07-25 22:51:56 +04:30
parent 3ba4e31bb4
commit a847ca31bc
1 changed files with 7 additions and 1 deletions

View File

@ -68,7 +68,13 @@ export default {
}, },
skip (offset) { skip (offset) {
this.wavesurfer.skip(offset) this.wavesurfer.skip(offset)
} },
getVolume () {
this.wavesurfer.getVolume()
},
setVolume (volume) {
this.wavesurfer.setVolume(volume)
},
togglePlay () { togglePlay () {
this.wavesurfer.playPause() this.wavesurfer.playPause()
this.playingStatus = this.isPlaying() this.playingStatus = this.isPlaying()