优化歌词播放机制
This commit is contained in:
@@ -44,9 +44,11 @@ export default ({ setting }) => {
|
||||
setDesktopLyricInfo('lyric', { lrc: musicInfo.lrc, tlrc: musicInfo.tlrc, lxlrc: musicInfo.lxlrc })
|
||||
|
||||
if (isPlay.value && (musicInfo.url || playMusicInfo.listId == 'download')) {
|
||||
const time = getCurrentTime() * 1000
|
||||
setDesktopLyricInfo('play', time)
|
||||
lrc.play(time)
|
||||
setTimeout(() => {
|
||||
const time = getCurrentTime() * 1000
|
||||
setDesktopLyricInfo('play', time)
|
||||
lrc.play(time)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user