feat: starting autoplay
This commit is contained in:
parent
9faba7dbd3
commit
2b94bfddfb
3 changed files with 27 additions and 3 deletions
|
@ -65,3 +65,11 @@ export const triggerPlayNext = async function (roomId: string): Promise<[FetchEr
|
|||
})
|
||||
return [null, songs, json["index"]]
|
||||
}
|
||||
|
||||
export const getStreamingUrl = async function (uuid: string) {
|
||||
let resp = await fetch("/api/song/audio?song=" + uuid)
|
||||
|
||||
let json = await resp.json()
|
||||
|
||||
return json["url"]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue