修复歌词解析问题
parent
f1a7862a9c
commit
1f97af6ff1
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue