PipLyric
Today's Installations
0
Total Installations
2,175
Creation Date
2023-11-07T15:14:30+00:00
Update Date
2023-11-10T15:25:53+00:00
User Rating
No Rating
// @require https://scriptcat.org/lib/1359/1.1.1/PipLyric.js
v1.1.1@require库

画中画歌词

if (window.PipLyric && window.PipLyric.support) {
var options = {
audio: document.querySelector("audio"), // 可选,audio对象,默认值 无
pip: "aplayer-icon-pip", // 可选,显示/隐藏 画中画按钮,[className, idName, element],默认值 无
parent: "aplayer", // 可选,父节点,[className, idName, element],默认值 document.body
play: "aplayer-play", // 可选,播放按钮,[className, idName, element],默认值 无
pause: "aplayer-pause", // 可选,暂停按钮,[className, idName, element],默认值 无
prev: "aplayer-icon-back", // 可选,上一首按钮,[className, idName, element],默认值 无
next: "aplayer-icon-forward", // 可选,下一首按钮,[className, idName, element],默认值 无
};
var pipLyric = new window.PipLyric(options);
// 音频开始或切换音频后调用
pipLyric.setData({
id: 1234567890,
name: "* 88 测试 88 *",
artists: [
{
name: "---"
},
{
name: "CCC"
},
{
name: "---"
}
],
album: {
picUrl: "",
},
lrc: {
lyric: "[00:00.00]作曲 : 无\r\n[00:05.00]作词 : 无\r\n[00:10.00]演唱 : 无\r\n[00:15.00]A呀\r\n[00:20.00]B呀\r\n[00:25.00]C呀\r\n[00:30.00]D呀\r\n[00:35.00]E呀\r\n[00:40.00]好棒棒呀"
},
tlyric: {
lyric: ""
}
});
}

Script Score
empty image
No one has rated the script yet. Be the first to rate it!