diff --git a/mpegdash/nodes.py b/mpegdash/nodes.py index d35601e..0ddbd97 100644 --- a/mpegdash/nodes.py +++ b/mpegdash/nodes.py @@ -226,6 +226,7 @@ def __init__(self): self.duration = None # xs:unsignedInt self.start_number = None # xs:unsignedInt + self.end_number = None # xs:unsignedInt self.segment_timelines = None # SegmentTimelineType* self.bitstream_switchings = None # URLType* @@ -235,6 +236,7 @@ def parse(self, xmlnode): self.duration = parse_attr_value(xmlnode, 'duration', int) self.start_number = parse_attr_value(xmlnode, 'startNumber', int) + self.end_number = parse_attr_value(xmlnode, 'endNumber', int) self.segment_timelines = parse_child_nodes(xmlnode, 'SegmentTimeline', SegmentTimeline) self.bitstream_switchings = parse_child_nodes(xmlnode, 'BitstreamSwitching', URL) @@ -244,6 +246,7 @@ def write(self, xmlnode): write_attr_value(xmlnode, 'duration', self.duration) write_attr_value(xmlnode, 'startNumber', self.start_number) + write_attr_value(xmlnode, 'endNumber', self.end_number) write_child_node(xmlnode, 'SegmentTimeline', self.segment_timelines) write_child_node(xmlnode, 'BitstreamSwitching', self.bitstream_switchings) diff --git a/mpegdash/schema/dash-mpd.xsd b/mpegdash/schema/dash-mpd.xsd index 5f69301..d2609a1 100644 --- a/mpegdash/schema/dash-mpd.xsd +++ b/mpegdash/schema/dash-mpd.xsd @@ -293,6 +293,7 @@ + diff --git a/setup.py b/setup.py index 3783e6b..20b593d 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ long_description_content_type='text/markdown', author="sangwonl", author_email="gamzabaw@gmail.com", - version="0.3.0", + version="0.3.1", license="MIT", zip_safe=False, include_package_data=True,