Documentation ¶
Index ¶
- Constants
- type AddKeyFrameDescArgs
- type AddKeyFrameDescResponse
- type AnimatedGraphicsInfo
- type AnimatedGraphicsSet
- type ApplyUploadArgs
- type ApplyUploadResponse
- type ApplyUploadWatermarkArgs
- type ApplyUploadWatermarkResponse
- type AudioSet
- type AudioStream
- type BasicInfo
- type ClassInfo
- type ClassList
- type Client
- func (client *Client) AddKeyFrameDesc(args AddKeyFrameDescArgs) (*AddKeyFrameDescResponse, error)
- func (client *Client) ApplyUpload(args ApplyUploadArgs) (*ApplyUploadResponse, error)
- func (client *Client) ApplyUploadWatermark(picType string) (*ApplyUploadWatermarkResponse, error)
- func (client *Client) ClipVideo(args ClipVideoArgs) (*ClipVideoResponse, error)
- func (client *Client) CommitUpload(args CommitUploadArgs) (*CommitUploadResponse, error)
- func (client *Client) ConcatVideo(args ConcatVideoArgs) (*ConcatVideoResponse, error)
- func (client *Client) ConfirmEvent(args ConfirmEventArgs) (*ConfirmEventResponse, error)
- func (client *Client) ConvertVodFile(args ConvertVodFileArgs) (*ConvertVodFileResponse, error)
- func (client *Client) CreateClass(args CreateClassArgs) (*CreateClassResponse, error)
- func (client *Client) CreateImageSprite(args CreateImageSpriteArgs) (*CreateImageSpriteResponse, error)
- func (client *Client) CreateSnapshotByTimeOffset(args CreateSnapshotByTimeOffsetArgs) (*CreateSnapshotByTimeOffsetResponse, error)
- func (client *Client) CreateTranscodeTemplate(args CreateTranscodeTemplateArgs) (*CreateTranscodeTemplateResponse, error)
- func (client *Client) CreateVodTags(args CreateVodTagsArgs) (*CreateVodTagsResponse, error)
- func (client *Client) CreateWatermarkTemplate(args CreateWatermarkTemplateArgs) (*CreateWatermarkTemplateResponse, error)
- func (client *Client) DeleteClass(classId int) (*DeleteClassResponse, error)
- func (client *Client) DeleteKeyFrameDesc(args DeleteKeyFrameDescArgs) (*DeleteKeyFrameDescResponse, error)
- func (client *Client) DeleteTranscodeTemplate(definition int) (*DeleteTranscodeTemplateResponse, error)
- func (client *Client) DeleteVodFile(args DeleteVodFileArgs) (*DeleteVodFileResponse, error)
- func (client *Client) DeleteVodTags(args DeleteVodTagsArgs) (*DeleteVodTagsResponse, error)
- func (client *Client) DeleteWatermarkTemplate(definition int) (*DeleteWatermarkTemplateResponse, error)
- func (client *Client) DescribeAllClass() (*DescribeAllClassResponse, error)
- func (client *Client) DescribeClass() (*DescribeClassResponse, error)
- func (client *Client) DescribeDrmDataKey(args DescribeDrmDataKeyArgs) (*DescribeDrmDataKeyResponse, error)
- func (client *Client) DescribeRecordPlayInfo(vid string) (*DescribeRecordPlayInfoResponse, error)
- func (client *Client) DescribeVodPlayInfo(args DescribeVodPlayInfoArgs) (*DescribeVodPlayInfoResponse, error)
- func (client *Client) GetTaskInfo(args string) (*GetTaskInfoResponse, error)
- func (client *Client) GetTaskList(args GetTaskListArgs) (*GetTaskListResponse, error)
- func (client *Client) GetVideoInfo(args GetVideoInfoArgs) (*GetVideoInfoResponse, error)
- func (client *Client) ModifyVodInfo(args ModifyVodInfoArgs) (*ModifyVodInfoResponse, error)
- func (client *Client) MultiPullVodFile(args MultiPullVodFileArgs) (*MultiPullVodFileResponse, error)
- func (client *Client) ProcessFile(args ProcessFileArgs) (*ProcessFileResponse, error)
- func (client *Client) PullEvent() (*PullEventResponse, error)
- func (client *Client) QueryTranscodeTemplate(definition int) (*QueryTranscodeTemplateResponse, error)
- func (client *Client) QueryTranscodeTemplateList() (*QueryTranscodeTemplateListResponse, error)
- func (client *Client) QueryWatermarkTemplate(definition int) (*QueryWatermarkTemplateResponse, error)
- func (client *Client) QueryWatermarkTemplateList() (*QueryWatermarkTemplateListResponse, error)
- func (client *Client) RedoTask(args string) (*RedoTaskResponse, error)
- func (client *Client) RunProcedure(args RunProcedureArgs) (*RunProcedureResponse, error)
- func (client *Client) StartUploadWatermark(uploadUrl string, content []byte) error
- func (client *Client) UpdateClass(args UpdateClassArgs) (*UpdateClassResponse, error)
- func (client *Client) UpdateTranscodeTemplate(args UpdateTranscodeTemplateArgs) (*UpdateTranscodeTemplateResponse, error)
- func (client *Client) UpdateWatermarkTemplate(args UpdateWatermarkTemplateArgs) (*UpdateWatermarkTemplateResponse, error)
- func (client *Client) Upload(videoPath, videoName string) (*CommitUploadResponse, error)
- func (client *Client) UploadWatermark(args UploadWatermarkArgs) (*CreateWatermarkTemplateResponse, error)
- type ClipVideoArgs
- type ClipVideoResponse
- type CodeMessage
- type CommitUploadArgs
- type CommitUploadResponse
- type ConcatVideoArgs
- type ConcatVideoResponse
- type ConfirmEventArgs
- type ConfirmEventResponse
- type ConvertVodFileArgs
- type ConvertVodFileResponse
- type Cover
- type CoverBySnapshotSet
- type CreateClassArgs
- type CreateClassResponse
- type CreateImageSpriteArgs
- type CreateImageSpriteResponse
- type CreateSnapshotByTimeOffsetArgs
- type CreateSnapshotByTimeOffsetResponse
- type CreateTranscodeTemplateArgs
- type CreateTranscodeTemplateResponse
- type CreateVodTagsArgs
- type CreateVodTagsResponse
- type CreateWatermarkTemplateArgs
- type CreateWatermarkTemplateResponse
- type DRM
- type DeleteClassArgs
- type DeleteClassResponse
- type DeleteKeyFrameDescArgs
- type DeleteKeyFrameDescResponse
- type DeleteTranscodeTemplateArgs
- type DeleteTranscodeTemplateResponse
- type DeleteVodFileArgs
- type DeleteVodFileResponse
- type DeleteVodTagsArgs
- type DeleteVodTagsResponse
- type DeleteWatermarkTemplateArgs
- type DeleteWatermarkTemplateResponse
- type DescribeAllClassArgs
- type DescribeAllClassResponse
- type DescribeClassArgs
- type DescribeClassResponse
- type DescribeDrmDataKeyArgs
- type DescribeDrmDataKeyResponse
- type DescribeRecordPlayInfoArgs
- type DescribeRecordPlayInfoResponse
- type DescribeVodPlayInfoArgs
- type DescribeVodPlayInfoResponse
- type DrmSet
- type EdkList
- type EventContent
- type EventList
- type File
- type FileSet
- type Filter
- type GetTaskInfoResponse
- type GetTaskListArgs
- type GetTaskListResponse
- type GetVideoInfoArgs
- type GetVideoInfoResponse
- type ImageSpriteInfo
- type ImageSpriteSet
- type InfoData
- type KeyFrameDesc
- type KeyFrameDescInfo
- type ListData
- type MetaData
- type ModifyVodInfoArgs
- type ModifyVodInfoResponse
- type MultiPullVodFileArgs
- type MultiPullVodFileResponse
- type PlaySet
- type ProcessFileArgs
- type ProcessFileResponse
- type Pull
- type PullEventArgs
- type PullEventResponse
- type PullInfo
- type PullList
- type QueryTranscodeTemplateArgs
- type QueryTranscodeTemplateListArgs
- type QueryTranscodeTemplateListResponse
- type QueryTranscodeTemplateResponse
- type QueryWatermarkTemplateArgs
- type QueryWatermarkTemplateListArgs
- type QueryWatermarkTemplateListResponse
- type QueryWatermarkTemplateResponse
- type RedoTaskResponse
- type RunProcedureArgs
- type RunProcedureResponse
- type SampleSnapshotInfo
- type SampleSnapshotSet
- type SnapshotByTimeOffsetInfo
- type SnapshotByTimeOffsetSet
- type SrcFile
- type Stream
- type TaskList
- type TemplateList
- type TranscdeSet
- type Transcode
- type TranscodeInfo
- type UpdateClassArgs
- type UpdateClassResponse
- type UpdateTranscodeTemplateArgs
- type UpdateTranscodeTemplateResponse
- type UpdateWatermarkTemplateArgs
- type UpdateWatermarkTemplateResponse
- type UploadWatermarkArgs
- type Video
- type VideoSet
- type VideoStream
- type Watermark
Constants ¶
const ( VODDefaultEndpoint = "https://vod.api.qcloud.com/v2/index.php" VODAPIVersion = "2017-03-12" )
const DefaultTimeout = 60
Default timeout value for WaitForXXX method
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"` }
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"` }
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 AudioStream ¶
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 Client ¶
func NewClientWithEndpoint ¶
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) RunProcedure ¶
func (client *Client) RunProcedure(args RunProcedureArgs) (*RunProcedureResponse, error)
func (*Client) StartUploadWatermark ¶
开始上传
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 ClipVideoResponse ¶
type ClipVideoResponse struct { CodeMessage VodTaskId string `json:"vodTaskId"` }
type CodeMessage ¶
type CommitUploadArgs ¶
type CommitUploadArgs struct {
VodSessionKey string `qcloud_arg:"vodSessionKey"`
}
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 ConcatVideoResponse ¶
type ConcatVideoResponse struct { CodeMessage VodTaskId string `json:"vodTaskId"` }
type ConfirmEventArgs ¶
type ConfirmEventArgs struct {
MsgHandle []string `qcloud_arg:"msgHandle"`
}
type ConfirmEventResponse ¶
type ConfirmEventResponse CodeMessage
type ConvertVodFileArgs ¶
type ConvertVodFileResponse ¶
type ConvertVodFileResponse struct { CodeMessage VodTaskId string `json:"vodTaskId"` }
type CoverBySnapshotSet ¶
type CreateClassArgs ¶
type CreateClassResponse ¶
type CreateClassResponse struct { CodeMessage NewClassId string `json:"newClassId"` }
type CreateImageSpriteArgs ¶
type CreateImageSpriteResponse ¶
type CreateImageSpriteResponse struct { CodeMessage VodTaskId string `json:"vodTaskId"` }
type CreateSnapshotByTimeOffsetArgs ¶
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"` }
type CreateTranscodeTemplateResponse ¶
type CreateTranscodeTemplateResponse struct { CodeMessage Data struct { Definition int `json:"definition"` } `json:"data"` }
type CreateVodTagsArgs ¶
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"` }
type CreateWatermarkTemplateResponse ¶
type CreateWatermarkTemplateResponse struct { CodeMessage Definition int `json:"definition"` }
type DeleteClassArgs ¶
type DeleteClassArgs struct {
ClassId int `qcloud_arg:"classId"`
}
type DeleteClassResponse ¶
type DeleteClassResponse struct {
CodeMessage
}
type DeleteKeyFrameDescArgs ¶
type DeleteKeyFrameDescResponse ¶
type DeleteKeyFrameDescResponse struct {
CodeMessage
}
type DeleteTranscodeTemplateArgs ¶
type DeleteTranscodeTemplateArgs struct {
Definition int `qcloud_arg:"definition"`
}
type DeleteTranscodeTemplateResponse ¶
type DeleteTranscodeTemplateResponse struct {
CodeMessage
}
type DeleteVodFileArgs ¶
type DeleteVodFileResponse ¶
type DeleteVodFileResponse struct {
CodeMessage
}
type DeleteVodTagsArgs ¶
type DeleteVodTagsResponse ¶
type DeleteVodTagsResponse struct {
CodeMessage
}
type DeleteWatermarkTemplateArgs ¶
type DeleteWatermarkTemplateArgs struct {
Definition int `qcloud_arg:"definition"`
}
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 EventContent ¶
type EventList ¶
type EventList struct { MsgHandle string `json:"msgHandle"` EventContent EventContent `json:"eventContent"` }
type Filter ¶
type Filter struct { Name string `qcloud_arg:"Name"` Values []interface{} `qcloud_arg:"Values"` }
type GetTaskInfoResponse ¶
type GetTaskListArgs ¶
type GetTaskListResponse ¶
type GetTaskListResponse struct { CodeMessage Data ListData `json:"data"` }
type GetVideoInfoArgs ¶
type GetVideoInfoResponse ¶
type GetVideoInfoResponse struct { CodeMessage BasicInfo BasicInfo `json:"basicInfo"` MetaData MetaData `json:"metaData"` TranscodeInfo TranscodeInfo `json:"transcodeInfo"` }
type ImageSpriteInfo ¶
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 KeyFrameDescInfo ¶
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 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 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 PullEventArgs ¶
type PullEventArgs struct { }
type PullEventResponse ¶
type PullEventResponse struct { CodeMessage EventLists *[]EventList `json:"eventList"` }
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"`
}
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"`
}
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 RedoTaskResponse ¶
type RedoTaskResponse CodeMessage
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 SampleSnapshotSet ¶
type SampleSnapshotSet struct {
Definition int `qcloud_arg:"definition"`
}
type SnapshotByTimeOffsetSet ¶
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 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 UpdateClassArgs ¶
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"` }
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"` }
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 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 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"` }