@@ -68,19 +68,20 @@ var (
6868)
6969
7070type MPD struct {
71- XMLNs * string `xml:"xmlns,attr"`
72- Profiles * string `xml:"profiles,attr"`
73- Type * string `xml:"type,attr"`
74- MediaPresentationDuration * string `xml:"mediaPresentationDuration,attr"`
75- MinBufferTime * string `xml:"minBufferTime,attr"`
76- AvailabilityStartTime * string `xml:"availabilityStartTime,attr,omitempty"`
77- MinimumUpdatePeriod * string `xml:"minimumUpdatePeriod,attr"`
78- PublishTime * string `xml:"publishTime,attr"`
79- TimeShiftBufferDepth * string `xml:"timeShiftBufferDepth,attr"`
80- BaseURL string `xml:"BaseURL,omitempty"`
81- period * Period
82- Periods []* Period `xml:"Period,omitempty"`
83- UTCTiming * DescriptorType `xml:"UTCTiming,omitempty"`
71+ XMLNs * string `xml:"xmlns,attr"`
72+ Profiles * string `xml:"profiles,attr"`
73+ Type * string `xml:"type,attr"`
74+ MediaPresentationDuration * string `xml:"mediaPresentationDuration,attr"`
75+ MinBufferTime * string `xml:"minBufferTime,attr"`
76+ AvailabilityStartTime * string `xml:"availabilityStartTime,attr,omitempty"`
77+ MinimumUpdatePeriod * string `xml:"minimumUpdatePeriod,attr"`
78+ PublishTime * string `xml:"publishTime,attr"`
79+ TimeShiftBufferDepth * string `xml:"timeShiftBufferDepth,attr"`
80+ SuggestedPresentationDelay * Duration `xml:"suggestedPresentationDelay,attr,omitempty"`
81+ BaseURL string `xml:"BaseURL,omitempty"`
82+ period * Period
83+ Periods []* Period `xml:"Period,omitempty"`
84+ UTCTiming * DescriptorType `xml:"UTCTiming,omitempty"`
8485}
8586
8687type Period struct {
@@ -125,47 +126,51 @@ type CommonAttributesAndElements struct {
125126
126127type AdaptationSet struct {
127128 CommonAttributesAndElements
128- XMLName xml.Name `xml:"AdaptationSet"`
129- ID * string `xml:"id,attr"`
130- SegmentAlignment * bool `xml:"segmentAlignment,attr"`
131- Lang * string `xml:"lang,attr"`
132- Group * string `xml:"group,attr"`
133- PAR * string `xml:"par,attr"`
134- MinBandwidth * string `xml:"minBandwidth,attr"`
135- MaxBandwidth * string `xml:"maxBandwidth,attr"`
136- MinWidth * string `xml:"minWidth,attr"`
137- MaxWidth * string `xml:"maxWidth,attr"`
138- ContentType * string `xml:"contentType,attr"`
139- ContentProtection []ContentProtectioner `xml:"ContentProtection,omitempty"` // Common attribute, can be deprecated here
140- Roles []* Role `xml:"Role,omitempty"`
141- SegmentBase * SegmentBase `xml:"SegmentBase,omitempty"`
142- SegmentList * SegmentList `xml:"SegmentList,omitempty"`
143- SegmentTemplate * SegmentTemplate `xml:"SegmentTemplate,omitempty"` // Live Profile Only
144- Representations []* Representation `xml:"Representation,omitempty"`
129+ XMLName xml.Name `xml:"AdaptationSet"`
130+ ID * string `xml:"id,attr"`
131+ SegmentAlignment * bool `xml:"segmentAlignment,attr"`
132+ Lang * string `xml:"lang,attr"`
133+ Group * string `xml:"group,attr"`
134+ PAR * string `xml:"par,attr"`
135+ MinBandwidth * string `xml:"minBandwidth,attr"`
136+ MaxBandwidth * string `xml:"maxBandwidth,attr"`
137+ MinWidth * string `xml:"minWidth,attr"`
138+ MaxWidth * string `xml:"maxWidth,attr"`
139+ MinHeight * string `xml:"minHeight,attr"`
140+ MaxHeight * string `xml:"maxHeight,attr"`
141+ ContentType * string `xml:"contentType,attr"`
142+ ContentProtection []ContentProtectioner `xml:"ContentProtection,omitempty"` // Common attribute, can be deprecated here
143+ Roles []* Role `xml:"Role,omitempty"`
144+ SegmentBase * SegmentBase `xml:"SegmentBase,omitempty"`
145+ SegmentList * SegmentList `xml:"SegmentList,omitempty"`
146+ SegmentTemplate * SegmentTemplate `xml:"SegmentTemplate,omitempty"` // Live Profile Only
147+ Representations []* Representation `xml:"Representation,omitempty"`
145148 AccessibilityElems []* Accessibility `xml:"Accessibility,omitempty"`
146149}
147150
148151func (as * AdaptationSet ) UnmarshalXML (d * xml.Decoder , start xml.StartElement ) error {
149152
150153 adaptationSet := struct {
151154 CommonAttributesAndElements
152- XMLName xml.Name `xml:"AdaptationSet"`
153- ID * string `xml:"id,attr"`
154- SegmentAlignment * bool `xml:"segmentAlignment,attr"`
155- Lang * string `xml:"lang,attr"`
156- Group * string `xml:"group,attr"`
157- PAR * string `xml:"par,attr"`
158- MinBandwidth * string `xml:"minBandwidth,attr"`
159- MaxBandwidth * string `xml:"maxBandwidth,attr"`
160- MinWidth * string `xml:"minWidth,attr"`
161- MaxWidth * string `xml:"maxWidth,attr"`
162- ContentType * string `xml:"contentType,attr"`
163- ContentProtection []ContentProtectioner `xml:"ContentProtection,omitempty"` // Common attribute, can be deprecated here
164- Roles []* Role `xml:"Role,omitempty"`
165- SegmentBase * SegmentBase `xml:"SegmentBase,omitempty"`
166- SegmentList * SegmentList `xml:"SegmentList,omitempty"`
167- SegmentTemplate * SegmentTemplate `xml:"SegmentTemplate,omitempty"` // Live Profile Only
168- Representations []* Representation `xml:"Representation,omitempty"`
155+ XMLName xml.Name `xml:"AdaptationSet"`
156+ ID * string `xml:"id,attr"`
157+ SegmentAlignment * bool `xml:"segmentAlignment,attr"`
158+ Lang * string `xml:"lang,attr"`
159+ Group * string `xml:"group,attr"`
160+ PAR * string `xml:"par,attr"`
161+ MinBandwidth * string `xml:"minBandwidth,attr"`
162+ MaxBandwidth * string `xml:"maxBandwidth,attr"`
163+ MinWidth * string `xml:"minWidth,attr"`
164+ MaxWidth * string `xml:"maxWidth,attr"`
165+ MinHeight * string `xml:"minHeight,attr"`
166+ MaxHeight * string `xml:"maxHeight,attr"`
167+ ContentType * string `xml:"contentType,attr"`
168+ ContentProtection []ContentProtectioner `xml:"ContentProtection,omitempty"` // Common attribute, can be deprecated here
169+ Roles []* Role `xml:"Role,omitempty"`
170+ SegmentBase * SegmentBase `xml:"SegmentBase,omitempty"`
171+ SegmentList * SegmentList `xml:"SegmentList,omitempty"`
172+ SegmentTemplate * SegmentTemplate `xml:"SegmentTemplate,omitempty"` // Live Profile Only
173+ Representations []* Representation `xml:"Representation,omitempty"`
169174 AccessibilityElems []* Accessibility `xml:"Accessibility,omitempty"`
170175 }{}
171176
0 commit comments