优化歌词播放机制
parent
8453ad0fb4
commit
64eea42092
|
@ -221,7 +221,9 @@ export default {
|
||||||
this.setLyric()
|
this.setLyric()
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.lyric.line = data.line
|
this.lyric.line = data.line
|
||||||
rendererSend(NAMES.winLyric.get_lyric_info, 'status')
|
setTimeout(() => {
|
||||||
|
rendererSend(NAMES.winLyric.get_lyric_info, 'status')
|
||||||
|
})
|
||||||
})
|
})
|
||||||
case 'music_info':
|
case 'music_info':
|
||||||
this.musicInfo.name = data.name
|
this.musicInfo.name = data.name
|
||||||
|
|
|
@ -44,9 +44,11 @@ export default ({ setting }) => {
|
||||||
setDesktopLyricInfo('lyric', { lrc: musicInfo.lrc, tlrc: musicInfo.tlrc, lxlrc: musicInfo.lxlrc })
|
setDesktopLyricInfo('lyric', { lrc: musicInfo.lrc, tlrc: musicInfo.tlrc, lxlrc: musicInfo.lxlrc })
|
||||||
|
|
||||||
if (isPlay.value && (musicInfo.url || playMusicInfo.listId == 'download')) {
|
if (isPlay.value && (musicInfo.url || playMusicInfo.listId == 'download')) {
|
||||||
const time = getCurrentTime() * 1000
|
setTimeout(() => {
|
||||||
setDesktopLyricInfo('play', time)
|
const time = getCurrentTime() * 1000
|
||||||
lrc.play(time)
|
setDesktopLyricInfo('play', time)
|
||||||
|
lrc.play(time)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue