Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrRoomNotExist = errors.New("room not exists") ErrRoomUrlIncorrect = errors.New("room url incorrect") ErrInternalError = errors.New("internal error") ErrNotImplemented = errors.New("not implemented") )
View Source
var CommonUserAgent = requests.UserAgent(userAgent)
Functions ¶
Types ¶
type Info ¶
type Info struct { Live Live HostName, RoomName string Status bool // means isLiving, maybe better to rename it Listening, Recording bool Initializing bool CustomLiveId string AudioOnly bool }
func (*Info) MarshalJSON ¶
type InitializingFinishedParam ¶ added in v0.7.11
type InitializingLiveBuilder ¶ added in v0.7.11
var (
InitializingLiveBuilderInstance InitializingLiveBuilder
)
type Live ¶
type Live interface { SetLiveIdByString(string) GetLiveId() ID GetRawUrl() string GetInfo() (*Info, error) // Deprecated: GetStreamUrls is deprecated, using GetStreamInfos instead GetStreamUrls() ([]*url.URL, error) GetStreamInfos() ([]*StreamUrlInfo, error) GetPlatformCNName() string GetLastStartTime() time.Time SetLastStartTime(time.Time) }
type Option ¶ added in v0.6.4
type Option func(*Options)
func WithAudioOnly ¶ added in v0.7.25
func WithKVStringCookies ¶ added in v0.6.4
func WithQuality ¶ added in v0.7.9
type Options ¶ added in v0.6.4
func MustNewOptions ¶ added in v0.6.4
func NewOptions ¶ added in v0.6.4
type StreamUrlInfo ¶ added in v0.7.17
type WrappedLive ¶ added in v0.7.11
type WrappedLive struct { Live // contains filtered or unexported fields }
func (*WrappedLive) GetInfo ¶ added in v0.7.11
func (w *WrappedLive) GetInfo() (*Info, error)
Click to show internal directories.
Click to hide internal directories.