Skip to content

Commit 06f5c1f

Browse files
author
Andrew Sinclair
committed
Add ContentType to AdaptationSet
1 parent 985f990 commit 06f5c1f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mpd/mpd.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ type AdaptationSet struct {
125125
MaxBandwidth *string `xml:"maxBandwidth,attr"`
126126
MinWidth *string `xml:"minWidth,attr"`
127127
MaxWidth *string `xml:"maxWidth,attr"`
128+
ContentType *string `xml:"contentType,attr"`
128129
ContentProtection []ContentProtectioner `xml:"ContentProtection,omitempty"` // Common attribute, can be deprecated here
129130
Roles []*Role `xml:"Role,omitempty"`
130131
SegmentBase *SegmentBase `xml:"SegmentBase,omitempty"`
@@ -147,6 +148,7 @@ func (as *AdaptationSet) UnmarshalXML(d *xml.Decoder, start xml.StartElement) er
147148
MaxBandwidth *string `xml:"maxBandwidth,attr"`
148149
MinWidth *string `xml:"minWidth,attr"`
149150
MaxWidth *string `xml:"maxWidth,attr"`
151+
ContentType *string `xml:"contentType,attr"`
150152
ContentProtection []ContentProtectioner `xml:"ContentProtection,omitempty"` // Common attribute, can be deprecated here
151153
Roles []*Role `xml:"Role,omitempty"`
152154
SegmentBase *SegmentBase `xml:"SegmentBase,omitempty"`

0 commit comments

Comments
 (0)