1
0
mirror of https://github.com/videojs/video.js.git synced 2024-12-21 01:39:04 +02:00

clear out the display if we turn off all the tracks

This commit is contained in:
Gary Katsevman 2020-10-07 16:33:52 -04:00
parent 3857a02b0a
commit d93acfcf7a

View File

@ -290,6 +290,8 @@ class TextTrackDisplay extends Component {
this.setAttribute('aria-live', 'assertive'); this.setAttribute('aria-live', 'assertive');
} }
this.updateForTrack(descriptionsTrack); this.updateForTrack(descriptionsTrack);
} else {
this.clearDisplay();
} }
} }