vod

package
v0.0.0-...-6d4355a Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VODDefaultEndpoint = "https://vod.api.qcloud.com/v2/index.php"
	VODAPIVersion      = "2017-03-12"
)
View Source
const DefaultTimeout = 60

Default timeout value for WaitForXXX method

View Source
const DefaultWaitForInterval = 5

Interval for checking status in WaitForXXX method

Variables

This section is empty.

Functions

This section is empty.

Types

type AddKeyFrameDescArgs

type AddKeyFrameDescArgs struct {
	FileId       string          `qcloud_arg:"fileId"`
	KeyFrameDesc *[]KeyFrameDesc `qcloud_arg:"keyFrameDesc"`
}

增加打点信息 https://cloud.tencent.com/document/product/266/14190

type AddKeyFrameDescResponse

type AddKeyFrameDescResponse struct {
	CodeMessage
}

type AnimatedGraphicsInfo

type AnimatedGraphicsInfo struct {
	AnimatedGraphicsList *[]struct {
		Url        string `json:"url"`
		Definition int    `json:"definition"`
		Container  string `json:"container"`
		Height     int    `json:"height"`
		Width      int    `json:"width"`
		Bitrate    int    `json:"bitrate"`
		Size       int32  `json:"size"`
		Md5        string `json:"md5"`
		StartTime  int32  `json:"startTime"`
		EndTime    int32  `json:"endTime"`
	} `json:"animatedGraphicsList"`
}

type AnimatedGraphicsSet

type AnimatedGraphicsSet struct {
	Definition int `qcloud_arg:"definition"`
}

type ApplyUploadArgs

type ApplyUploadArgs struct {
	VideoType string `qcloud_arg:"videoType"`
	VideoName string `qcloud_arg:"videoName"`
	VideoSize int64  `qcloud_arg:"videoSize"`
	CoverType string `qcloud_arg:"coverType"`
	CoverName string `qcloud_arg:"coverName"`
	CoverSize int64  `qcloud_arg:"voverSize"`
	Procedure string `qcloud_arg:"procedure"`
}

发起视频上传 https://cloud.tencent.com/document/product/266/9756

type ApplyUploadResponse

type ApplyUploadResponse struct {
	CodeMessage
	CodeDesc        string `json:"codeDesc"`
	Video           Video  `json:"video"`
	Cover           Cover  `json:"cover"`
	StorageBucket   string `json:"storageBucket"`
	StorageRegion   string `json:"storageRegion"`
	StorageRegionV5 string `json:"storageRegionV5"`
	StorageAppId    int    `json:"storageAppId"`
	VodSessionKey   string `json:"vodSessionKey"`
}

type ApplyUploadWatermarkArgs

type ApplyUploadWatermarkArgs struct {
	Type string `qcloud_arg:"type"`
}

申请上传水印文件 https://cloud.tencent.com/document/product/266/11607

type ApplyUploadWatermarkResponse

type ApplyUploadWatermarkResponse struct {
	CodeMessage
	UploadUrl string `json:"uploadUrl"`
}

type AudioSet

type AudioSet struct {
	Codec       string `qcloud_arg:"codec"`
	Bitrate     int    `qcloud_arg:"bitrate"`     //音频流的码率,大于等于26,小于等于256,单位:kbps。
	SampleRate  int    `qcloud_arg:"sampleRate"`  //音频流的采样率,可填 44100,48000 两个值,单位:Hz。以上参数必选
	SoundSystem int    `qcloud_arg:"soundSystem"` //音频通道方式,可填 1:双通道,2:双通道。默认为双通道。
}

type AudioStream

type AudioStream struct {
	Bitrate      int    `json:"bitrate"`
	SamplingRate int    `json:"samplingRate"`
	Codec        string `json:"codec"`
}

type BasicInfo

type BasicInfo struct {
	Name               string `json:"name"`
	Size               int32  `json:"size"`
	Duration           int    `json:"duration"`
	Description        string `json:"description"`
	Status             string `json:"status"`
	CreateTime         int    `json:"createTime"`
	UpdateTime         int    `json:"updateTime"`
	ExpireTime         int    `json:"expireTime"`
	ClassificationId   int    `json:"classificationId"`
	ClassificationName string `json:"classificationName"`
	Playerld           int32  `json:"playerld"`
	CoverUrl           string `json:"coverUrl"`
	Type               string `json:"type"`
	SourceVideoUrl     string `json:"sourceVideoUrl"`
}

type ClassInfo

type ClassInfo struct {
	Id       int    `json:"id"`
	ParentId int    `json:"parent_id"`
	Name     string `json:"name"`
	Level    int    `json:"level"`
	FileNum  int    `json:"file_num"`
}

type ClassList

type ClassList struct {
	Info         ClassInfo    `json:"info"`
	SubClassList *[]ClassList `json:"subclass"`
}

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(secretId, secretKey, region string) *Client

NewClient creates a new instance of CVM client

func NewClientWithEndpoint

func NewClientWithEndpoint(endpoint, secretId, secretKey, region string) *Client

func (*Client) AddKeyFrameDesc

func (client *Client) AddKeyFrameDesc(args AddKeyFrameDescArgs) (*AddKeyFrameDescResponse, error)

func (*Client) ApplyUpload

func (client *Client) ApplyUpload(args ApplyUploadArgs) (*ApplyUploadResponse, error)

func (*Client) ApplyUploadWatermark

