fix vid lyrics
This commit is contained in:
parent
9b308c96f6
commit
0aac969346
1 changed files with 3 additions and 3 deletions
|
@ -290,11 +290,11 @@ const app = new Vue({
|
|||
MusicKit.getInstance().videoContainerElement = document.getElementById("apple-music-video-player")
|
||||
|
||||
|
||||
document.getElementById("apple-music-video-player").addEventListener('timeupdate', function () {
|
||||
self.lyriccurrenttime = this.currentTime;
|
||||
})
|
||||
|
||||
this.mk.addEventListener(MusicKit.Events.playbackTimeDidChange, (a) => {
|
||||
if (self.mk.nowPlayingItem && self.mk.nowPlayingItem.playParams.kind.includes('ideo')){
|
||||
self.lyriccurrenttime = (self.mk.currentPlaybackTime)
|
||||
}
|
||||
this.currentSongInfo = a
|
||||
self.playerLCD.playbackDuration = (self.mk.currentPlaybackTime)
|
||||
if (!self.playerReady) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue