summaryrefslogtreecommitdiff
path: root/bilibili/play_url.go
blob: 3f3827280533a33b2a5bd3a77402ce6b995ce227 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
package bilibili

import (
	"fmt"
	"github.com/keuin/slbr/types"
)

func (b *Bilibili) GetStreamingInfo(roomId types.RoomId) (resp types.RoomUrlInfoResponse, err error) {
	url := fmt.Sprintf("https://api.live.bilibili.com/room/v1/Room/playUrl?"+
		"cid=%d&otype=json&qn=10000&platform=web", roomId)
	return callGet[types.RoomUrlInfoResponse](b, url)
}