π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Notes
Manav Rathie35fae6c3c3b
diff --git a/web/packages/gallery/components/viewer/photoswipe.ts b/web/packages/gallery/components/viewer/photoswipe.tsindex e0af3ee95c..d57cf638db 100644--- a/web/packages/gallery/components/viewer/photoswipe.ts+++ b/web/packages/gallery/components/viewer/photoswipe.ts@@ -476,13 +476,16 @@ export class FileViewerPhotoSwipe {// "change", so we need to wire up the controls (or hide them) for// the initial slide here also (in addition to in "change").if (currSlideData().fileID == fileID) {- // For reasons I didn't investigate further but are possibly- // related to https://github.com/muxinc/media-chrome/issues/940,- // the association between the media-controller and- // media-control-bar doesn't get established on the first slide- // if we reopen the file viewer.+ // For reasons possibily related to the 1 tick waits in the+ // hls-video implementation (`await Promise.resolve()`), the+ // association between media-controller and media-control-bar+ // doesn't get established on the first slide if we reopen the+ // file viewer.+ //+ // See also: https://github.com/muxinc/media-chrome/issues/940//// As a workaround, defer the association to the next tick.+ //setTimeout(() => updateMediaControls(mediaControllerID), 0);}@@ -1150,7 +1153,6 @@ const videoHTML = (url: string, disableDownload: boolean) => `// import "media-chrome";//// TODO(HLS): Update code above that searches for the video element-// TODO(HLS): Initial slide needs to be resynced cf playsinlineconst hlsVideoHTML = (url: string, mediaControllerID: string) => `<media-controller id="${mediaControllerID}"><hls-video playsinline slot="media" src="${url}"></hls-video>@@ -1163,6 +1165,13 @@ const hlsVideoHTML = (url: string, mediaControllerID: string) => `** To make these functional, the `media-control-bar` requires the* `mediacontroller="${mediaControllerID}"` attribute.+ *+ * Notes:+ *+ * - Examples: https://media-chrome.mux.dev/examples/vanilla/+ *+ * - When PiP is active and the video moves out, the browser displays some+ * indicator (browser specific) in the in-page video element.*/const hlsVideoControlsHTML = () => `<media-control-bar>