func (client *Client) ApplyUploadWatermark(picType string) (*ApplyUploadWatermarkResponse, error)

func (*Client) ClipVideo

func (client *Client) ClipVideo(args ClipVideoArgs) (*ClipVideoResponse, error)

func (*Client) CommitUpload

func (client *Client) CommitUpload(args CommitUploadArgs) (*CommitUploadResponse, error)

func (*Client) ConcatVideo

func (client *Client) ConcatVideo(args ConcatVideoArgs) (*ConcatVideoResponse, error)

func (*Client) ConfirmEvent

func (client *Client) ConfirmEvent(args ConfirmEventArgs) (*ConfirmEventResponse, error)

func (*Client) ConvertVodFile

func (client *Client) ConvertVodFile(args ConvertVodFileArgs) (*ConvertVodFileResponse, error)

func (*Client) CreateClass

func (client *Client) CreateClass(args CreateClassArgs) (*CreateClassResponse, error)

func (*Client) CreateImageSprite

func (client *Client) CreateImageSprite(args CreateImageSpriteArgs) (*CreateImageSpriteResponse, error)

func (*Client) CreateSnapshotByTimeOffset

func (client *Client) CreateSnapshotByTimeOffset(args CreateSnapshotByTimeOffsetArgs) (*CreateSnapshotByTimeOffsetResponse, error)

func (*Client) CreateTranscodeTemplate

func (client *Client) CreateTranscodeTemplate(args CreateTranscodeTemplateArgs) (*CreateTranscodeTemplateResponse, error)

func (*Client) CreateVodTags

func (client *Client) CreateVodTags(args CreateVodTagsArgs) (*CreateVodTagsResponse, error)

func (*Client) CreateWatermarkTemplate

func (client *Client) CreateWatermarkTemplate(args CreateWatermarkTemplateArgs) (*CreateWatermarkTemplateResponse, error)

func (*Client) DeleteClass

func (client *Client) DeleteClass(classId int) (*DeleteClassResponse, error)

func (*Client) DeleteKeyFrameDesc

func (client *Client) DeleteKeyFrameDesc(args DeleteKeyFrameDescArgs) (*DeleteKeyFrameDescResponse, error)

func (*Client) DeleteTranscodeTemplate

func (client *Client) DeleteTranscodeTemplate(definition int) (*DeleteTranscodeTemplateResponse, error)

func (*Client) DeleteVodFile

func (client *Client) DeleteVodFile(args DeleteVodFileArgs) (*DeleteVodFileResponse, error)

func (*Client) DeleteVodTags

func (client *Client) DeleteVodTags(args DeleteVodTagsArgs) (*DeleteVodTagsResponse, error)

func (*Client) DeleteWatermarkTemplate

func (client *Client) DeleteWatermarkTemplate(definition int) (*DeleteWatermarkTemplateResponse, error)

func (*Client) DescribeAllClass

func (client *Client) DescribeAllClass() (*DescribeAllClassResponse, error)

func (*Client) DescribeClass

func (client *Client) DescribeClass() (*DescribeClassResponse, error)

func (*Client) DescribeDrmDataKey

func (client *Client) DescribeDrmDataKey(args DescribeDrmDataKeyArgs) (*DescribeDrmDataKeyResponse, error)

func (*Client) DescribeRecordPlayInfo

func (client *Client) DescribeRecordPlayInfo(vid string) (*DescribeRecordPlayInfoResponse, error)

func (*Client) DescribeVodPlayInfo

func (client *Client) DescribeVodPlayInfo(args DescribeVodPlayInfoArgs) (*DescribeVodPlayInfoResponse, error)

func (*Client) GetTaskInfo

func (client *Client) GetTaskInfo(args string) (*GetTaskInfoResponse, error)

func (*Client) GetTaskList

func (client *Client) GetTaskList(args GetTaskListArgs) (*GetTaskListResponse, error)

func (*Client) GetVideoInfo

func (client *Client) GetVideoInfo(args GetVideoInfoArgs) (*GetVideoInfoResponse, error)

func (*Client) ModifyVodInfo

func (client *Client) ModifyVodInfo(args ModifyVodInfoArgs) (*ModifyVodInfoResponse, error)

func (*Client) MultiPullVodFile

func (client *Client) MultiPullVodFile(args MultiPullVodFileArgs) (*MultiPullVodFileResponse, error)

func (*Client) ProcessFile

func (client *Client) ProcessFile(args ProcessFileArgs) (*ProcessFileResponse, error)

func (*Client) PullEvent

func (client *Client) PullEvent() (*PullEventResponse, error)

func (*Client) QueryTranscodeTemplate

func (client *Client) QueryTranscodeTemplate(definition int) (*QueryTranscodeTemplateResponse, error)

func (*Client) QueryTranscodeTemplateList

func (client *Client) QueryTranscodeTemplateList() (*QueryTranscodeTemplateListResponse, error)

func (*Client) QueryWatermarkTemplate

func (client *Client) QueryWatermarkTemplate(definition int) (*QueryWatermarkTemplateResponse, error)

func (*Client) QueryWatermarkTemplateList

func (client *Client) QueryWatermarkTemplateList() (*QueryWatermarkTemplateListResponse, error)

func (*Client) RedoTask

func (client *Client) RedoTask(args string) (*RedoTaskResponse, error)

func (*Client) RunProcedure

