π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Move controls out
Manav Rathi3ab8c348b09e
diff --git a/web/apps/photos/src/styles/photoswipe.css b/web/apps/photos/src/styles/photoswipe.cssindex 984f861351..8080be990a 100644--- a/web/apps/photos/src/styles/photoswipe.css+++ b/web/apps/photos/src/styles/photoswipe.css@@ -188,3 +188,21 @@width: 100%;height: 100%;}++/*+ Style the custom video controls we provide.+ */+.pswp-ente .media-controller-container {+ min-height: 100%;+ display: flex;+ flex-direction: column;+ justify-content: center;+ position: relative;+}++.pswp-ente .media-controller-container media-control-bar {+ position: absolute;+ bottom: 0;+ left: 0;+ width: 100%;+}diff --git a/web/packages/gallery/components/viewer/photoswipe.ts b/web/packages/gallery/components/viewer/photoswipe.tsindex 5aa4ebff0d..dfa2df57b9 100644--- a/web/packages/gallery/components/viewer/photoswipe.ts+++ b/web/packages/gallery/components/viewer/photoswipe.ts@@ -310,7 +310,10 @@ export class FileViewerPhotoSwipe {const { videoURL, videoPlaylistURL, ...rest } = itemData;if (itemData.fileType === FileType.video) {if (videoPlaylistURL) {- return { ...rest, html: hlsVideoHTML(videoPlaylistURL) };+ return {+ ...rest,+ html: hlsVideoHTML(videoPlaylistURL, file.id),+ };} else if (videoURL) {return {...rest,@@ -1086,13 +1089,15 @@ const videoHTML = (url: string, disableDownload: boolean) => `// import "media-chrome";//// TODO: Update code above that searches for the video element-const hlsVideoHTML = (url: string) => `-<media-controller>- <hls-video slot="media" src="${url}"></hls-video>- <media-control-bar>+const hlsVideoHTML = (url: string, fileID: number) => `+<div class="media-controller-container">+ <media-controller id="ente-mc-${fileID}">+ <hls-video slot="media" src="${url}"></hls-video>+ </media-controller>+ <media-control-bar mediacontroller="ente-mc-${fileID}"><media-play-button></media-play-button></media-control-bar>-</media-controller>+</div>`;const livePhotoVideoHTML = (videoURL: string) => `