π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Take 1
Manav Rathi27070bbe4ca8
diff --git a/web/packages/new/photos/components/FileViewerPhotoSwipe.ts b/web/packages/new/photos/components/FileViewerPhotoSwipe.tsindex f5e0229f5b..e1d8bf7f5c 100644--- a/web/packages/new/photos/components/FileViewerPhotoSwipe.ts+++ b/web/packages/new/photos/components/FileViewerPhotoSwipe.ts@@ -181,6 +181,15 @@ export class FileViewerPhotoSwipe {return itemData ?? {};});+ pswp.on("contentLoad", (e) => {+ console.log(e);+ if (e.content.data.videoURL) {+ const holderEl = e.content.slide.holderElement;+ const vid = document.createElement("h1");+ vid.innerText = "Test";+ holderEl.appendChild(vid);+ }+ });pswp.on("close", () => {// The user did some action within the file viewer to close it. Let// our parent know that we have been closed.@@ -261,7 +270,13 @@ export class FileViewerPhotoSwipe {});const videoURL = await livePhotoSourceURLs.video();console.log(videoURL);- update({ html: livePhotoVideoHTML(videoURL) });+ // update({ html: livePhotoVideoHTML(videoURL) });+ update({+ src: imageURL,+ width: file.pubMagicMetadata?.data?.w,+ height: file.pubMagicMetadata?.data?.h,+ videoURL,+ });break;}}