Documentation ¶
Index ¶
- type Downloader
- func (d *Downloader) Download() error
- func (d *Downloader) Downloadts(segIndex int) error
- func (d *Downloader) FfmpegConcatFile() (string, error)
- func (d *Downloader) Finished() bool
- func (d *Downloader) Merge() error
- func (d *Downloader) RemoveTmp() error
- func (d *Downloader) SegLen() int
- func (d *Downloader) Start(concurrency int) error
- type Result
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) 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
Click to show internal directories.
Click to hide internal directories.