Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

More controls

Manav Rathie5720c190654
diff --git a/web/apps/photos/src/styles/photoswipe.css b/web/apps/photos/src/styles/photoswipe.css
index f16955ed5e..7bcd8628a9 100644
--- a/web/apps/photos/src/styles/photoswipe.css
+++ b/web/apps/photos/src/styles/photoswipe.css
@@ -205,6 +205,7 @@
width: 100%;
}
+/* Hide the controls if they're not associated to a media-controller. */
.pswp-ente .pswp__media-controls media-control-bar:not([mediacontroller]) {
display: none;
}
diff --git a/web/packages/gallery/components/viewer/photoswipe.ts b/web/packages/gallery/components/viewer/photoswipe.ts
index accb70cf84..8e68e1ef60 100644
--- a/web/packages/gallery/components/viewer/photoswipe.ts
+++ b/web/packages/gallery/components/viewer/photoswipe.ts
@@ -1166,6 +1166,10 @@ const hlsVideoHTML = (url: string, mediaControllerID: string) => `
const hlsVideoControlsHTML = () => `
<media-control-bar>
<media-play-button></media-play-button>
+ <media-mute-button></media-mute-button>
+ <media-time-range></media-time-range>
+ <media-time-display></media-time-display>
+ <media-fullscreen-button></media-fullscreen-button>
</media-control-bar>
`;