video

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// TSExtension ...
	TSExtension = ".ts"
)

Variables

View Source
var (
	// ErrUnexpectedM3U8Format ...
	ErrUnexpectedM3U8Format = errors.New("unexpected m3u8 response format")
	// ErrUnexpectedDecryptKeyResponse ...
	ErrUnexpectedDecryptKeyResponse = errors.New("unexpected decrypt key response")
)

Functions

func DownloadVideo

func DownloadVideo(ctx context.Context, m3u8url, title, projectDir string, size int64, concurrency int) (err error)

DownloadVideo ...

Types

type ByNumericalFilename added in v0.5.1

type ByNumericalFilename []os.FileInfo

ByNumericalFilename implement sort interface, order by file name suffix number

func (ByNumericalFilename) Len added in v0.5.1

func (nf ByNumericalFilename) Len() int

func (ByNumericalFilename) Less added in v0.5.1

func (nf ByNumericalFilename) Less(i, j int) bool

func (ByNumericalFilename) Swap added in v0.5.1

func (nf ByNumericalFilename) Swap(i, j int)

Jump to

Keyboard shortcuts

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