Skip to content

Invidious is an alternative front-end to YouTube

Fix captions

138138138ac685f65e901
diff --git a/assets/js/player.js b/assets/js/player.js
index 8486d875..aef50926 100644
--- a/assets/js/player.js
+++ b/assets/js/player.js
@@ -673,7 +673,12 @@ if (player.share) player.share(shareOptions);
// show the preferred caption by default
if (player_data.preferred_caption_found) {
player.ready(function () {
- player.textTracks()[0].mode = 'showing';
+ if (!video_data.params.listen && video_data.params.quality === 'dash') {
+ // play.textTracks()[0] on DASH mode is showing some debug messages
+ player.textTracks()[1].mode = 'showing';
+ } else {
+ player.textTracks()[0].mode = 'showing';
+ }
});
}