func (client *Client) RunProcedure(args RunProcedureArgs) (*RunProcedureResponse, error)

func (*Client) StartUploadWatermark

func (client *Client) StartUploadWatermark(uploadUrl string, content []byte) error

开始上传

func (*Client) UpdateClass

func (client *Client) UpdateClass(args UpdateClassArgs) (*UpdateClassResponse, error)

func (*Client) UpdateTranscodeTemplate

func (client *Client) UpdateTranscodeTemplate(args UpdateTranscodeTemplateArgs) (*UpdateTranscodeTemplateResponse, error)

func (*Client) UpdateWatermarkTemplate

func (client *Client) UpdateWatermarkTemplate(args UpdateWatermarkTemplateArgs) (*UpdateWatermarkTemplateResponse, error)

func (*Client) Upload

func (client *Client) Upload(videoPath, videoName string) (*CommitUploadResponse, error)

func (*Client) UploadWatermark

func (client *Client) UploadWatermark(args UploadWatermarkArgs) (*CreateWatermarkTemplateResponse, error)

type ClipVideoArgs

type ClipVideoArgs struct {
	FileId          string `qcloud_arg:"fileId"`
	NewFileName     string `qcloud_arg:"newFileName"`
	StartTimeOffset int64  `qcloud_arg:"startTimeOffset"`
	EndTimeOffset   int64  `qcloud_arg:"EndTimeOffset"`
}

视频剪辑 https://cloud.tencent.com/document/product/266/10156

type ClipVideoResponse

type ClipVideoResponse struct {
	CodeMessage
	VodTaskId string `json:"vodTaskId"`
}

type CodeMessage

type CodeMessage struct {
	Code     int    `json:"code"`
	Message  string `json:"message"`
	CodeDesc string `json:"codeDesc"`
}

type CommitUploadArgs

type CommitUploadArgs struct {
	VodSessionKey string `qcloud_arg:"vodSessionKey"`
}

确认视频上传 https://cloud.tencent.com/document/product/266/9757

type CommitUploadResponse

type CommitUploadResponse struct {
	CodeMessage
	CodeDesc string `json:"codeDesc"`
	Video    struct {
		Url string `json:"url"`
	} `json:"video"`
	Cover struct {
		Url string `json:"url"`
	} `json:"cover"`
	FileId string `json:"fileId"`
}

type ConcatVideoArgs

type ConcatVideoArgs struct {
	FileId      string     `qcloud_arg:"fileId"`
	Name        string     `qcloud_arg:"name"`
	DstType     []string   `qcloud_arg:"dstType"` //请填写mp4或者m3u8
	SrcFileList *[]SrcFile `qcloud_arg:"srcFileList"`
}

视频拼接 https://cloud.tencent.com/document/product/266/7821

type ConcatVideoResponse

type ConcatVideoResponse struct {
	CodeMessage
	VodTaskId string `json:"vodTaskId"`
}

type ConfirmEventArgs

type ConfirmEventArgs struct {
	MsgHandle []string `qcloud_arg:"msgHandle"`
}

确认事件通知 https://cloud.tencent.com/document/product/266/7819

type ConfirmEventResponse

type ConfirmEventResponse CodeMessage

type ConvertVodFileArgs

type ConvertVodFileArgs struct {
	FileId       string `qcloud_arg:"fileId"`
	IsScreenshot int    `qcloud_arg:"isScreenshot"`
	IsWatermark  int    `qcloud_arg:"isWatermark"`
}

视频转码 https://cloud.tencent.com/document/product/266/7822

type ConvertVodFileResponse

type ConvertVodFileResponse struct {
	CodeMessage
	VodTaskId string `json:"vodTaskId"`
}

type Cover

type Cover struct {
	StoragePath      string `json:"StoragePath"`
	StorageSignature string `json:"StorageSignature"`
}

type CoverBySnapshotSet

type CoverBySnapshotSet struct {
	Definition   int    `qcloud_arg:"definition"`
	PositionType string `qcloud_arg:"positionType"`
	Position     int64  `qcloud_arg:"position"`
}

type CreateClassArgs

type CreateClassArgs struct {
	ClassName string `qcloud_arg:"className"`
	ParentId  int    `qcloud_arg:"parentId"`
}

创建视频分类 https://cloud.tencent.com/document/product/266/7812

type CreateClassResponse

type CreateClassResponse struct {
	CodeMessage
	NewClassId string `json:"newClassId"`
}

type CreateImageSpriteArgs

type CreateImageSpriteArgs struct {
	FileId     string `qcloud_arg:"fileId"`
	Definition int    `qcloud_arg:"definition"`
}

截取雪碧图 https://cloud.tencent.com/document/product/266/8101

type CreateImageSpriteResponse

type CreateImageSpriteResponse struct {
	CodeMessage
	VodTaskId string `json:"vodTaskId"`
}

type CreateSnapshotByTimeOffsetArgs

type CreateSnapshotByTimeOffsetArgs struct {
	FileId     string  `qcloud_arg:"fileId"`
	TimeOffset []int64 `qcloud_arg:"timeOffset"`
}

指定时间点截图 https://cloud.tencent.com/document/product/266/8102

type CreateSnapshotByTimeOffsetResponse

type CreateSnapshotByTimeOffsetResponse struct {
	CodeMessage
	VodTaskId string `json:"vodTaskId"`
}

type CreateTranscodeTemplateArgs

