0.0.6 • Published 4 years ago

lrchelper v0.0.6

Weekly downloads
-
License
Sudayn
Repository
-
Last release
4 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

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago