diff --git a/client/player.html b/client/player.html index 27f8329..f0790f2 100644 --- a/client/player.html +++ b/client/player.html @@ -953,21 +953,12 @@ div#large-visualization{ "autoplay": true, "volume":volume, "callbacks": { - // 'song_change':function(){ - // song = Amplitude.getActiveSongMetadata(); - // if(self.songLoaded.indexOf(song.id)!==-1){ - // return; - // } - // time= self.getSavedSongTime(); - // console.log('change',time) - // if(time>0){ - // self.songLoaded.push(song.id); - // Amplitude.skipTo(time,song.index); - // setTimeout(() => { - // self.songLoaded=self.songLoaded.splice(self.songLoaded.indexOf(song.id),1) - // }, 500); - // } - // }, + 'song_change':function(){ + if(localStorage && localStorage.playerVolume){ + volume=parseInt(localStorage.playerVolume) + Amplitude.setVolume(volume); + } + }, 'timeupdate':function(){ var secs=Math.floor(Amplitude.getSongPlayedSeconds());