remove timeupdate event
This commit is contained in:
parent
4d8ae18ce4
commit
4a917c27b2
1 changed files with 1 additions and 12 deletions
|
@ -336,20 +336,9 @@ const app = new Vue({
|
||||||
|
|
||||||
|
|
||||||
this.mk.addEventListener(MusicKit.Events.playbackTimeDidChange, (a) => {
|
this.mk.addEventListener(MusicKit.Events.playbackTimeDidChange, (a) => {
|
||||||
if (self.mk.nowPlayingItem && self.mk.nowPlayingItem.playParams.kind.includes('ideo')) {
|
self.lyriccurrenttime = self.mk.currentPlaybackTime
|
||||||
self.lyriccurrenttime = (self.mk.currentPlaybackTime)
|
|
||||||
}
|
|
||||||
this.currentSongInfo = a
|
this.currentSongInfo = a
|
||||||
self.playerLCD.playbackDuration = (self.mk.currentPlaybackTime)
|
self.playerLCD.playbackDuration = (self.mk.currentPlaybackTime)
|
||||||
if (!self.playerReady) {
|
|
||||||
if (document.getElementById("apple-music-player")) {
|
|
||||||
self.playerReady = true;
|
|
||||||
document.getElementById("apple-music-player").addEventListener('timeupdate', function () {
|
|
||||||
self.lyriccurrenttime = self.mk.currentPlaybackTime
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// animated dot like AM - bad perf
|
|
||||||
})
|
})
|
||||||
|
|
||||||
this.mk.addEventListener(MusicKit.Events.nowPlayingItemDidChange, (a) => {
|
this.mk.addEventListener(MusicKit.Events.nowPlayingItemDidChange, (a) => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue