Skip to content

Commit

Permalink
Support Dolby XMLNs (#94)
Browse files Browse the repository at this point in the history
* Support Dolby XMLNs

* Add attribute
  • Loading branch information
hatondo-bcov authored Oct 31, 2022
1 parent 6153c9f commit 912863f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mpd/mpd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down Expand Up @@ -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).
Expand Down

0 comments on commit 912863f

Please sign in to comment.