m3u8

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 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 {
	// 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) FfmpegConcatFile added in v0.0.39

func (d *Downloader) FfmpegConcatFile() (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) SegLen

func (d *Downloader) SegLen() int

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