Skip to content

Commit 42fa63a

Browse files
committed
add MPD@suggestedPresentationDelay and AdaptationSet@maxHeight, AdaptationSet@minHeight
1 parent 34ac3a6 commit 42fa63a

File tree

1 file changed

+18
-13
lines changed

1 file changed

+18
-13
lines changed

mpd/mpd.go

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -60,19 +60,20 @@ var (
6060
)
6161

6262
type MPD struct {
63-
XMLNs *string `xml:"xmlns,attr"`
64-
Profiles *string `xml:"profiles,attr"`
65-
Type *string `xml:"type,attr"`
66-
MediaPresentationDuration *string `xml:"mediaPresentationDuration,attr"`
67-
MinBufferTime *string `xml:"minBufferTime,attr"`
68-
AvailabilityStartTime *string `xml:"availabilityStartTime,attr,omitempty"`
69-
MinimumUpdatePeriod *string `xml:"minimumUpdatePeriod,attr"`
70-
PublishTime *string `xml:"publishTime,attr"`
71-
TimeShiftBufferDepth *string `xml:"timeShiftBufferDepth,attr"`
72-
BaseURL string `xml:"BaseURL,omitempty"`
73-
period *Period
74-
Periods []*Period `xml:"Period,omitempty"`
75-
UTCTiming *DescriptorType `xml:"UTCTiming,omitempty"`
63+
XMLNs *string `xml:"xmlns,attr"`
64+
Profiles *string `xml:"profiles,attr"`
65+
Type *string `xml:"type,attr"`
66+
MediaPresentationDuration *string `xml:"mediaPresentationDuration,attr"`
67+
MinBufferTime *string `xml:"minBufferTime,attr"`
68+
AvailabilityStartTime *string `xml:"availabilityStartTime,attr,omitempty"`
69+
MinimumUpdatePeriod *string `xml:"minimumUpdatePeriod,attr"`
70+
PublishTime *string `xml:"publishTime,attr"`
71+
SuggestedPresentationDelay Duration `xml:"suggestedPresentationDelay,attr,omitempty"`
72+
TimeShiftBufferDepth *string `xml:"timeShiftBufferDepth,attr"`
73+
BaseURL string `xml:"BaseURL,omitempty"`
74+
period *Period
75+
Periods []*Period `xml:"Period,omitempty"`
76+
UTCTiming *DescriptorType `xml:"UTCTiming,omitempty"`
7677
}
7778

7879
type Period struct {
@@ -127,6 +128,8 @@ type AdaptationSet struct {
127128
MaxBandwidth *string `xml:"maxBandwidth,attr"`
128129
MinWidth *string `xml:"minWidth,attr"`
129130
MaxWidth *string `xml:"maxWidth,attr"`
131+
MinHeight *string `xml:"minHeight,attr"`
132+
MaxHeight *string `xml:"maxHeight,attr"`
130133
ContentType *string `xml:"contentType,attr"`
131134
ContentProtection []ContentProtectioner `xml:"ContentProtection,omitempty"` // Common attribute, can be deprecated here
132135
Roles []*Role `xml:"Role,omitempty"`
@@ -150,6 +153,8 @@ func (as *AdaptationSet) UnmarshalXML(d *xml.Decoder, start xml.StartElement) er
150153
MaxBandwidth *string `xml:"maxBandwidth,attr"`
151154
MinWidth *string `xml:"minWidth,attr"`
152155
MaxWidth *string `xml:"maxWidth,attr"`
156+
MinHeight *string `xml:"minHeight,attr"`
157+
MaxHeight *string `xml:"maxHeight,attr"`
153158
ContentType *string `xml:"contentType,attr"`
154159
ContentProtection []ContentProtectioner `xml:"ContentProtection,omitempty"` // Common attribute, can be deprecated here
155160
Roles []*Role `xml:"Role,omitempty"`

0 commit comments

Comments
 (0)