Commit 3e7441cc authored by Francois Cartegnie's avatar Francois Cartegnie

demux: dash: pass role as description

parent 6da0f4be
...@@ -239,6 +239,14 @@ void IsoffMainParser::setAdaptationSets (Node *periodNode, Period *period) ...@@ -239,6 +239,14 @@ void IsoffMainParser::setAdaptationSets (Node *periodNode, Period *period)
if(baseUrl) if(baseUrl)
adaptationSet->baseUrl.Set(new Url(baseUrl->getText())); adaptationSet->baseUrl.Set(new Url(baseUrl->getText()));
Node *role = DOMHelper::getFirstChildElementByName((*it), "Role");
if(role && role->hasAttribute("schemeIdUri") && role->hasAttribute("value"))
{
std::string uri = role->getAttributeValue("schemeIdUri");
if(uri == "urn:mpeg:dash:role:2011")
adaptationSet->description.Set(role->getAttributeValue("value"));
}
parseSegmentInformation( *it, adaptationSet ); parseSegmentInformation( *it, adaptationSet );
setRepresentations((*it), adaptationSet); setRepresentations((*it), adaptationSet);
......
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