type CreateTranscodeTemplateArgs struct {
	Name            string   `qcloud_arg:"name"`
	Comment         string   `qcloud_arg:"comment"`
	Container       string   `qcloud_arg:"container"`
	IsFiltrateVideo int      `qcloud_arg:"isFiltrateVideo"`
	IsFiltrateAudio int      `qcloud_arg:"isFiltrateAudio"`
	Video           VideoSet `qcloud_arg:"video"`
	Audio           AudioSet `qcloud_arg:"audio"`
	Height          string   `qcloud_arg:"height"`
}

创建转码模板 https://cloud.tencent.com/document/product/266/9910

type CreateTranscodeTemplateResponse

type CreateTranscodeTemplateResponse struct {
	CodeMessage
	Data struct {
		Definition int `json:"definition"`
	} `json:"data"`
}

type CreateVodTagsArgs

type CreateVodTagsArgs struct {
	FileId string   `qcloud_arg:"fileId"`
	Tags   []string `qcloud_arg:"tags"`
}

增加视频标签 https://cloud.tencent.com/document/product/266/7826

type CreateVodTagsResponse

type CreateVodTagsResponse struct {
	CodeMessage
}

type CreateWatermarkTemplateArgs

type CreateWatermarkTemplateArgs struct {
	Name    string `qcloud_arg:"name"`
	Comment string `qcloud_arg:"comment"`
	Type    string `qcloud_arg:"type"`
	Url     string `qcloud_arg:"url"`
	Left    string `qcloud_arg:"left"`
	Top     string `qcloud_arg:"top"`
	Width   string `qcloud_arg:"width"`
	Height  string `qcloud_arg:"height"`
}

创建水印模板 https://cloud.tencent.com/document/product/266/11599

type CreateWatermarkTemplateResponse

type CreateWatermarkTemplateResponse struct {
	CodeMessage
	Definition int `json:"definition"`
}

type DRM

type DRM struct {
	Definition  int        `json:"definition"`
	EncryptType string     `json:"encryptType"`
	KeySource   string     `json:"keySource"`
	GetKeyUrl   string     `json:"getKeyUrl"`
	EdkList     *[]EdkList `json:"edkList"`
}

type DeleteClassArgs

type DeleteClassArgs struct {
	ClassId int `qcloud_arg:"classId"`
}

删除视频分类 https://cloud.tencent.com/document/product/266/7816

type DeleteClassResponse

type DeleteClassResponse struct {
	CodeMessage
}

type DeleteKeyFrameDescArgs

type DeleteKeyFrameDescArgs struct {
	FileId                 string   `qcloud_arg:"fileId"`
	KeyFrameDescTimeOffset []string `qcloud_arg:"keyFrameDescTimeOffset"`
}

删除打点信息 https://cloud.tencent.com/document/product/266/13442

type DeleteKeyFrameDescResponse

type DeleteKeyFrameDescResponse struct {
	CodeMessage
}

type DeleteTranscodeTemplateArgs

type DeleteTranscodeTemplateArgs struct {
	Definition int `qcloud_arg:"definition"`
}

删除转码模板 https://cloud.tencent.com/document/product/266/9914

type DeleteTranscodeTemplateResponse

type DeleteTranscodeTemplateResponse struct {
	CodeMessage
}

type DeleteVodFileArgs

type DeleteVodFileArgs struct {
	FileId     string `qcloud_arg:"fileId"`
	IsFlushCdn int    `qcloud_arg:"isFlushCdn"`
	Priority   int    `qcloud_arg:"priority"`
}

删除视频 https://cloud.tencent.com/document/product/266/7838

type DeleteVodFileResponse

type DeleteVodFileResponse struct {
	CodeMessage
}

type DeleteVodTagsArgs

type DeleteVodTagsArgs struct {
	FileId string   `qcloud_arg:"fileId"`
	Tags   []string `qcloud_arg:"tags"`
}

删除视频标签 https://cloud.tencent.com/document/product/266/7827

type DeleteVodTagsResponse

type DeleteVodTagsResponse struct {
	CodeMessage
}

type DeleteWatermarkTemplateArgs

type DeleteWatermarkTemplateArgs struct {
	Definition int `qcloud_arg:"definition"`
}

删除水印模板 https://cloud.tencent.com/document/product/266/11604

type DeleteWatermarkTemplateResponse

type DeleteWatermarkTemplateResponse struct {
	CodeMessage
}

type DescribeAllClassArgs

type DescribeAllClassArgs struct {
}

获取视频分类层次结构 https://cloud.tencent.com/document/product/266/7813

type DescribeAllClassResponse

type DescribeAllClassResponse struct {
	CodeMessage
	Data *[]ClassList `json:"data"`
}

type DescribeClassArgs

type DescribeClassArgs struct {
}

获取视频分类信息 https://cloud.tencent.com/document/product/266/7814

type DescribeClassResponse

type DescribeClassResponse struct {
	CodeMessage
	Data *[]struct {
		Id         string `json:"id"`
		Name       string `json:"name"`
		CreateTime string `json:"create_time"`
		UpdateTime string `json:"update_time"`
	} `json:"data"`
}

type DescribeDrmDataKeyArgs

type DescribeDrmDataKeyArgs struct {
	EdkList []string `qcloud_arg:"edkList"` //最多10个
}

获取视频解密密钥 https://cloud.tencent.com/document/product/266/9643

