From 912863f07c8a604109d8fc303d3ffa6215f42a70 Mon Sep 17 00:00:00 2001 From: Humberto Atondo <88110879+hatondo-bcov@users.noreply.github.com> Date: Mon, 31 Oct 2022 15:28:27 -0600 Subject: [PATCH] Support Dolby XMLNs (#94) * Support Dolby XMLNs * Add attribute --- mpd/mpd.go | 5 +++++ 1 file changed, 5 insertions(+) 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).