mirror of
https://github.com/iv-org/invidious.git
synced 2025-05-02 06:26:27 -04:00
do not preload captions
This commit is contained in:
parent
cbc7603248
commit
9b79e35d52
2 changed files with 12 additions and 3 deletions
|
@ -21,6 +21,7 @@ var options = {
|
|||
]
|
||||
},
|
||||
html5: {
|
||||
preloadTextTracks: false,
|
||||
hls: {
|
||||
overrideNative: true
|
||||
}
|
||||
|
@ -547,3 +548,10 @@ window.addEventListener('keydown', e => {
|
|||
if (player.share) {
|
||||
player.share(shareOptions);
|
||||
}
|
||||
|
||||
// show the preferred caption by default
|
||||
if (player_data.preferred_caption_found) {
|
||||
player.ready(() => {
|
||||
player.textTracks()[1].mode = 'showing';
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue