Skip to content

ustbhuangyi/lyric-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lyric-parser

lyric-parser base on javascript

Install

 npm install lyric-parser

Usage

 import Lyric from 'lyric-parser'
 let lyric = new Lyric(lyricStr, handler)

 function hanlder({lineNum, txt}){
   // this hanlder called when lineNum change
 }

API

play()

play the lyric

stop()

stop play

seek(startTime)

seek to correspond starTime

togglePlay()

toggle play state

About

lyric-parser base on javascript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published