Phantom play bug fix, sort of

This commit is contained in:
goodtube4u
2025-11-16 15:27:59 +10:00
parent a866298fac
commit 768b513303
2 changed files with 10 additions and 6 deletions

View File

@@ -1013,8 +1013,10 @@
goodTube_player_syncStartingTime();
}
// Play the video (this solves some edge cases)
goodTube_player_play();
// Play the video (this solves some edge cases in Firefox)
if (navigator.userAgent.toLowerCase().indexOf('firefox') !== -1) {
goodTube_player_play();
}
}
// Sync the starting time
@@ -1976,8 +1978,10 @@
// Sync the autoplay
goodTube_hideAndMuteAdsFallback_syncAutoplay();
// Play the video (this solves some edge cases)
goodTube_player_play();
// Play the video (this solves some edge cases in Firefox)
if (navigator.userAgent.toLowerCase().indexOf('firefox') !== -1) {
goodTube_player_play();
}
// If we're in fullscreen already
if (document.fullscreenElement) {

4
goodtube.min.js vendored

File diff suppressed because one or more lines are too long