@@ -189,6 +189,134 @@ type CreateMultiMediaJobsResult struct {
189189 JobsDetail []MediaProcessJobDetail `xml:"JobsDetail,omitempty"`
190190}
191191
192+ type MediaProcessJobsNotifyBody struct {
193+ XMLName xml.Name `xml:"Response"`
194+ EventName string `xml:"EventName"`
195+ JobsDetail struct {
196+ Code string `xml:"Code"`
197+ CreationTime string `xml:"CreationTime"`
198+ EndTime string `xml:"EndTime"`
199+ Input struct {
200+ BucketId string `xml:"BucketId"`
201+ Object string `xml:"Object"`
202+ Region string `xml:"Region"`
203+ } `xml:"Input"`
204+ JobId string `xml:"JobId"`
205+ Message string `xml:"Message"`
206+ Operation struct {
207+ MediaInfo struct {
208+ Format struct {
209+ Text string `xml:",chardata"`
210+ Bitrate string `xml:"Bitrate"`
211+ Duration string `xml:"Duration"`
212+ FormatLongName string `xml:"FormatLongName"`
213+ FormatName string `xml:"FormatName"`
214+ NumProgram string `xml:"NumProgram"`
215+ NumStream string `xml:"NumStream"`
216+ Size string `xml:"Size"`
217+ StartTime string `xml:"StartTime"`
218+ } `xml:"Format"`
219+ Stream struct {
220+ Audio []struct {
221+ Bitrate string `xml:"Bitrate"`
222+ Channel string `xml:"Channel"`
223+ ChannelLayout string `xml:"ChannelLayout"`
224+ CodecLongName string `xml:"CodecLongName"`
225+ CodecName string `xml:"CodecName"`
226+ CodecTag string `xml:"CodecTag"`
227+ CodecTagString string `xml:"CodecTagString"`
228+ CodecTimeBase string `xml:"CodecTimeBase"`
229+ Duration string `xml:"Duration"`
230+ Index string `xml:"Index"`
231+ Language string `xml:"Language"`
232+ SampleFmt string `xml:"SampleFmt"`
233+ SampleRate string `xml:"SampleRate"`
234+ StartTime string `xml:"StartTime"`
235+ Timebase string `xml:"Timebase"`
236+ } `xml:"Audio"`
237+ Subtitle string `xml:"Subtitle"`
238+ Video []struct {
239+ AvgFps string `xml:"AvgFps"`
240+ Bitrate string `xml:"Bitrate"`
241+ CodecLongName string `xml:"CodecLongName"`
242+ CodecName string `xml:"CodecName"`
243+ CodecTag string `xml:"CodecTag"`
244+ CodecTagString string `xml:"CodecTagString"`
245+ CodecTimeBase string `xml:"CodecTimeBase"`
246+ Dar string `xml:"Dar"`
247+ Duration string `xml:"Duration"`
248+ Fps string `xml:"Fps"`
249+ HasBFrame string `xml:"HasBFrame"`
250+ Height string `xml:"Height"`
251+ Index string `xml:"Index"`
252+ Language string `xml:"Language"`
253+ Level string `xml:"Level"`
254+ NumFrames string `xml:"NumFrames"`
255+ PixFormat string `xml:"PixFormat"`
256+ Profile string `xml:"Profile"`
257+ RefFrames string `xml:"RefFrames"`
258+ Rotation string `xml:"Rotation"`
259+ Sar string `xml:"Sar"`
260+ StartTime string `xml:"StartTime"`
261+ Timebase string `xml:"Timebase"`
262+ Width string `xml:"Width"`
263+ } `xml:"Video"`
264+ } `xml:"Stream"`
265+ } `xml:"MediaInfo"`
266+ MediaResult struct {
267+ OutputFile struct {
268+ Bucket string `xml:"Bucket"`
269+ ObjectName string `xml:"ObjectName"`
270+ ObjectPrefix string `xml:"ObjectPrefix"`
271+ Region string `xml:"Region"`
272+ } `xml:"OutputFile"`
273+ } `xml:"MediaResult"`
274+ Output struct {
275+ Bucket string `xml:"Bucket"`
276+ Object string `xml:"Object"`
277+ Region string `xml:"Region"`
278+ } `xml:"Output"`
279+ TemplateId string `xml:"TemplateId"`
280+ TemplateName string `xml:"TemplateName"`
281+ } `xml:"Operation"`
282+ QueueId string `xml:"QueueId"`
283+ StartTime string `xml:"StartTime"`
284+ State string `xml:"State"`
285+ Tag string `xml:"Tag"`
286+ } `xml:"JobsDetail"`
287+ }
288+
289+ type WorkflowExecutionNotifyBody struct {
290+ XMLName xml.Name `xml:"Response"`
291+ EventName string `xml:"EventName"`
292+ WorkflowExecution struct {
293+ RunId string `xml:"RunId"`
294+ BucketId string `xml:"BucketId"`
295+ Object string `xml:"Object"`
296+ CosHeaders []struct {
297+ Key string `xml:"Key"`
298+ Value string `xml:"Value"`
299+ } `xml:"CosHeaders"`
300+ WorkflowId string `xml:"WorkflowId"`
301+ WorkflowName string `xml:"WorkflowName"`
302+ CreateTime string `xml:"CreateTime"`
303+ State string `xml:"State"`
304+ Tasks []struct {
305+ Type string `xml:"Type"`
306+ CreateTime string `xml:"CreateTime"`
307+ EndTime string `xml:"EndTime"`
308+ State string `xml:"State"`
309+ JobId string `xml:"JobId"`
310+ Name string `xml:"Name"`
311+ TemplateId string `xml:"TemplateId"`
312+ TemplateName string `xml:"TemplateName"`
313+ TranscodeTemplateId string `xml:"TranscodeTemplateId,omitempty"`
314+ TranscodeTemplateName string `xml:"TranscodeTemplateName,omitempty"`
315+ HdrMode string `xml:"HdrMode,omitempty"`
316+ } `xml:"Tasks"`
317+ } `xml:"WorkflowExecution"`
318+ }
319+
192320func (s * CIService ) CreateMultiMediaJobs (ctx context.Context , opt * CreateMultiMediaJobsOptions ) (* CreateMultiMediaJobsResult , * Response , error ) {
193321 var res CreateMultiMediaJobsResult
194322 sendOpt := sendOptions {
0 commit comments