Skip to content

Commit 0f76128

Browse files
lilangjojoliang
authored andcommitted
修改字段
1 parent e00597c commit 0f76128

File tree

1 file changed

+26
-22
lines changed

1 file changed

+26
-22
lines changed

ci_media.go

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -49,23 +49,27 @@ type Container struct {
4949

5050
// Video TODO
5151
type Video struct {
52-
Codec string `xml:"Codec"`
53-
Width string `xml:"Width,omitempty"`
54-
Height string `xml:"Height,omitempty"`
55-
Fps string `xml:"Fps,omitempty"`
56-
Remove string `xml:"Remove,omitempty"`
57-
Profile string `xml:"Profile,omitempty"`
58-
Bitrate string `xml:"Bitrate,omitempty"`
59-
Crf string `xml:"Crf,omitempty"`
60-
Gop string `xml:"Gop,omitempty"`
61-
Preset string `xml:"Preset,omitempty"`
62-
Bufsize string `xml:"Bufsize,omitempty"`
63-
Maxrate string `xml:"Maxrate,omitempty"`
64-
HlsTsTime string `xml:"HlsTsTime,omitempty"`
65-
DashSegment string `xml:"DashSegment,omitempty"`
66-
Pixfmt string `xml:"Pixfmt,omitempty"`
67-
LongShortMode string `xml:"LongShortMode,omitempty"`
68-
Rotate string `xml:"Rotate,omitempty"`
52+
Codec string `xml:"Codec"`
53+
Width string `xml:"Width,omitempty"`
54+
Height string `xml:"Height,omitempty"`
55+
Fps string `xml:"Fps,omitempty"`
56+
Remove string `xml:"Remove,omitempty"`
57+
Profile string `xml:"Profile,omitempty"`
58+
Bitrate string `xml:"Bitrate,omitempty"`
59+
Crf string `xml:"Crf,omitempty"`
60+
Gop string `xml:"Gop,omitempty"`
61+
Preset string `xml:"Preset,omitempty"`
62+
Bufsize string `xml:"Bufsize,omitempty"`
63+
Maxrate string `xml:"Maxrate,omitempty"`
64+
HlsTsTime string `xml:"HlsTsTime,omitempty"`
65+
DashSegment string `xml:"DashSegment,omitempty"`
66+
Pixfmt string `xml:"Pixfmt,omitempty"`
67+
LongShortMode string `xml:"LongShortMode,omitempty"`
68+
Rotate string `xml:"Rotate,omitempty"`
69+
AnimateOnlyKeepKeyFrame string `xml:"AnimateOnlyKeepKeyFrame"`
70+
AnimateTimeIntervalOfFrame string `xml:"AnimateTimeIntervalOfFrame"`
71+
AnimateFramesPerSecond string `xml:"AnimateFramesPerSecond"`
72+
Quality string `xml:"Quality"`
6973
}
7074

7175
// TranscodeProVideo TODO
@@ -125,7 +129,7 @@ type Transcode struct {
125129
TimeInterval *TimeInterval `xml:"TimeInterval,omitempty"`
126130
Audio *Audio `xml:"Audio,omitempty"`
127131
TransConfig *TransConfig `xml:"TransConfig,omitempty"`
128-
AudioMix []AudioMix `xml:"AudioMix,omitempty"`
132+
AudioMix *AudioMix `xml:"AudioMix,omitempty"`
129133
}
130134

131135
// Image TODO
@@ -241,7 +245,7 @@ type ConcatTemplate struct {
241245
Video *Video `xml:"Video,omitempty"`
242246
Container *Container `xml:"Container,omitempty"`
243247
Index string `xml:"Index,omitempty"`
244-
AudioMix []AudioMix `xml:"AudioMix,omitempty"`
248+
AudioMix *AudioMix `xml:"AudioMix,omitempty"`
245249
}
246250

247251
// SpriteSnapshotConfig TODO
@@ -322,7 +326,7 @@ type VideoMontage struct {
322326
Video *VideoMontageVideo `xml:"Video,omitempty"`
323327
Audio *Audio `xml:"Audio,omitempty"`
324328
Duration string `xml:"Duration,omitempty"`
325-
AudioMix []AudioMix `xml:"AudioMix,omitempty"`
329+
AudioMix *AudioMix `xml:"AudioMix,omitempty"`
326330
}
327331

328332
// AudioConfig TODO
@@ -1777,7 +1781,7 @@ type CreateMediaTranscodeTemplateOptions struct {
17771781
Audio *Audio `xml:"Audio,omitempty"`
17781782
TimeInterval *TimeInterval `xml:"TimeInterval,omitempty"`
17791783
TransConfig *TransConfig `xml:"TransConfig,omitempty"`
1780-
AudioMix []AudioMix `xml:"AudioMix,omitempty"`
1784+
AudioMix *AudioMix `xml:"AudioMix,omitempty"`
17811785
}
17821786

17831787
// CreateMediaAnimationTemplateOptions TODO
@@ -1816,7 +1820,7 @@ type CreateMediaVideoMontageTemplateOptions struct {
18161820
Container *Container `xml:"Container,omitempty"`
18171821
Video *Video `xml:"Video,omitempty"`
18181822
Audio *Audio `xml:"Audio,omitempty"`
1819-
AudioMix []AudioMix `xml:"AudioMix,omitempty"`
1823+
AudioMix *AudioMix `xml:"AudioMix,omitempty"`
18201824
}
18211825

18221826
// CreateMediaVoiceSeparateTemplateOptions TODO

0 commit comments

Comments
 (0)