Browse Source

fix:调整指针数组为实例十足

master
wanjiewu 3 years ago
parent
commit
54fa46a836
  1. 16
      ci_media.go
  2. 6
      example/CI/media_process/media_process.go

16
ci_media.go

@ -156,17 +156,17 @@ type CreateMediaJobsResult struct {
}
type CreateMultiMediaJobsOptions struct {
XMLName xml.Name `xml:"Request"`
Tag string `xml:"Tag,omitempty"`
Input *JobInput `xml:"Input,omitempty"`
Operation []*MediaProcessJobOperation `xml:"Operation,omitempty"`
QueueId string `xml:"QueueId,omitempty"`
CallBack string `xml:"CallBack,omitempty"`
XMLName xml.Name `xml:"Request"`
Tag string `xml:"Tag,omitempty"`
Input *JobInput `xml:"Input,omitempty"`
Operation []MediaProcessJobOperation `xml:"Operation,omitempty"`
QueueId string `xml:"QueueId,omitempty"`
CallBack string `xml:"CallBack,omitempty"`
}
type CreateMultiMediaJobsResult struct {
XMLName xml.Name `xml:"Response"`
JobsDetail []*MediaProcessJobDetail `xml:"JobsDetail,omitempty"`
XMLName xml.Name `xml:"Response"`
JobsDetail []MediaProcessJobDetail `xml:"JobsDetail,omitempty"`
}
func (s *CIService) CreateMultiMediaJobs(ctx context.Context, opt *CreateMultiMediaJobsOptions) (*CreateMultiMediaJobsResult, *Response, error) {

6
example/CI/media_process/media_process.go

@ -254,8 +254,8 @@ func InvokeMultiTasks() {
Input: &cos.JobInput{
Object: "input/117374C.mp4",
},
Operation: []*cos.MediaProcessJobOperation{
&cos.MediaProcessJobOperation{
Operation: []cos.MediaProcessJobOperation{
cos.MediaProcessJobOperation{
Tag: "Snapshot",
Output: &cos.JobOutput{
Region: "ap-chongqing",
@ -268,7 +268,7 @@ func InvokeMultiTasks() {
Count: "1",
},
},
&cos.MediaProcessJobOperation{
cos.MediaProcessJobOperation{
Tag: "Transcode",
Output: &cos.JobOutput{
Region: "ap-chongqing",

Loading…
Cancel
Save