Documentation ¶
Overview ¶
Package hls provides functions to download HLS streams.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrHLSForbidden is returned when the HLS download is stopped with a forbidden error. ErrHLSForbidden = errors.New("hls download stopped with forbidden error") )
Functions ¶
This section is empty.
Types ¶
type Downloader ¶
Downloader is used to download HLS streams.
func NewDownloader ¶
func NewDownloader( client *http.Client, log *zerolog.Logger, packetLossMax int, url string, ) *Downloader
NewDownloader creates a new HLS downloader.
func (*Downloader) GetFragmentURLs ¶
func (hls *Downloader) GetFragmentURLs(ctx context.Context) ([]string, error)
GetFragmentURLs fetches the fragment URLs from the HLS manifest.
Click to show internal directories.
Click to hide internal directories.