lrcplayer
v2.2.0
Published
A lrc audio subtitle player for web version.
Downloads
10
Readme
Js LrcMusicPlayer
A lrc audio subtitle player for web version.Perfectly implemented to avoid delays when the lyrics are too long.
You can go to https://ordylan.github.io/Js_LrcMusicPlayer/newtest.html and have a look.
And od-lrcplayer-main.js
is the core code.
If you have better methods or suggestions, please tell me!
Try load(lrcUrl, audioUrl)
or
fetch('list.json')//list
.then(response => response.json())
.then(data => {
for (let i = 0; i < data.length; i++) {
createPlaylistItem(
data[i].title,
data[i].lrc,
data[i].audio
);
}
})
.catch(error => console.error('Error fetching JSON:', error));
.