diff options
| author | Samantaz Fox <coding@samantaz.fr> | 2022-07-06 23:22:56 +0200 |
|---|---|---|
| committer | Samantaz Fox <coding@samantaz.fr> | 2022-07-06 23:22:56 +0200 |
| commit | ea35d924933449db2e5bcb6197c70ea8d47dcf09 (patch) | |
| tree | ff587fd8ab97b7bbcc06866927d265f4d68eeb3a /assets/js | |
| parent | beb9894c478f840407fc89caad8ad18e9519c640 (diff) | |
| parent | ac685f65e9011b226f580917efc8392b16e5a8f4 (diff) | |
| download | invidious-ea35d924933449db2e5bcb6197c70ea8d47dcf09.tar.gz invidious-ea35d924933449db2e5bcb6197c70ea8d47dcf09.tar.bz2 invidious-ea35d924933449db2e5bcb6197c70ea8d47dcf09.zip | |
Merge pull request #3157 from 138138138/138138138-fix-captions
Diffstat (limited to 'assets/js')
| -rw-r--r-- | assets/js/player.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/assets/js/player.js b/assets/js/player.js index 7d099e66..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()[1].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'; + } }); } |
