Commit a013e25a authored by Francois Cartegnie's avatar Francois Cartegnie

demux: dash: handle Period Id

parent ea06a8cd
...@@ -99,6 +99,8 @@ void IsoffMainParser::parsePeriods(Node *root) ...@@ -99,6 +99,8 @@ void IsoffMainParser::parsePeriods(Node *root)
parseSegmentInformation(*it, period); parseSegmentInformation(*it, period);
if((*it)->hasAttribute("start")) if((*it)->hasAttribute("start"))
period->startTime.Set(IsoTime((*it)->getAttributeValue("start"))); period->startTime.Set(IsoTime((*it)->getAttributeValue("start")));
if((*it)->hasAttribute("id"))
period->setId((*it)->getAttributeValue("id"));
setAdaptationSets(*it, period); setAdaptationSets(*it, period);
mpd->addPeriod(period); mpd->addPeriod(period);
} }
......
...@@ -39,7 +39,8 @@ namespace dash ...@@ -39,7 +39,8 @@ namespace dash
{ {
class MPD; class MPD;
class Period : public SegmentInformation class Period : public SegmentInformation,
public UniqueNess<Period>
{ {
public: public:
Period(MPD *); Period(MPD *);
......
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