Documentation ¶
Index ¶
- Constants
- func Aliyun(output, saveFilename string, chanSize int, playAuth string, ...) error
- func Bytedance(output, saveFilename string, chanSize int, playAuthToken string) error
- type Downloader
- type DownloaderOption
- func WithDecryptFunc(decryptFunc decryptFunc) DownloaderOption
- func WithFilename(filename string) DownloaderOption
- func WithKey(key string) DownloaderOption
- func WithLoadKeyFunc(loadKeyFunc parse.LoadKeyFunc) DownloaderOption
- func WithM3u8Content(m3u8Content string) DownloaderOption
- func WithMergeTsType(mergeTsType MergeTsType) DownloaderOption
- func WithMp4(mp4 bool) DownloaderOption
- func WithOutput(output string) DownloaderOption
- func WithUrl(url string) DownloaderOption
- type MergeTsType
Constants ¶
View Source
const ( AliyunVoDEncryption = "AliyunVoDEncryption" AliyunHLSEncryption = "HLSEncryption" )
Variables ¶
This section is empty.
Functions ¶
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)
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 )
Click to show internal directories.
Click to hide internal directories.