aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets/player/shared/web-video
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-07-13 13:37:10 +0200
committerChocobozzz <me@florianbigard.com>2023-07-17 11:31:46 +0200
commit28dd2f14f5bdfd4781e489c42db6eaa7d40d560b (patch)
treec46a1b3f1df55e1ab80eab9e651784ddb91bde9c /client/src/assets/player/shared/web-video
parent930e1b939a8f4bdc6586eb5bc1fc531e6c13bfcd (diff)
downloadPeerTube-28dd2f14f5bdfd4781e489c42db6eaa7d40d560b.tar.gz
PeerTube-28dd2f14f5bdfd4781e489c42db6eaa7d40d560b.tar.zst
PeerTube-28dd2f14f5bdfd4781e489c42db6eaa7d40d560b.zip
Some player fixes on Android, Safari and iOS
Diffstat (limited to 'client/src/assets/player/shared/web-video')
-rw-r--r--client/src/assets/player/shared/web-video/web-video-plugin.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/client/src/assets/player/shared/web-video/web-video-plugin.ts b/client/src/assets/player/shared/web-video/web-video-plugin.ts
index 80e56795b..930b5045a 100644
--- a/client/src/assets/player/shared/web-video/web-video-plugin.ts
+++ b/client/src/assets/player/shared/web-video/web-video-plugin.ts
@@ -77,6 +77,9 @@ class WebVideoPlugin extends Plugin {
77 77
78 const oldAutoplayValue = this.player.autoplay() 78 const oldAutoplayValue = this.player.autoplay()
79 if (options.isUserResolutionChange) { 79 if (options.isUserResolutionChange) {
80 // Prevent video source element displaying the poster when we change the resolution
81 (this.player.el() as HTMLVideoElement).poster = ''
82
80 this.player.autoplay(false) 83 this.player.autoplay(false)
81 this.player.addClass('vjs-updating-resolution') 84 this.player.addClass('vjs-updating-resolution')
82 } 85 }