douyu

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDouyu

func NewDouyu() (model.Client, error)

Types

type Douyu

type Douyu struct {
	*abstract.Client
}

func (*Douyu) Enter

func (d *Douyu) Enter(room string) (int, [][]byte, error)

func (*Douyu) GetPlayURL

func (d *Douyu) GetPlayURL(room string, qn int) (*model.PlayURL, error)

GetPlayURL cdn: 主线路ws-h5、备用线路tct-h5pot rate: 1流畅;2高清;3超清;4蓝光4M;0蓝光8M或10M

func (*Douyu) GetRoomInfo

func (d *Douyu) GetRoomInfo(room string) (*model.RoomInfo, error)

GetRoomInfo 通过房间号获取房间信息

func (*Douyu) Handle

func (d *Douyu) Handle(tp int, data []byte) ([]model.Msg, bool, error)

func (*Douyu) HeartBeat

func (d *Douyu) HeartBeat() (int, []byte, error)

func (*Douyu) Host

func (d *Douyu) Host(room string) string

Host

func (*Douyu) Plat

func (d *Douyu) Plat() string

Plat

func (*Douyu) SendDanmaku

func (d *Douyu) SendDanmaku(room string, content string, tp int, color int64) error

func (*Douyu) Stop

func (d *Douyu) Stop()

Jump to

Keyboard shortcuts

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