]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Show poster image when playing audio-only content, do not hide controls
authorfrankdelange <yetangitu-f@unternet.org>
Fri, 1 Nov 2019 09:33:17 +0000 (10:33 +0100)
committerChocobozzz <me@florianbigard.com>
Mon, 25 Nov 2019 09:59:48 +0000 (10:59 +0100)
Add '.vjs-playing-audio-only-content' class to:
 - show poster image
 - disable controls auto-hide

...when playing audio-only content

client/src/sass/player/peertube-skin.scss

index 4bf48a5704d546b077b6e47d23056a9f1958565d..8230681f6bee00473c561f7e3ad9b825029197fe 100644 (file)
@@ -104,6 +104,18 @@ body {
     }
   }
 
+  // Show poster and controls when playing audio-only content
+  &.vjs-playing-audio-only-content {
+    .vjs-poster {
+      display: block;
+      visibility: visible;
+    }
+
+    .vjs-control-bar {
+      opacity: $primary-foreground-opacity-hover;
+    }
+  }
+
   // Hide the big play button on autoplay
   &.vjs-has-autoplay {
     .vjs-big-play-button {