@@ -79,6 +79,7 @@ type MPD struct {
7979 TimeShiftBufferDepth * string `xml:"timeShiftBufferDepth,attr"`
8080 SuggestedPresentationDelay * Duration `xml:"suggestedPresentationDelay,attr,omitempty"`
8181 BaseURL string `xml:"BaseURL,omitempty"`
82+ Location string `xml:"Location,omitempty"`
8283 period * Period
8384 Periods []* Period `xml:"Period,omitempty"`
8485 UTCTiming * DescriptorType `xml:"UTCTiming,omitempty"`
@@ -127,51 +128,51 @@ type CommonAttributesAndElements struct {
127128
128129type AdaptationSet struct {
129130 CommonAttributesAndElements
130- XMLName xml.Name `xml:"AdaptationSet"`
131- ID * string `xml:"id,attr"`
132- SegmentAlignment * bool `xml:"segmentAlignment,attr"`
133- Lang * string `xml:"lang,attr"`
134- Group * string `xml:"group,attr"`
135- PAR * string `xml:"par,attr"`
136- MinBandwidth * string `xml:"minBandwidth,attr"`
137- MaxBandwidth * string `xml:"maxBandwidth,attr"`
138- MinWidth * string `xml:"minWidth,attr"`
139- MaxWidth * string `xml:"maxWidth,attr"`
140- MinHeight * string `xml:"minHeight,attr"`
141- MaxHeight * string `xml:"maxHeight,attr"`
142- ContentType * string `xml:"contentType,attr"`
143- ContentProtection []ContentProtectioner `xml:"ContentProtection,omitempty"` // Common attribute, can be deprecated here
144- Roles []* Role `xml:"Role,omitempty"`
145- SegmentBase * SegmentBase `xml:"SegmentBase,omitempty"`
146- SegmentList * SegmentList `xml:"SegmentList,omitempty"`
147- SegmentTemplate * SegmentTemplate `xml:"SegmentTemplate,omitempty"` // Live Profile Only
148- Representations []* Representation `xml:"Representation,omitempty"`
131+ XMLName xml.Name `xml:"AdaptationSet"`
132+ ID * string `xml:"id,attr"`
133+ SegmentAlignment * bool `xml:"segmentAlignment,attr"`
134+ Lang * string `xml:"lang,attr"`
135+ Group * string `xml:"group,attr"`
136+ PAR * string `xml:"par,attr"`
137+ MinBandwidth * string `xml:"minBandwidth,attr"`
138+ MaxBandwidth * string `xml:"maxBandwidth,attr"`
139+ MinWidth * string `xml:"minWidth,attr"`
140+ MaxWidth * string `xml:"maxWidth,attr"`
141+ MinHeight * string `xml:"minHeight,attr"`
142+ MaxHeight * string `xml:"maxHeight,attr"`
143+ ContentType * string `xml:"contentType,attr"`
144+ ContentProtection []ContentProtectioner `xml:"ContentProtection,omitempty"` // Common attribute, can be deprecated here
145+ Roles []* Role `xml:"Role,omitempty"`
146+ SegmentBase * SegmentBase `xml:"SegmentBase,omitempty"`
147+ SegmentList * SegmentList `xml:"SegmentList,omitempty"`
148+ SegmentTemplate * SegmentTemplate `xml:"SegmentTemplate,omitempty"` // Live Profile Only
149+ Representations []* Representation `xml:"Representation,omitempty"`
149150 AccessibilityElems []* Accessibility `xml:"Accessibility,omitempty"`
150151}
151152
152153func (as * AdaptationSet ) UnmarshalXML (d * xml.Decoder , start xml.StartElement ) error {
153154
154155 adaptationSet := struct {
155156 CommonAttributesAndElements
156- XMLName xml.Name `xml:"AdaptationSet"`
157- ID * string `xml:"id,attr"`
158- SegmentAlignment * bool `xml:"segmentAlignment,attr"`
159- Lang * string `xml:"lang,attr"`
160- Group * string `xml:"group,attr"`
161- PAR * string `xml:"par,attr"`
162- MinBandwidth * string `xml:"minBandwidth,attr"`
163- MaxBandwidth * string `xml:"maxBandwidth,attr"`
164- MinWidth * string `xml:"minWidth,attr"`
165- MaxWidth * string `xml:"maxWidth,attr"`
166- MinHeight * string `xml:"minHeight,attr"`
167- MaxHeight * string `xml:"maxHeight,attr"`
168- ContentType * string `xml:"contentType,attr"`
169- ContentProtection []ContentProtectioner `xml:"ContentProtection,omitempty"` // Common attribute, can be deprecated here
170- Roles []* Role `xml:"Role,omitempty"`
171- SegmentBase * SegmentBase `xml:"SegmentBase,omitempty"`
172- SegmentList * SegmentList `xml:"SegmentList,omitempty"`
173- SegmentTemplate * SegmentTemplate `xml:"SegmentTemplate,omitempty"` // Live Profile Only
174- Representations []* Representation `xml:"Representation,omitempty"`
157+ XMLName xml.Name `xml:"AdaptationSet"`
158+ ID * string `xml:"id,attr"`
159+ SegmentAlignment * bool `xml:"segmentAlignment,attr"`
160+ Lang * string `xml:"lang,attr"`
161+ Group * string `xml:"group,attr"`
162+ PAR * string `xml:"par,attr"`
163+ MinBandwidth * string `xml:"minBandwidth,attr"`
164+ MaxBandwidth * string `xml:"maxBandwidth,attr"`
165+ MinWidth * string `xml:"minWidth,attr"`
166+ MaxWidth * string `xml:"maxWidth,attr"`
167+ MinHeight * string `xml:"minHeight,attr"`
168+ MaxHeight * string `xml:"maxHeight,attr"`
169+ ContentType * string `xml:"contentType,attr"`
170+ ContentProtection []ContentProtectioner `xml:"ContentProtection,omitempty"` // Common attribute, can be deprecated here
171+ Roles []* Role `xml:"Role,omitempty"`
172+ SegmentBase * SegmentBase `xml:"SegmentBase,omitempty"`
173+ SegmentList * SegmentList `xml:"SegmentList,omitempty"`
174+ SegmentTemplate * SegmentTemplate `xml:"SegmentTemplate,omitempty"` // Live Profile Only
175+ Representations []* Representation `xml:"Representation,omitempty"`
175176 AccessibilityElems []* Accessibility `xml:"Accessibility,omitempty"`
176177 }{}
177178
0 commit comments