Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultCookiePath = "cookie.json"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Live ¶
type Live struct { Client *websocket.Client ResourceAPI *resource.API RoomID int RoomInfo *resource.RoomInfo UserInfo *resource.UserInfo FollowerInfo *resource.FollowerInfo }
Live 使用 NewLive() 来初始化
func (*Live) GetStreamURL ¶ added in v0.4.3
func (*Live) RefreshRoom ¶
func (*Live) RegisterHandlers ¶
RegisterHandlers 注册不同的事件处理 handler类型需要是定义在 websocket/handler_registration.go 中的类型,如: - websocket.DanmakuHandler - websocket.GiftHandler - websocket.GuardHandler
Click to show internal directories.
Click to hide internal directories.