type DescribeDrmDataKeyResponse

type DescribeDrmDataKeyResponse struct {
	CodeMessage
	Data *[]EdkList `json:"edkList"`
}

type DescribeRecordPlayInfoArgs

type DescribeRecordPlayInfoArgs struct {
	Vid string `qcloud_arg:"vid"`
}

依照VID查询视频信息 https://cloud.tencent.com/document/product/266/8227

type DescribeRecordPlayInfoResponse

type DescribeRecordPlayInfoResponse struct {
	CodeMessage
	TotalCount int32      `json:"totalCount"`
	FileSet    *[]FileSet `json:"fileSet"`
}

type DescribeVodPlayInfoArgs

type DescribeVodPlayInfoArgs struct {
	FileName string `qcloud_arg:"fileName"`
	PageNo   int    `qcloud_arg:"pageNo"`
	PageSize int    `qcloud_arg:"pageSize"`
}

依照视频名称前缀获取视频信息 https://cloud.tencent.com/document/product/266/7825

type DescribeVodPlayInfoResponse

type DescribeVodPlayInfoResponse struct {
	CodeMessage
	TotalCount int32      `json:"totalCount"`
	FileSet    *[]FileSet `json:"fileSet"`
}

type DrmSet

type DrmSet struct {
	Definition int `qcloud_arg:"definition"`
}

type EdkList

type EdkList struct {
	Edk string `json:"edk"`
	Dk  string `json:"dk"`
}

type EventContent

type EventContent struct {
	Version   string      `json:"version"`
	EventType string      `json:"eventType"`
	Data      interface{} `json:"data"`
}

type EventList

type EventList struct {
	MsgHandle    string       `json:"msgHandle"`
	EventContent EventContent `json:"eventContent"`
}

type File

type File struct {
	Id              string `qcloud_arg:"id"`
	StartTimeOffset int64  `qcloud_arg:"startTimeOffset"`
	EndTimeOffset   int64  `qcloud_arg:"endTimeOffset"`
}

type FileSet

type FileSet struct {
	FileId   string     `json:"fileId"`
	FileName string     `json:"fileName"`
	Duration string     `json:"duration"`
	Status   string     `json:"status"`
	ImageUrl string     `json:"imageUrl"`
	PlaySets *[]PlaySet `json:"playSet"`
}

type Filter

type Filter struct {
	Name   string        `qcloud_arg:"Name"`
	Values []interface{} `qcloud_arg:"Values"`
}

func NewFilter

func NewFilter(name string, values ...interface{}) Filter

type GetTaskInfoResponse

type GetTaskInfoResponse struct {
	CodeMessage
	Type             string    `json:"type"`
	Status           string    `json:"status"`
	CreateTime       time.Time `json:"createTime"`
	BeginProcessTime time.Time `json:"beginProcessTime"`
	FinishTime       time.Time `json:"finishTime"`
	Data             InfoData  `json:"data"`
}

查询任务详情 https://cloud.tencent.com/document/product/266/11724

type GetTaskListArgs

type GetTaskListArgs struct {
	FileId   string `qcloud_arg:"fileId"`
	Status   string `qcloud_arg:"status"`
	MaxCount int    `qcloud_arg:"maxCount"`
	Next     string `qcloud_arg:"next"`
}

查询任务列表 https://cloud.tencent.com/document/product/266/11722

type GetTaskListResponse

type GetTaskListResponse struct {
	CodeMessage
	Data ListData `json:"data"`
}

type GetVideoInfoArgs

type GetVideoInfoArgs struct {
	FileId     string   `qcloud_arg:"fileId"`
	InfoFilter []string `qcloud_arg:"infoFilter"`
}

获取视频信息 https://cloud.tencent.com/document/product/266/8586

type GetVideoInfoResponse

type GetVideoInfoResponse struct {
	CodeMessage
	BasicInfo     BasicInfo     `json:"basicInfo"`
	MetaData      MetaData      `json:"metaData"`
	TranscodeInfo TranscodeInfo `json:"transcodeInfo"`
}

type ImageSpriteInfo

type ImageSpriteInfo struct {
	ImageSpriteList *[]struct {
		Definition int      `json:"definition"`
		Height     int      `json:"height"`
		Width      int      `json:"width"`
		TotalCount int32    `json:"totalCount"`
		WebVttUrl  string   `json:"webVttUrl"`
		ImageUrls  []string `json:"imageUrls"`
	} `json:"imageSpriteList"`
}

type ImageSpriteSet

type ImageSpriteSet struct {
	Definition int `qcloud_arg:"definition"`
}

type InfoData

type InfoData struct {
	ErrCode         string      `json:"errCode"`
	FileId          string      `json:"fileId"`
	FileName        string      `json:"fileName"`
	Duration        float32     `json:"duration"`
	CoverUrl        string      `json:"coverUrl"`
	PlaySets        *[]PlaySet  `json:"playSet"`
	MetaData        interface{} `json:"metaData"`
	Drm             interface{} `json:"drm"`
	ProcessTaskList interface{} `json:"processTaskList"`
}

type KeyFrameDesc

type KeyFrameDesc struct {
	TimeOffset int64  `qcloud_arg:"timeOffset"`
	Content    string `qcloud_arg:"content"`
}

type KeyFrameDescInfo

type KeyFrameDescInfo struct {
	KeyFrameDescList *[]struct {
		TimeOffset int32  `json:"timeOffset"`
		Content    string `json:"content"`
	} `json:"keyFrameDescList"`
}

