download

package
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2023 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AliyunVoDEncryption = "AliyunVoDEncryption"
	AliyunHLSEncryption = "HLSEncryption"
)

Variables

This section is empty.

Functions

func Aliyun added in v1.0.6

func Aliyun(output, saveFilename string, chanSize int, playAuth string, parseOpts ...aliyun.OptionFunc) error

func Bytedance added in v1.0.6

func Bytedance(output, saveFilename string, chanSize int, playAuthToken string) error

Types

type Downloader

type Downloader struct {
	// contains filtered or unexported fields
}

func NewDownloader added in v1.0.4

func NewDownloader(opts ...DownloaderOption) (*Downloader, error)

NewDownloader returns a Task instance

func (*Downloader) SetDecryptFunc added in v1.0.12

func (d *Downloader) SetDecryptFunc(decryptFunc decryptFunc)

func (*Downloader) Start

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

Start runs downloader

type DownloaderOption added in v1.0.4

type DownloaderOption func(*Downloader)

func WithDecryptFunc added in v1.0.11

func WithDecryptFunc(decryptFunc decryptFunc) DownloaderOption

func WithFilename added in v1.0.4

func WithFilename(filename string) DownloaderOption

func WithKey added in v1.0.6

func WithKey(key string) DownloaderOption

func WithLoadKeyFunc added in v1.0.7

func WithLoadKeyFunc(loadKeyFunc parse.LoadKeyFunc) DownloaderOption

func WithM3u8Content added in v1.0.8

func WithM3u8Content(m3u8Content string) DownloaderOption

func WithMergeTsType added in v1.0.11

func WithMergeTsType(mergeTsType MergeTsType) DownloaderOption

func WithMp4 added in v1.0.6

func WithMp4(mp4 bool) DownloaderOption

func WithOutput added in v1.0.4

func WithOutput(output string) DownloaderOption

func WithUrl added in v1.0.9

func WithUrl(url string) DownloaderOption

type MergeTsType added in v1.0.11

type MergeTsType int
const (
	Golang MergeTsType = iota
	Ffmpeg
	GoMedia
)

Jump to

Keyboard shortcuts

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