新增HTTP开放API服务

This commit is contained in:
lyswhut
2024-03-29 14:43:32 +08:00
parent 1e03791e82
commit 9c0ae12959
35 changed files with 681 additions and 340 deletions
+5
View File
@@ -87,6 +87,7 @@ export const init = () => {
onPlay(line, text) {
setText(text, Math.max(line, 0))
setStatusText(text)
window.app_event.lyricLinePlay(text)
// console.log(line, text)
},
onSetLyric(lines, offset) { // listening lyrics seting event
@@ -185,6 +186,10 @@ export const setLyric = () => {
}
}
export const setAutoPause = (autoPause: boolean) => {
lrc.setAutoPause(autoPause)
}
export const play = () => {
// if (!musicInfo.lrc) return