web remote loads and connects but is non functional

This commit is contained in:
booploops 2022-01-17 22:12:23 -08:00
parent 904dc87728
commit fcaa891648
7 changed files with 407 additions and 1 deletions

View file

@ -610,10 +610,16 @@ const app = new Vue({
}
})
this.mk.addEventListener(MusicKit.Events.playbackStateDidChange, ()=>{
ipcRenderer.send('wsapi-updatePlaybackState', wsapi.getAttributes());
})
this.mk.addEventListener(MusicKit.Events.playbackTimeDidChange, (a) => {
self.lyriccurrenttime = self.mk.currentPlaybackTime
this.currentSongInfo = a
self.playerLCD.playbackDuration = (self.mk.currentPlaybackTime)
// wsapi
ipcRenderer.send('wsapi-updatePlaybackState', wsapi.getAttributes());
})
this.mk.addEventListener(MusicKit.Events.nowPlayingItemDidChange, (a) => {