Commit 4f6a2a57 authored by Francois Cartegnie's avatar Francois Cartegnie

demux: dash: parse maxSegmentDuration & minUpdatePeriod

parent d7ace43f
......@@ -73,6 +73,14 @@ void IsoffMainParser::setMPDAttributes ()
if(it != attr.end())
this->mpd->minBufferTime.Set(IsoTime(it->second));
it = attr.find("minimumUpdatePeriod");
if(it != attr.end())
mpd->minUpdatePeriod.Set(IsoTime(it->second));
it = attr.find("maxSegmentDuration");
if(it != attr.end())
mpd->maxSegmentDuration.Set(IsoTime(it->second));
it = attr.find("type");
if(it != attr.end())
mpd->setType(it->second);
......
......@@ -44,6 +44,7 @@ MPD::MPD (stream_t *stream_, Profile profile_) :
availabilityEndTime.Set( 0 );
duration.Set( 0 );
minUpdatePeriod.Set( 0 );
maxSegmentDuration.Set( 0 );
minBufferTime.Set( 0 );
timeShiftBufferDepth.Set( 0 );
programInfo.Set( NULL );
......
......@@ -67,6 +67,7 @@ namespace dash
Property<time_t> availabilityEndTime;
Property<time_t> availabilityStartTime;
Property<time_t> minUpdatePeriod;
Property<time_t> maxSegmentDuration;
Property<time_t> minBufferTime;
Property<time_t> timeShiftBufferDepth;
Property<ProgramInformation *> programInfo;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment