@@ -118,6 +118,25 @@ type Snapshot struct {
118118 Width string `xml:"Width,omitempty"`
119119 Height string `xml:"Height,omitempty"`
120120}
121+
122+ // 有意和转码区分,两种任务关注的参数不一样避免干扰
123+ type AnimationVideo struct {
124+ Codec string `xml:"Codec"`
125+ Width string `xml:"Width"`
126+ Height string `xml:"Height"`
127+ Fps string `xml:"Fps"`
128+ AnimateOnlyKeepKeyFrame string `xml:"AnimateOnlyKeepKeyFrame"`
129+ AnimateTimeIntervalOfFrame string `xml:"AnimateTimeIntervalOfFrame"`
130+ AnimateFramesPerSecond string `xml:"AnimateFramesPerSecond"`
131+ Quality string `xml:"Quality"`
132+ }
133+
134+ type Animation struct {
135+ Container * Container `xml:"Container,omitempty"`
136+ Video * AnimationVideo `xml:"Video,omitempty"`
137+ TimeInterval * TimeInterval `xml:"TimeInterval,omitempty"`
138+ }
139+
121140type MediaProcessJobOperation struct {
122141 Tag string `xml:"Tag,omitempty"`
123142 Output * JobOutput `xml:"Output,omitempty"`
@@ -127,6 +146,7 @@ type MediaProcessJobOperation struct {
127146 WatermarkTemplateId []string `xml:"WatermarkTemplateId,omitempty"`
128147 ConcatTemplate * ConcatTemplate `xml:"ConcatTemplate,omitempty"`
129148 Snapshot * Snapshot `xml:"Snapshot,omitempty"`
149+ Animation * Animation `xml:"Animation,omitempty"`
130150}
131151
132152type CreateMediaJobsOptions struct {
0 commit comments