How to use lrc-file-parser - 1 common examples

To help you get started, we’ve selected a few lrc-file-parser examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github lyswhut / lx-music-desktop / src / renderer / components / core / Player.vue View on Github external
// this.status = '媒介资源元素突然为空,网络错误?'
      })

      this.audio.addEventListener('timeupdate', () => {
        this.nowPlayTime = this.audio.currentTime
      })

      this.audio.addEventListener('waiting', () => {
        // this.musicInfo.lyric.lrc.pause()
        // console.log('缓冲中...')
        this.stopPlay()
        this.startBuffering()
        this.status = '缓冲中...'
      })

      this.lyric.lrc = new Lyric({
        onPlay: (line, text) => {
          this.lyric.text = text
          this.lyric.line = line
          this.status = text
          // console.log(line, text)
        },
        offset: 150,
      })
    },
    play() {

lrc-file-parser

Javascript-based lrc file parser

MIT
Latest version published 2 years ago

Package Health Score

45 / 100
Full package analysis

Popular lrc-file-parser functions