Documentation ¶
Index ¶
- type Client
- func (c *Client) Enter(room string) (tp int, data [][]byte, err error)
- func (c *Client) GetPlayURL(room string, qn int) (*model.PlayURL, error)
- func (c *Client) GetRoomInfo(room string) (*model.RoomInfo, error)
- func (c *Client) Handle(tp int, data []byte) (msg []model.Msg, matched bool, err error)
- func (c *Client) HeartBeat() (tp int, data []byte, err error)
- func (c *Client) Host(room string) string
- func (c *Client) Plat() string
- func (c *Client) SendDanmaku(room string, content string, tp int, color int64) error
- func (c *Client) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct{}
func (*Client) GetPlayURL ¶
GetPlayURL get live stream info
func (*Client) GetRoomInfo ¶
GetRoomInfo get live room info
func (*Client) SendDanmaku ¶
SendDanmaku send danmaku
Click to show internal directories.
Click to hide internal directories.