bvc

package
v0.0.0-...-83adff0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(c *blademaster.ClientConfig, bvcHost string, mock string) *Client

func (*Client) GetPlayUrl

func (c *Client) GetPlayUrl(ctx *bm.Context, cid, quality, ptype, needHttps, unicomFree int64, platform string) (resp *respPlayUrl)

历史原因,单个的接口和视频云@yuanfeng确认数据结构不统一,后面统一,暂时先不用 @see http://live-hub.bilibili.co/doc/playurl/

func (*Client) GetPlayUrlMulti

func (c *Client) GetPlayUrlMulti(ctx context.Context, roomIds []int64,
	needHttps, quality, build int64, platform string) (result map[int64]*PlayUrlItem)

批量接口,一次最好20个

type PlayUrlItem

type PlayUrlItem struct {
	RoomId         int64             `json:"room_id"`
	CurrentQuality int64             `json:"current_quality"`
	AcceptQuality  []int64           `json:"accept_quality"`
	Url            map[string]string `json:"url"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL