Commit a3d9425c authored by François Cartegnie's avatar François Cartegnie 🤞
Browse files

demux: adaptative: parse dash codecs

parent 40fce919
......@@ -285,6 +285,20 @@ void IsoffMainParser::setRepresentations (Node *adaptationSetNode, Adaptation
if(repNode->hasAttribute("mimeType"))
currentRepresentation->setMimeType(repNode->getAttributeValue("mimeType"));
if(repNode->hasAttribute("codecs"))
{
std::list<std::string> list = Helper::tokenize(repNode->getAttributeValue("codecs"), ',');
std::list<std::string>::const_iterator it;
for(it=list.begin(); it!=list.end(); ++it)
{
std::size_t pos = (*it).find_first_of('.', 0);
if(pos != std::string::npos)
currentRepresentation->addCodec((*it).substr(0, pos));
else
currentRepresentation->addCodec(*it);
}
}
parseSegmentInformation(repNode, currentRepresentation);
adaptationSet->addRepresentation(currentRepresentation);
......
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