mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/lyswhut/lx-music-desktop.git
synced 2026-09-20 08:04:00 +08:00
修复歌词解析问题
This commit is contained in:
@@ -28,7 +28,7 @@ export default ({ setting }) => {
|
||||
})
|
||||
|
||||
const getCurrentTime = () => {
|
||||
return getPlayerCurrentTime() * 1000 + lyric.offset
|
||||
return getPlayerCurrentTime() * 1000 + lyric.tempOffset
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -97,7 +97,7 @@ module.exports = class Lyric {
|
||||
this.onPlay(num, this._lines[num].text)
|
||||
}
|
||||
|
||||
_handleLinePlayerOnSetLyric = lyricLines => {
|
||||
_handleLinePlayerOnSetLyric = (lyricLines, offset) => {
|
||||
// console.log(lyricLines)
|
||||
// this._lines = lyricsLines
|
||||
this.isLineMode = lyricLines.length && !/^<\d+,\d+>/.test(lyricLines[0].text)
|
||||
@@ -148,7 +148,7 @@ module.exports = class Lyric {
|
||||
})
|
||||
}
|
||||
|
||||
this.onSetLyric(this._lines)
|
||||
this.onSetLyric(this._lines, offset)
|
||||
}
|
||||
|
||||
play(curTime) {
|
||||
|
||||
Reference in New Issue
Block a user