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 #2990 from 138138138/master
Safari audio double duration fix for iOS 15
This commit is contained in:
commit
0fa0e8e3f3
1 changed files with 2 additions and 2 deletions
|
@ -675,8 +675,8 @@ if (player_data.preferred_caption_found) {
|
||||||
if (navigator.vendor == "Apple Computer, Inc." && video_data.params.listen) {
|
if (navigator.vendor == "Apple Computer, Inc." && video_data.params.listen) {
|
||||||
player.on('loadedmetadata', function () {
|
player.on('loadedmetadata', function () {
|
||||||
player.on('timeupdate', function () {
|
player.on('timeupdate', function () {
|
||||||
if (player.remainingTime() < player.duration() / 2) {
|
if (player.remainingTime() < player.duration() / 2 && player.remainingTime() >= 2) {
|
||||||
player.currentTime(player.duration() + 1);
|
player.currentTime(player.duration() - 1);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue