0.0.6 • Published 3 years ago

lrchelper v0.0.6

Weekly downloads
-
License
Sudayn
Repository
-
Last release
3 years ago

LrcHelper

Example

import { LRCHelper } from 'lrchelper';
const player = document.getElementById("player") // <audio> or <video>
const lyrics = "<LRC strings>"
const lrcHelper = new LRCHelper(player, lyrics)
const lyricsArray = lplayer.lyricsLists // get lines of lyrics 
const l1 = lplayer.addUpdateListener(data => { 
    const index = data.index  // index of line
    const line = data.lyricString // lyrics line
    const timeMs = timeMs // lyrics line in ms
    const timeString = timeString // lyrics time in string
})
0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago