Added negar by sorena to queue

pull/46/head
Nikan Dalvand 2019-08-02 20:14:56 +04:30
parent 43d2f9d15d
commit 5f2c4394ca
4 changed files with 5 additions and 4 deletions

View File

@ -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()

View File

@ -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'
} }
] ]
} }

BIN
static/demo/negar.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

BIN
static/demo/negar.mp3 Normal file

Binary file not shown.