Documentation ¶
Index ¶
- func NewDouyu() (model.Client, error)
- type Douyu
- func (d *Douyu) Enter(room string) (int, [][]byte, error)
- func (d *Douyu) GetPlayURL(room string, qn int) (*model.PlayURL, error)
- func (d *Douyu) GetRoomInfo(room string) (*model.RoomInfo, error)
- func (d *Douyu) Handle(tp int, data []byte) ([]model.Msg, bool, error)
- func (d *Douyu) HeartBeat() (int, []byte, error)
- func (d *Douyu) Host(room string) string
- func (d *Douyu) Plat() string
- func (d *Douyu) SendDanmaku(room string, content string, tp int, color int64) error
- func (d *Douyu) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Douyu ¶
func (*Douyu) GetPlayURL ¶
GetPlayURL cdn: 主线路ws-h5、备用线路tct-h5pot rate: 1流畅;2高清;3超清;4蓝光4M;0蓝光8M或10M
func (*Douyu) GetRoomInfo ¶
GetRoomInfo 通过房间号获取房间信息
func (*Douyu) SendDanmaku ¶
Click to show internal directories.
Click to hide internal directories.