Skip to content

Commit 10a65ef

Browse files
authored
Merge pull request #1837 from CastagnaIT/dash_acc
[DashTree] Add urn:tva:metadata:cs:AudioPurposeCS:2007 parsing
2 parents e084c2e + 114f4a9 commit 10a65ef

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/parser/DASHTree.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,13 @@ void adaptive::CDashTree::ParseTagAdaptationSet(pugi::xml_node nodeAdp, PLAYLIST
527527
if (STRING::StartsWith(value, "caption")) // caption or captions
528528
adpSet->SetIsImpaired(true);
529529
}
530+
else if (schemeIdUri == "urn:tva:metadata:cs:AudioPurposeCS:2007")
531+
{
532+
if (value == "1") // Visually impaired
533+
adpSet->SetIsImpaired(true);
534+
else if (value == "2") // Hearing impaired
535+
adpSet->SetIsImpaired(true);
536+
}
530537
}
531538

532539
if (contentType.empty())

0 commit comments

Comments
 (0)