Added negar by sorena to queue
parent
43d2f9d15d
commit
5f2c4394ca
|
|
@ -65,6 +65,9 @@ export default {
|
||||||
mounted () {
|
mounted () {
|
||||||
this.drawVisualizer()
|
this.drawVisualizer()
|
||||||
},
|
},
|
||||||
|
updated () {
|
||||||
|
this.wavesurfer.load(this.playerQueue[this.currentlyPlaying].stream)
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
drawVisualizer () {
|
drawVisualizer () {
|
||||||
let progress = this.$el.getElementsByClassName('progress')[0]
|
let progress = this.$el.getElementsByClassName('progress')[0]
|
||||||
|
|
@ -169,11 +172,9 @@ export default {
|
||||||
},
|
},
|
||||||
playNext () {
|
playNext () {
|
||||||
this.playQueueItem(this.currentlyPlaying + 1)
|
this.playQueueItem(this.currentlyPlaying + 1)
|
||||||
this.wavesurfer.load(this.playerQueue[this.currentlyPlaying].stream)
|
|
||||||
},
|
},
|
||||||
playPrevious () {
|
playPrevious () {
|
||||||
this.playQueueItem(this.currentlyPlaying - 1)
|
this.playQueueItem(this.currentlyPlaying - 1)
|
||||||
this.wavesurfer.load(this.playerQueue[this.currentlyPlaying].stream)
|
|
||||||
},
|
},
|
||||||
play () {
|
play () {
|
||||||
this.wavesurfer.play()
|
this.wavesurfer.play()
|
||||||
|
|
|
||||||
|
|
@ -20,8 +20,8 @@ const state = {
|
||||||
id: 8,
|
id: 8,
|
||||||
title: 'Ali sorena',
|
title: 'Ali sorena',
|
||||||
artist: 'Negar',
|
artist: 'Negar',
|
||||||
artwork: 'http://sakhamusic.ir/wp-content/uploads/2016/03/Ali-Sorena-%E2%80%93-Negar.jpg',
|
artwork: '/static/demo/negar.jpg',
|
||||||
stream: 'http://dl.sakhamusic.ir/94/esfand/09/03%20Negar%20(Prod.%20Ehsan%20Ziya)_2.mp3'
|
stream: '/static/demo/negar.mp3'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 8.9 KiB |
Binary file not shown.
Loading…
Reference in New Issue