Documentation ¶
Index ¶
- Constants
- func DownloadArticleVideo(ctx context.Context, client *geektime.Client, articleID int, sourceType int, ...) error
- func DownloadEnterpriseArticleVideo(ctx context.Context, client *geektime.Client, articleID int, projectDir string, ...) error
- func DownloadMP4(ctx context.Context, title, projectDir string, mp4URLs []string, ...) (err error)
- func DownloadUniversityVideo(ctx context.Context, client *geektime.Client, articleID int, ...) error
- type EncryptType
- type GetPlayInfoResponse
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
Types ¶
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
Click to show internal directories.
Click to hide internal directories.