Skip to content

Commit 5b791a9

Browse files
minhkstnminh-fokusdsilhavy
authored
add Accessibility in the Controlbar (Dash-Industry-Forum#4791)
* add Accessibility in the Controlbar * group Accessibility with Role * Minor refactoring --------- Co-authored-by: [email protected] <[email protected]> Co-authored-by: Daniel Silhavy <[email protected]>
1 parent 26cba09 commit 5b791a9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

contrib/akamai/controlbar/ControlBar.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,10 +580,14 @@ var ControlBar = function (dashjsMediaPlayer, displayUTCTimeCodes) {
580580
info += 'Language - ' + element.lang + ' ';
581581
}
582582

583-
if (element.roles[0]) {
583+
if (element.roles && element.roles.length > 0) {
584584
info += '- Role: ' + element.roles[0].value + ' ';
585585
}
586586

587+
if (element.accessibility && element.accessibility.length > 0) {
588+
info += '- Accessibility: ' + element.accessibility[0].value + ' ';
589+
}
590+
587591
if (element.codec) {
588592
info += '- Codec: ' + element.codec + ' ';
589593
}

0 commit comments

Comments
 (0)