mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2023-06-08.git
synced 2024-08-15 00:53:38 +00:00
Merge pull request #1735 from 138138138/patch-1
iOS audio mode double duration fix
This commit is contained in:
commit
489d0151ad
1 changed files with 12 additions and 1 deletions
|
@ -555,3 +555,14 @@ if (player_data.preferred_caption_found) {
|
||||||
player.textTracks()[1].mode = 'showing';
|
player.textTracks()[1].mode = 'showing';
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Safari audio double duration fix
|
||||||
|
if (navigator.vendor == "Apple Computer, Inc." && video_data.params.listen) {
|
||||||
|
player.on('loadedmetadata', function () {
|
||||||
|
player.on('timeupdate', function () {
|
||||||
|
if (player.remainingTime() < player.duration() / 2) {
|
||||||
|
player.currentTime(player.duration() + 1);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue