@@ -67,9 +67,12 @@ type MPD struct {
6767 MinBufferTime * string `xml:"minBufferTime,attr"`
6868 AvailabilityStartTime * string `xml:"availabilityStartTime,attr,omitempty"`
6969 MinimumUpdatePeriod * string `xml:"minimumUpdatePeriod,attr"`
70+ PublishTime * string `xml:"publishTime,attr"`
71+ TimeShiftBufferDepth * string `xml:"timeShiftBufferDepth,attr"`
7072 BaseURL string `xml:"BaseURL,omitempty"`
7173 period * Period
72- Periods []* Period `xml:"Period,omitempty"`
74+ Periods []* Period `xml:"Period,omitempty"`
75+ UTCTiming * DescriptorType `xml:"UTCTiming,omitempty"`
7376}
7477
7578type Period struct {
@@ -124,6 +127,7 @@ type AdaptationSet struct {
124127 MaxBandwidth * string `xml:"maxBandwidth,attr"`
125128 MinWidth * string `xml:"minWidth,attr"`
126129 MaxWidth * string `xml:"maxWidth,attr"`
130+ ContentType * string `xml:"contentType,attr"`
127131 ContentProtection []ContentProtectioner `xml:"ContentProtection,omitempty"` // Common attribute, can be deprecated here
128132 Roles []* Role `xml:"Role,omitempty"`
129133 SegmentBase * SegmentBase `xml:"SegmentBase,omitempty"`
@@ -146,6 +150,7 @@ func (as *AdaptationSet) UnmarshalXML(d *xml.Decoder, start xml.StartElement) er
146150 MaxBandwidth * string `xml:"maxBandwidth,attr"`
147151 MinWidth * string `xml:"minWidth,attr"`
148152 MaxWidth * string `xml:"maxWidth,attr"`
153+ ContentType * string `xml:"contentType,attr"`
149154 ContentProtection []ContentProtectioner `xml:"ContentProtection,omitempty"` // Common attribute, can be deprecated here
150155 Roles []* Role `xml:"Role,omitempty"`
151156 SegmentBase * SegmentBase `xml:"SegmentBase,omitempty"`
@@ -478,6 +483,7 @@ func NewDynamicMPD(profile DashProfile, availabilityStartTime, minBufferTime str
478483 MinBufferTime : Strptr (minBufferTime ),
479484 period : period ,
480485 Periods : []* Period {period },
486+ UTCTiming : & DescriptorType {},
481487 }
482488
483489 for i := range attributes {
0 commit comments