m3u8

package
v1.4.5 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Downloader

type Downloader struct {
	FilePath string

	SegLen int
	// contains filtered or unexported fields
}

func NewTask

func NewTask(filePath, tsFolder string, url string) (*Downloader, error)

NewTask returns a Task instance

func (*Downloader) Download

func (d *Downloader) Download() error

single thread downloader

func (*Downloader) Downloadts

func (d *Downloader) Downloadts(segIndex int) error

func (*Downloader) FfmpegFiles

func (d *Downloader) FfmpegFiles() (string, error)

func (*Downloader) Finished

func (d *Downloader) Finished() bool

func (*Downloader) Merge

func (d *Downloader) Merge() error

func (*Downloader) RemoveTmp

func (d *Downloader) RemoveTmp() error

func (*Downloader) Start

func (d *Downloader) Start(concurrency int) error

Start runs downloader

type Result

type Result struct {
	URL  *url.URL
	M3u8 *em3u8.M3u8
	Keys map[int]string
}

func FromURL

func FromURL(link string) (*Result, error)

func (*Result) Download

func (r *Result) Download(segIndex int) ([]byte, error)

Jump to

Keyboard shortcuts

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