video

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (

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

Variables

This section is empty.

Functions

func DownloadArticleVideo added in v0.9.1

func DownloadArticleVideo(ctx context.Context,
	client *geektime.Client,
	articleID int,
	sourceType int,
	projectDir string,
	quality string,
	concurrency int,
) error

DownloadArticleVideo download normal video cource ... sourceType: normal video cource 1

func DownloadEnterpriseArticleVideo added in v0.11.1

func DownloadEnterpriseArticleVideo(ctx context.Context,
	client *geektime.Client,
	articleID int,
	projectDir string,
	quality string,
	concurrency int,
) error

DownloadEnterpriseArticleVideo download enterprise video

func DownloadMP4 added in v0.9.2

func DownloadMP4(ctx context.Context, title, projectDir string, mp4URLs []string, overwrite bool) (err error)

DownloadMP4 download MP4 resources in article

func DownloadUniversityVideo added in v0.9.1

func DownloadUniversityVideo(ctx context.Context,
	client *geektime.Client,
	articleID int,
	currentProduct geektime.Course,
	projectDir string,
	quality string,
	concurrency int) error

DownloadUniversityVideo ...

Types

type EncryptType added in v0.8.1

type EncryptType int

EncryptType enum

type GetPlayInfoResponse added in v0.8.1

type GetPlayInfoResponse struct {
	RequestID    string                        `json:"RequestId" xml:"RequestId"`
	VideoBase    vod.VideoBase                 `json:"VideoBase" xml:"VideoBase"`
	PlayInfoList vod.PlayInfoListInGetPlayInfo `json:"PlayInfoList" xml:"PlayInfoList"`
}

GetPlayInfoResponse is the response struct for api GetPlayInfo

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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