lyric-parser解析歌词
安装npm install lyric-parser用法let lyric = new Lyric(lyricStr, handler)function hanlder({lineNum, txt}){// this hanlder called when lineNum change}API//播放歌词play()//暂停歌词stop()//歌词跳转seek(startTime)//切换播放/暂
·
安装
npm install lyric-parser
用法
let lyric = new Lyric(lyricStr, handler)
function hanlder({lineNum, txt}){
// this hanlder called when lineNum change
}
API
//播放歌词
play()
//暂停歌词
stop()
//歌词跳转
seek(startTime)
//切换播放/暂停状态
toggelePlay()
更多推荐
已为社区贡献1条内容
所有评论(0)