type ListData

type ListData struct {
	Status    string      `json:"status"`
	Next      string      `json:"next"`
	TaskLists *[]TaskList `json:"taskList"`
}

type MetaData

type MetaData struct {
	Size                     int32                    `json:"size"`
	Container                string                   `json:"container"`
	Bitrate                  int                      `json:"bitrate"`
	Height                   int                      `json:"height"`
	Width                    int                      `json:"width"`
	Md5                      string                   `json:"md5"`
	Duration                 int                      `json:"duration"`
	FloatDuration            float32                  `json:"floatDuration"`
	Rotate                   int                      `json:"rotate"`
	TotalSize                int                      `json:"totalSize"`
	VideoStreamList          *[]VideoStream           `json:"videoStreamList"`
	AudioStreamList          *[]AudioStream           `json:"audioStreamList"`
	TranscodeInfo            TranscodeInfo            `json:"transcodeInfo"`
	AnimatedGraphicsInfo     AnimatedGraphicsInfo     `json:"animatedGraphicsInfo"`
	SampleSnapshotInfo       SampleSnapshotInfo       `json:"sampleSnapshotInfo"`
	ImageSpriteInfo          ImageSpriteInfo          `json:"imageSpriteInfo"`
	SnapshotByTimeOffsetInfo SnapshotByTimeOffsetInfo `json:"snapshotByTimeOffsetInfo"`
	KeyFrameDescInfo         KeyFrameDescInfo         `json:"keyFrameDescInfo"`
}

type ModifyVodInfoArgs

type ModifyVodInfoArgs struct {
	FileId          string `qcloud_arg:"fileId"`
	FileName        string `qcloud_arg:"fileName"`
	FileIntro       string `qcloud_arg:"fileIntro"`
	ClassId         int    `qcloud_arg:"classId"`
	ExpireTimeStamp int    `qcloud_arg:"expireTimeStamp"`
}

修改视频属性 https://cloud.tencent.com/document/product/266/7828

type ModifyVodInfoResponse

type ModifyVodInfoResponse struct {
	CodeMessage
}

type MultiPullVodFileArgs

type MultiPullVodFileArgs struct {
	PullSet *[]PullList `qcloud_arg:"pullset"`
}

URL 拉取视频上传 https://cloud.tencent.com/document/product/266/7817

argss := vod.MultiPullVodFileArgs{
		PullSet: &[]vod.PullList{
			vod.PullList{
				Url:      "http://www.qq.com",
				FileName: "测试1",
			},
			vod.PullList{
				Url:      "http://www.qq.com",
				FileName: "测试2",
			},
		},
	}

type MultiPullVodFileResponse

type MultiPullVodFileResponse struct {
	CodeMessage
	Data *[]PullInfo `json:"data"`
}

type PlaySet

type PlaySet struct {
	Url        string  `json:"url"`
	Definition string  `json:"definition"`
	Vbitrate   float32 `json:"vbitrate"`
	Vheight    int     `json:"vheight"`
	Vwidth     int     `json:"vwidth"`
}

type ProcessFileArgs

type ProcessFileArgs struct {
	FileId               string                  `qcloud_arg:"fileId"`
	NotifyMode           string                  `qcloud_arg:"notifyMode"` //任务流状态变更通知模式,Finish;Change;None
	Transcode            TranscdeSet             `qcloud_arg:"transcode"`
	AnimatedGraphics     AnimatedGraphicsSet     `qcloud_arg:"animatedGraphics"`
	SampleSnapshot       SampleSnapshotSet       `qcloud_arg:"sampleSnapshot"`
	CoverBySnapshot      CoverBySnapshotSet      `qcloud_arg:"coverBySnapshot"`
	SnapshotByTimeOffset SnapshotByTimeOffsetSet `qcloud_arg:"snapshotByTimeOffset"`
	ImageSprite          ImageSpriteSet          `qcloud_arg:"imageSprite"`
}

对视频文件进行处理 https://cloud.tencent.com/document/product/266/9642

type ProcessFileResponse

type ProcessFileResponse struct {
	CodeMessage
	VodTaskId string `json:"vodTaskId"`
}

type Pull

type Pull struct {
	Url      string `qcloud_arg:"url"`
	FileName string `qcloud_arg:"fileName"`
	FileMd5  string `qcloud_arg:"fileMd5"`
	ClassId  int    `qcloud_arg:"classId"`
}

type PullEventArgs

type PullEventArgs struct {
}

拉取事件通知 https://cloud.tencent.com/document/product/266/7818

type PullEventResponse

type PullEventResponse struct {
	CodeMessage
	EventLists *[]EventList `json:"eventList"`
}

type PullInfo

type PullInfo struct {
	SourceUrl string `json:"source_url"`
	FileId    string `json:"file_id"`
	FileName  string `json:"file_name"`
	VodTaskId string `json:"vod_task_id"`
}

type PullList

type PullList struct {
	Url          string `qcloud_arg:"url"`
	FileName     string `qcloud_arg:"fileName"`
	FileMd5      string `qcloud_arg:"fileMd5"`
	IsTranscode  int    `qcloud_arg:"isTranscode"`
	IsScreenshot int    `qcloud_arg:"isScreenshot"`
	IsWatermark  int    `qcloud_arg:"isWatermark"`
	ClassId      int    `qcloud_arg:"classId"`
	Tags         string `qcloud_arg:"tags"`
	Priority     int    `qcloud_arg:"priority"`
}

