bilibili_live_m3u8

package module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2022 License: GPL-3.0 Imports: 13 Imported by: 0

README

bilibili-live-m3u8

哔哩哔哩直播 m3u8 直播流下载器

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Room

type Room struct {
	RoomId   int64
	RealId   int64
	LiveTime int64
	StopFlag bool
	Title    string
	Uname    string
	Cover    string
	M3u8Url  string
	LastTs   int64

	RecordLen  int64
	RecordTime float32

	BytesChan chan []byte

	StopFuncs []func(r *Room) bool
	// contains filtered or unexported fields
}

func NewRoom

func NewRoom(roomId int64) *Room

func NewRoomWithBytesChan added in v0.1.1

func NewRoomWithBytesChan(roomId int64) *Room

func (*Room) Listen

func (r *Room) Listen()

func (*Room) SetFileIO

func (r *Room) SetFileIO(file *os.File)

func (*Room) SetStopFunc

func (r *Room) SetStopFunc(fs ...func(r *Room) bool)

func (*Room) WithBytesChan

func (r *Room) WithBytesChan(withoutFile bool)

Directories

Path Synopsis
Package parse Partial reference https://github.com/grafov/m3u8/blob/master/reader.go
Package parse Partial reference https://github.com/grafov/m3u8/blob/master/reader.go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL