Skip to content

Commit 912863f

Browse files
authored
Support Dolby XMLNs (#94)
* Support Dolby XMLNs * Add attribute
1 parent 6153c9f commit 912863f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

mpd/mpd.go

+5
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ var (
7171

7272
type MPD struct {
7373
XMLNs *string `xml:"xmlns,attr"`
74+
XMLNsDolby *string `xml:"xmlns:dolby,attr"`
7475
Profiles *string `xml:"profiles,attr"`
7576
Type *string `xml:"type,attr"`
7677
MediaPresentationDuration *string `xml:"mediaPresentationDuration,attr"`
@@ -391,6 +392,10 @@ type AudioChannelConfiguration struct {
391392
Value *string `xml:"value,attr"`
392393
}
393394

395+
func (m *MPD) SetDolbyXMLNs() {
396+
m.XMLNsDolby = Strptr("http://www.dolby.com/ns/online/DASH")
397+
}
398+
394399
// Creates a new static MPD object.
395400
// profile - DASH Profile (Live or OnDemand).
396401
// mediaPresentationDuration - Media Presentation Duration (i.e. PT6M16S).

0 commit comments

Comments
 (0)