type QueryTranscodeTemplateArgs

type QueryTranscodeTemplateArgs struct {
	Definition int `qcloud_arg:"definition"`
}

查询转码模板 https://cloud.tencent.com/document/product/266/11606

type QueryTranscodeTemplateListArgs

type QueryTranscodeTemplateListArgs struct {
}

查询转码模板列表 https://cloud.tencent.com/document/product/266/9913

type QueryTranscodeTemplateListResponse

type QueryTranscodeTemplateListResponse struct {
	CodeMessage
	Data *[]TemplateList `json:"data"`
}

type QueryTranscodeTemplateResponse

type QueryTranscodeTemplateResponse struct {
	CodeMessage
	TemplateList
}

type QueryWatermarkTemplateArgs

type QueryWatermarkTemplateArgs struct {
	Definition int `qcloud_arg:"definition"`
}

查询水印模板 https://cloud.tencent.com/document/product/266/11606

type QueryWatermarkTemplateListArgs

type QueryWatermarkTemplateListArgs struct {
}

查询水印模板列表 https://cloud.tencent.com/document/product/266/11608

type QueryWatermarkTemplateListResponse

type QueryWatermarkTemplateListResponse struct {
	CodeMessage
	WatermarkLists *[]Watermark `json:"watermarkList"`
}

type QueryWatermarkTemplateResponse

type QueryWatermarkTemplateResponse struct {
	CodeMessage
	Watermark
}

type RunProcedureArgs

type RunProcedureArgs struct {
	InputType string  `qcloud_arg:"inputType"` //输入视频的方式,可以取的值为 SingleFile,MultiFile,Stream 和 PullFile
	Procedure string  `qcloud_arg:"procedure"`
	File      File    `qcloud_arg:"file"`
	Stream    Stream  `qcloud_arg:"stream"`
	Pull      Pull    `qcloud_arg:"pull"`
	FileList  *[]File `qcloud_arg:"fileList"`
}

使用任务流处理视频 https://cloud.tencent.com/document/product/266/11030

type RunProcedureResponse

type RunProcedureResponse struct {
	CodeMessage
	VodTaskId string `json:"vodTaskId"`
}

type SampleSnapshotInfo

type SampleSnapshotInfo struct {
	Definition int      `json:"definition"`
	SampleType string   `json:"sampleType"`
	Interval   int      `json:"Interval"`
	ImageUrls  []string `json:"imageUrls"`
}

type SampleSnapshotSet

type SampleSnapshotSet struct {
	Definition int `qcloud_arg:"definition"`
}

type SnapshotByTimeOffsetInfo

type SnapshotByTimeOffsetInfo struct {
	SnapshotByTimeOffsetList *[]struct {
		Definition  int `json:"definition"`
		PicInfoList *[]struct {
			TimeOffset int32  `json:"timeOffset"`
			Url        string `json:"url"`
		}
	} `json:"snapshotByTimeOffsetList"`
}

type SnapshotByTimeOffsetSet

type SnapshotByTimeOffsetSet struct {
	Definition int     `qcloud_arg:"definition"`
	TimeOffset []int64 `qcloud_arg:"timeOffset"`
}

type SrcFile

type SrcFile struct {
	FileId string `qcloud_arg:"fileId"`
}

type Stream

type Stream struct {
	StreamId       string `qcloud_arg:"streamId"`
	StartTimeStamp int64  `qcloud_arg:"startTimeStamp"`
	EndTimeStamp   int64  `qcloud_arg:"endTimeStamp"`
}

type TaskList

type TaskList struct {
	VodTaskId        string    `json:"vodTaskId"`
	Type             string    `json:"type"`
	CreateTime       time.Time `json:"createTime"`
	BeginProcessTime time.Time `json:"beginProcessTime"`
	FinishTime       time.Time `json:"finishTime"`
}

type TemplateList

type TemplateList struct {
	Definition      int    `json:"definition"`
	Name            string `json:"name"`
	Comment         string `json:"comment"`
	Container       string `json:"container"`
	CreateTime      int    `json:"createTime"`
	UpdateTime      int    `json:"updateTime"`
	OnPremise       int    `json:"onPremise"`
	Status          int    `json:"status"`
	IsFiltrateVideo int    `json:"isFiltrateVideo"`
	IsFiltrateAudio int    `json:"isFiltrateAudio"`
	Video           struct {
		Codec                  string  `json:"codec"`
		Fps                    float32 `json:"fps"`
		Bitrate                int     `json:"bitrate"`
		ResolutionSelfAdapting string  `json:"resolutionSelfAdapting"`
		Width                  int     `json:"width"`
		Height                 int     `json:"height"`

		VideoProfile     string `json:"videoProfile"`
		ColorSpace       string `json:"colorSpace"`
		Deinterlaced     int    `json:"deinterlaced"`
		VideoRateControl int    `json:"videoRateControl"`
		// contains filtered or unexported fields
	} `json:"video"`
	Audio struct {
		Codec       string `json:"codec"`
		Bitrate     int    `json:"bitrate"`
		SampleRate  int    `json:"sampleRate"`
		SoundSystem int    `json:"soundSystem"`
	} `json:"audio"`
}

type TranscdeSet

