|
|
@ -953,21 +953,12 @@ div#large-visualization{
|
|
|
|
"autoplay": true,
|
|
|
|
"autoplay": true,
|
|
|
|
"volume":volume,
|
|
|
|
"volume":volume,
|
|
|
|
"callbacks": {
|
|
|
|
"callbacks": {
|
|
|
|
// 'song_change':function(){
|
|
|
|
'song_change':function(){
|
|
|
|
// song = Amplitude.getActiveSongMetadata();
|
|
|
|
if(localStorage && localStorage.playerVolume){
|
|
|
|
// if(self.songLoaded.indexOf(song.id)!==-1){
|
|
|
|
volume=parseInt(localStorage.playerVolume)
|
|
|
|
// return;
|
|
|
|
Amplitude.setVolume(volume);
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
// 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);
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
'timeupdate':function(){
|
|
|
|
'timeupdate':function(){
|
|
|
|
|
|
|
|
|
|
|
|
var secs=Math.floor(Amplitude.getSongPlayedSeconds());
|
|
|
|
var secs=Math.floor(Amplitude.getSongPlayedSeconds());
|
|
|
|