mirror of
https://github.com/iv-org/invidious.git
synced 2024-12-21 21:45:06 -05:00
Merge pull request #3157 from 138138138/138138138-fix-captions
This commit is contained in:
commit
ea35d92493
@ -673,7 +673,12 @@ if (player.share) player.share(shareOptions);
|
|||||||
// show the preferred caption by default
|
// show the preferred caption by default
|
||||||
if (player_data.preferred_caption_found) {
|
if (player_data.preferred_caption_found) {
|
||||||
player.ready(function () {
|
player.ready(function () {
|
||||||
|
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';
|
player.textTracks()[1].mode = 'showing';
|
||||||
|
} else {
|
||||||
|
player.textTracks()[0].mode = 'showing';
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user