type TranscdeSet struct {
	Definition           int    `qcloud_arg:"definition"`
	Watermark            int    `qcloud_arg:"watermark"`
	HlsMasterPlaylist    int    `qcloud_arg:"hlsMasterPlaylist"`
	IdrAlignment         int    `qcloud_arg:"idrAlignment"`
	DisableHigherBitrate int    `qcloud_arg:"disableHigherBitrate"`
	Drm                  DrmSet `qcloud_arg:"drm"`
}

type Transcode

type Transcode struct {
	Url             string         `json:"url"`
	Definition      int            `json:"definition"`
	Bitrate         int            `json:"bitrate"`
	Height          int            `json:"height"`
	Width           int            `json:"width"`
	Container       string         `json:"container"`
	Duration        int            `json:"duration"`
	Md5             string         `json:"md5"`
	Size            int32          `json:"size"`
	VideoStreamList *[]VideoStream `json:"videoStreamList"`
	AudioStreamList *[]AudioStream `json:"audioStreamList"`
}

type TranscodeInfo

type TranscodeInfo struct {
	IdrAlignment  int          `json:"idrAlignment"`
	TranscodeList *[]Transcode `json:"transcodeList"`
}

type UpdateClassArgs

type UpdateClassArgs struct {
	ClassId   int    `qcloud_arg:"classId"`
	ClassName string `qcloud_arg:"className"`
}

修改视频分类 https://cloud.tencent.com/document/product/266/7815

type UpdateClassResponse

type UpdateClassResponse struct {
	CodeMessage
}

type UpdateTranscodeTemplateArgs

type UpdateTranscodeTemplateArgs struct {
	Definition      int      `qcloud_arg:"definition"`
	Name            string   `qcloud_arg:"name"`
	Comment         string   `qcloud_arg:"comment"`
	Container       string   `qcloud_arg:"container"`
	IsFiltrateVideo int      `qcloud_arg:"isFiltrateVideo"`
	IsFiltrateAudio int      `qcloud_arg:"isFiltrateAudio"`
	Video           VideoSet `qcloud_arg:"video"`
	Audio           AudioSet `qcloud_arg:"audio"`
	Height          string   `qcloud_arg:"height"`
}

更新转码模板 https://cloud.tencent.com/document/product/266/11605

type UpdateTranscodeTemplateResponse

type UpdateTranscodeTemplateResponse struct {
	CodeMessage
}

type UpdateWatermarkTemplateArgs

type UpdateWatermarkTemplateArgs struct {
	Definition int    `qcloud_arg:"definition"`
	Name       string `qcloud_arg:"name"`
	Comment    string `qcloud_arg:"comment"`
	Type       string `qcloud_arg:"type"`
	Left       string `qcloud_arg:"left"`
	Top        string `qcloud_arg:"top"`
	Width      string `qcloud_arg:"width"`
	Height     string `qcloud_arg:"height"`
}

更新水印模板 https://cloud.tencent.com/document/product/266/11605

type UpdateWatermarkTemplateResponse

type UpdateWatermarkTemplateResponse struct {
	CodeMessage
}

type UploadWatermarkArgs

type UploadWatermarkArgs struct {
	PicPath string `qcloud_arg:"picpath"`
	Name    string `qcloud_arg:"name"`
	Comment string `qcloud_arg:"comment"`
	Type    string `qcloud_arg:"type"`
	Left    string `qcloud_arg:"left"`
	Top     string `qcloud_arg:"top"`
	Width   string `qcloud_arg:"width"`
	Height  string `qcloud_arg:"height"`
}

type Video

type Video struct {
	StoragePath      string `json:"StoragePath"`
	StorageSignature string `json:"StorageSignature"`
}

type VideoSet

type VideoSet struct {
	Codec                  string  `qcloud_arg:"codec"`
	Fps                    float32 `qcloud_arg:"fps"`
	Bitrate                int     `qcloud_arg:"bitrate"` //以上参数必选
	ResolutionSelfAdapting string  `qcloud_arg:"resolutionSelfAdapting"`
	Width                  int     `qcloud_arg:"width"`
	Height                 int     `qcloud_arg:"height"`

	VideoProfile     string `qcloud_arg:"videoProfile"`
	ColorSpace       string `qcloud_arg:"colorSpace"`
	Deinterlaced     int    `qcloud_arg:"deinterlaced"`     //视频去隔行模式,1:去隔行,0:保持视频隔行模式。
	VideoRateControl int    `qcloud_arg:"videoRateControl"` //视频压缩模式,0:one pass,1:two pass。
	// contains filtered or unexported fields
}

type VideoStream

type VideoStream struct {
	Bitrate int    `json:"bitrate"`
	Height  int    `json:"height"`
	Width   int    `json:"width"`
	Codec   string `json:"codec"`
	Fps     int    `json:"fps"`
}

type Watermark

type Watermark struct {
	Status     int    `json:"status"`
	Definition int    `json:"definition"`
	Name       string `json:"name"`
	Comment    string `json:"comment"`
	Type       string `json:"type"`
	Url        string `json:"url"`
	Left       string `json:"left"`
	Top        string `json:"top"`
	Width      string `json:"width"`
	Height     string `json:"height"`
	RepeatType string `json:"repeatType"`
	PosType    string `json:"posType"`
	CreateTime int    `json:"create_time"`
	UpdateTime int    `json:"update_time"`
}

Jump to

Keyboard shortcuts

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