feat: starting autoplay

This commit is contained in:
Mat12143 2025-08-02 06:07:14 +02:00
parent 9faba7dbd3
commit 2b94bfddfb
3 changed files with 27 additions and 3 deletions

View file

@ -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"]
}