为了确保您的开发体验,建议您使用Apifox浏览器插件或客户端进行调试。
player 字段固定为对应播放器名。duration - 歌曲总时长(秒)play_time - 发送时的当前播放时间(秒),用于前端插值计时的初始锚点count - 歌词行数lyrics - 按 index 排序的歌词数组curl --location 'localhost:8765//all_lyrics'{
"code": 0,
"msg": "success",
"player": "wesing",
"data": {
"title": "告白 - 花澤香菜",
"duration": 236,
"play_time": 1.2,
"progress": 0.0051,
"count": 12,
"lyrics": [
{
"index": 0,
"timestamp": 0.5,
"text": "いつもそばにいるのに",
"sub_text": ""
},
{
"index": 1,
"timestamp": 2.1,
"text": "ふと気付くと遠すぎて",
"sub_text": ""
},
{
"index": 2,
"timestamp": 3.8,
"text": "手を伸ばしても届かない",
"sub_text": ""
},
{
"index": 3,
"timestamp": 5.5,
"text": "深い森の奥へ迷い込む",
"sub_text": ""
},
{
"index": 4,
"timestamp": 7.2,
"text": "君に逢いたい",
"sub_text": ""
},
{
"index": 5,
"timestamp": 9,
"text": "君に嘘をついていた",
"sub_text": ""
},
{
"index": 6,
"timestamp": 11.2,
"text": "心は静かに落ち着かず",
"sub_text": ""
},
{
"index": 7,
"timestamp": 13.5,
"text": "何もかもが手から零れ落ちる",
"sub_text": ""
},
{
"index": 8,
"timestamp": 15.8,
"text": "ずっと歩いてくよ",
"sub_text": ""
},
{
"index": 9,
"timestamp": 18.2,
"text": "迷えるまま",
"sub_text": ""
},
{
"index": 10,
"timestamp": 20.5,
"text": "君を探す",
"sub_text": ""
},
{
"index": 11,
"timestamp": 22.8,
"text": "その先へ",
"sub_text": ""
}
]
}
}