@@ -216,9 +216,93 @@ type SuperResolution struct {
216216 EnableScaleUp string `xml:"EnableScaleUp,omitempty"`
217217}
218218
219+ type MediaResult struct {
220+ OutputFile struct {
221+ Bucket string `xml:"Bucket,omitempty"`
222+ Md5Info []struct {
223+ Md5 string `xml:"Md5,omitempty"`
224+ ObjectName string `xml:"ObjectName,omitempty"`
225+ } `xml:"Md5Info,omitempty"`
226+ ObjectName []string `xml:"ObjectName,omitempty"`
227+ ObjectPrefix string `xml:"ObjectPrefix,omitempty"`
228+ Region string `xml:"Region,omitempty"`
229+ SpriteOutputFile struct {
230+ Bucket string `xml:"Bucket,omitempty"`
231+ Md5Info []struct {
232+ Md5 string `xml:"Md5,omitempty"`
233+ ObjectName string `xml:"ObjectName,omitempty"`
234+ } `xml:"Md5Info,omitempty"`
235+ ObjectName []string `xml:"ObjectName,omitempty"`
236+ ObjectPrefix string `xml:"ObjectPrefix,omitempty"`
237+ Region string `xml:"Region,omitempty"`
238+ } `xml:"SpriteOutputFile,omitempty"`
239+ } `xml:"OutputFile,omitempty"`
240+ }
241+
242+ type MediaInfo struct {
243+ Format struct {
244+ Bitrate string `xml:"Bitrate"`
245+ Duration string `xml:"Duration"`
246+ FormatLongName string `xml:"FormatLongName"`
247+ FormatName string `xml:"FormatName"`
248+ NumProgram string `xml:"NumProgram"`
249+ NumStream string `xml:"NumStream"`
250+ Size string `xml:"Size"`
251+ StartTime string `xml:"StartTime"`
252+ } `xml:"Format"`
253+ Stream struct {
254+ Audio []struct {
255+ Bitrate string `xml:"Bitrate"`
256+ Channel string `xml:"Channel"`
257+ ChannelLayout string `xml:"ChannelLayout"`
258+ CodecLongName string `xml:"CodecLongName"`
259+ CodecName string `xml:"CodecName"`
260+ CodecTag string `xml:"CodecTag"`
261+ CodecTagString string `xml:"CodecTagString"`
262+ CodecTimeBase string `xml:"CodecTimeBase"`
263+ Duration string `xml:"Duration"`
264+ Index string `xml:"Index"`
265+ Language string `xml:"Language"`
266+ SampleFmt string `xml:"SampleFmt"`
267+ SampleRate string `xml:"SampleRate"`
268+ StartTime string `xml:"StartTime"`
269+ Timebase string `xml:"Timebase"`
270+ } `xml:"Audio"`
271+ Subtitle string `xml:"Subtitle"`
272+ Video []struct {
273+ AvgFps string `xml:"AvgFps"`
274+ Bitrate string `xml:"Bitrate"`
275+ CodecLongName string `xml:"CodecLongName"`
276+ CodecName string `xml:"CodecName"`
277+ CodecTag string `xml:"CodecTag"`
278+ CodecTagString string `xml:"CodecTagString"`
279+ CodecTimeBase string `xml:"CodecTimeBase"`
280+ Dar string `xml:"Dar"`
281+ Duration string `xml:"Duration"`
282+ Fps string `xml:"Fps"`
283+ HasBFrame string `xml:"HasBFrame"`
284+ Height string `xml:"Height"`
285+ Index string `xml:"Index"`
286+ Language string `xml:"Language"`
287+ Level string `xml:"Level"`
288+ NumFrames string `xml:"NumFrames"`
289+ PixFormat string `xml:"PixFormat"`
290+ Profile string `xml:"Profile"`
291+ RefFrames string `xml:"RefFrames"`
292+ Rotation string `xml:"Rotation"`
293+ Sar string `xml:"Sar"`
294+ StartTime string `xml:"StartTime"`
295+ Timebase string `xml:"Timebase"`
296+ Width string `xml:"Width"`
297+ } `xml:"Video"`
298+ } `xml:"Stream"`
299+ }
300+
219301type MediaProcessJobOperation struct {
220302 Tag string `xml:"Tag,omitempty"`
221303 Output * JobOutput `xml:"Output,omitempty"`
304+ MediaResult * MediaResult `xml:"MediaResult,omitempty"`
305+ MediaInfo * MediaInfo `xml:"MediaInfo,omitempty"`
222306 Transcode * Transcode `xml:"Transcode,omitempty"`
223307 Watermark []Watermark `xml:"Watermark,omitempty"`
224308 TemplateId string `xml:"TemplateId,omitempty"`
@@ -249,6 +333,7 @@ type MediaProcessJobDetail struct {
249333 Message string `xml:"Message,omitempty"`
250334 JobId string `xml:"JobId,omitempty"`
251335 Tag string `xml:"Tag,omitempty"`
336+ Progress string `xml:"Progress,omitempty"`
252337 State string `xml:"State,omitempty"`
253338 CreationTime string `xml:"CreationTime,omitempty"`
254339 QueueId string `xml:"QueueId,omitempty"`
@@ -290,74 +375,9 @@ type MediaProcessJobsNotifyBody struct {
290375 JobId string `xml:"JobId"`
291376 Message string `xml:"Message"`
292377 Operation struct {
293- MediaInfo struct {
294- Format struct {
295- Text string `xml:",chardata"`
296- Bitrate string `xml:"Bitrate"`
297- Duration string `xml:"Duration"`
298- FormatLongName string `xml:"FormatLongName"`
299- FormatName string `xml:"FormatName"`
300- NumProgram string `xml:"NumProgram"`
301- NumStream string `xml:"NumStream"`
302- Size string `xml:"Size"`
303- StartTime string `xml:"StartTime"`
304- } `xml:"Format"`
305- Stream struct {
306- Audio []struct {
307- Bitrate string `xml:"Bitrate"`
308- Channel string `xml:"Channel"`
309- ChannelLayout string `xml:"ChannelLayout"`
310- CodecLongName string `xml:"CodecLongName"`
311- CodecName string `xml:"CodecName"`
312- CodecTag string `xml:"CodecTag"`
313- CodecTagString string `xml:"CodecTagString"`
314- CodecTimeBase string `xml:"CodecTimeBase"`
315- Duration string `xml:"Duration"`
316- Index string `xml:"Index"`
317- Language string `xml:"Language"`
318- SampleFmt string `xml:"SampleFmt"`
319- SampleRate string `xml:"SampleRate"`
320- StartTime string `xml:"StartTime"`
321- Timebase string `xml:"Timebase"`
322- } `xml:"Audio"`
323- Subtitle string `xml:"Subtitle"`
324- Video []struct {
325- AvgFps string `xml:"AvgFps"`
326- Bitrate string `xml:"Bitrate"`
327- CodecLongName string `xml:"CodecLongName"`
328- CodecName string `xml:"CodecName"`
329- CodecTag string `xml:"CodecTag"`
330- CodecTagString string `xml:"CodecTagString"`
331- CodecTimeBase string `xml:"CodecTimeBase"`
332- Dar string `xml:"Dar"`
333- Duration string `xml:"Duration"`
334- Fps string `xml:"Fps"`
335- HasBFrame string `xml:"HasBFrame"`
336- Height string `xml:"Height"`
337- Index string `xml:"Index"`
338- Language string `xml:"Language"`
339- Level string `xml:"Level"`
340- NumFrames string `xml:"NumFrames"`
341- PixFormat string `xml:"PixFormat"`
342- Profile string `xml:"Profile"`
343- RefFrames string `xml:"RefFrames"`
344- Rotation string `xml:"Rotation"`
345- Sar string `xml:"Sar"`
346- StartTime string `xml:"StartTime"`
347- Timebase string `xml:"Timebase"`
348- Width string `xml:"Width"`
349- } `xml:"Video"`
350- } `xml:"Stream"`
351- } `xml:"MediaInfo"`
352- MediaResult struct {
353- OutputFile struct {
354- Bucket string `xml:"Bucket"`
355- ObjectName []string `xml:"ObjectName"`
356- ObjectPrefix string `xml:"ObjectPrefix"`
357- Region string `xml:"Region"`
358- } `xml:"OutputFile"`
359- } `xml:"MediaResult"`
360- Output struct {
378+ MediaInfo * MediaInfo `xml:"MediaInfo"`
379+ MediaResult * MediaResult `xml:"MediaResult"`
380+ Output struct {
361381 Bucket string `xml:"Bucket"`
362382 Object string `xml:"Object"`
363383 Region string `xml:"Region"`
0 commit comments