diff --git a/mpd/mpd.go b/mpd/mpd.go index 5ca9458..e491bd0 100644 --- a/mpd/mpd.go +++ b/mpd/mpd.go @@ -71,6 +71,7 @@ var ( type MPD struct { XMLNs *string `xml:"xmlns,attr"` + XMLNsDolby *string `xml:"xmlns:dolby,attr"` Profiles *string `xml:"profiles,attr"` Type *string `xml:"type,attr"` MediaPresentationDuration *string `xml:"mediaPresentationDuration,attr"` @@ -391,6 +392,10 @@ type AudioChannelConfiguration struct { Value *string `xml:"value,attr"` } +func (m *MPD) SetDolbyXMLNs() { + m.XMLNsDolby = Strptr("http://www.dolby.com/ns/online/DASH") +} + // Creates a new static MPD object. // profile - DASH Profile (Live or OnDemand). // mediaPresentationDuration - Media Presentation Duration (i.e. PT6M16S).