video

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2022 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (

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

Variables

This section is empty.

Functions

func DownloadAliyunVodEncryptVideo added in v0.8.1

func DownloadAliyunVodEncryptVideo(ctx context.Context,
	articleID int,
	currentProduct geektime.Product,
	projectDir string,
	quality string,
	concurrency int) error

DownloadAliyunVodEncryptVideo ...

func DownloadHLSStandardEncryptVideo added in v0.8.1

func DownloadHLSStandardEncryptVideo(ctx context.Context, m3u8url, title, projectDir string, size int64, concurrency int) (err error)

DownloadHLSStandardEncryptVideo ...

Types

type EncryptType added in v0.8.1

type EncryptType int

EncryptType enum

const (
	// AliyunVodEncrypt ...
	AliyunVodEncrypt EncryptType = iota
	// HLSStandardEncrypt ...
	HLSStandardEncrypt
)

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