Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Room ¶
type Room struct {
Id string
DouyinId string
StatusCode RoomStatus
Name string
CoverUrl string
WebUrl string
CurrentUsersCount string
TotalUsersCount string
Category *Category
User User
StreamUrl string
FlvStreamUrls map[string]string
HlsStreamUrls map[string]string
}
func GetRoomsByCategory ¶
GetRoomsByCategory gets top 15 Douyin live stream rooms of a category.
func (Room) FlvUrlForQuality ¶ added in v1.2.1
FlvUrlForQuality returns the .flv stream URL for the given quality (uhd, hd, ld, sd). If no matching URL is found, it returns the room's default StreamUrl.
func (Room) HlsUrlForQuality ¶ added in v1.2.1
HlsUrlForQuality returns the .m3u8 stream URL for the given quality (uhd, hd, ld, sd). If no matching URL is found, it returns the room's default StreamUrl.
type RoomStatus ¶ added in v1.2.1
type RoomStatus = int
const ( RoomStatusLiveOn RoomStatus = 2 + iota RoomStatusLiveOff )
Click to show internal directories.
Click to hide internal directories.