Closed swotai closed 2 years ago
Please update to 2.0.0. You can write your code as:
const lyrics = new RabbitLyrics( document.getElementById('lyrics-1'), document.getElementById('audio-1'), { viewMode: "mini", alignment: "center" } );
const updatePlayer = (lrc) => { lyrics.setLyrics(lrc); };
Switching UI to react. Not going to do this.
Please update to 2.0.0. You can write your code as:
const lyrics = new RabbitLyrics( document.getElementById('lyrics-1'), document.getElementById('audio-1'), { viewMode: "mini", alignment: "center" } );
const updatePlayer = (lrc) => { lyrics.setLyrics(lrc); };