diff --git a/mpegdash/nodes.py b/mpegdash/nodes.py index 6029bcd..a194037 100644 --- a/mpegdash/nodes.py +++ b/mpegdash/nodes.py @@ -521,6 +521,7 @@ def __init__(self): self.id = None # xs:unsignedInt self.group = None # xs:unsignedInt self.lang = None # xs:language + self.label = None # xs:string self.content_type = None # xs:string self.par = None # RatioType self.min_bandwidth = None # xs:unsignedInt @@ -553,6 +554,7 @@ def parse(self, xmlnode): self.id = parse_attr_value(xmlnode, 'id', int) self.group = parse_attr_value(xmlnode, 'group', int) self.lang = parse_attr_value(xmlnode, 'lang', str) + self.label = parse_attr_value(xmlnode, 'label', str) self.content_type = parse_attr_value(xmlnode, 'contentType', str) self.par = parse_attr_value(xmlnode, 'par', str) self.min_bandwidth = parse_attr_value(xmlnode, 'minBandwidth', int) @@ -585,6 +587,7 @@ def write(self, xmlnode): write_attr_value(xmlnode, 'id', self.id) write_attr_value(xmlnode, 'group', self.group) write_attr_value(xmlnode, 'lang', self.lang) + write_attr_value(xmlnode, 'label', self.label) write_attr_value(xmlnode, 'contentType', self.content_type) write_attr_value(xmlnode, 'par', self.par) write_attr_value(xmlnode, 'minBandwidth', self.min_bandwidth) diff --git a/mpegdash/schema/dash-mpd.xsd b/mpegdash/schema/dash-mpd.xsd index 1c8a7ac..5f69301 100644 --- a/mpegdash/schema/dash-mpd.xsd +++ b/mpegdash/schema/dash-mpd.xsd @@ -120,6 +120,7 @@ + diff --git a/tests/mpd-samples/sample-001.mpd b/tests/mpd-samples/sample-001.mpd index 7b03ee5..570f0fb 100644 --- a/tests/mpd-samples/sample-001.mpd +++ b/tests/mpd-samples/sample-001.mpd @@ -64,7 +64,7 @@ - + audio/