Prevent player mobile buttons flickering

This commit is contained in:
Chocobozzz 2023-11-20 09:42:54 +01:00
parent d4f21493e1
commit 79a61fa9c6
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 5 additions and 1 deletions

View File

@ -58,6 +58,8 @@ class PeerTubePlugin extends Plugin {
this.initializePlayer()
this.initOnVideoChange()
this.player.removeClass('vjs-can-play')
this.deleteLegacyIndexedDB()
this.player.on('autoplay-failure', () => {
@ -85,6 +87,8 @@ class PeerTubePlugin extends Plugin {
const muted = playerOptions.muted !== undefined ? playerOptions.muted : getStoredMute()
if (muted !== undefined) this.player.muted(muted)
this.player.addClass('vjs-can-play')
})
this.player.ready(() => {

View File

@ -161,7 +161,7 @@
}
}
.vjs-has-started {
.vjs-can-play.vjs-has-started {
&.vjs-user-active,
&.vjs-paused {