Skip to content

armgit / ente

Public Imported from GitHub
0

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

Sketch

Manav Rathi78c35e25715e
diff --git a/web/docs/dependencies.md b/web/docs/dependencies.md
index 4ae5094eba..89007cc56a 100644
--- a/web/docs/dependencies.md
+++ b/web/docs/dependencies.md
@@ -133,8 +133,10 @@ For showing the app's UI in multiple languages, we use the
[i18next](https://www.i18next.com), specifically its three components
- [i18next](https://github.com/i18next/i18next): The core `i18next` library.
+
- [react-i18next](https://github.com/i18next/react-i18next): React specific
support in `i18next`.
+
- [i18next-http-backend](https://github.com/i18next/i18next-http-backend): Adds
support for initializing `i18next` with JSON file containing the translation
in a particular language, fetched at runtime.
@@ -173,7 +175,9 @@ via [@fontsource-variable/inter](https://fontsource.org/fonts/inter/install).
layer on top of web workers to make them more easier to use.
- [idb](https://github.com/jakearchibald/idb) provides a promise API over the
- browser-native IndexedDB APIs.
+ browser-native IndexedDB APIs. Older code (the file and collection store),
+ uses [localForage](https://github.com/localForage/localForage) for IndexedDB
+ access.
> For more details about IDB and its role, see [storage.md](storage.md).
diff --git a/web/docs/storage.md b/web/docs/storage.md
index 0a1ed94d68..c5077bcd5a 100644
--- a/web/docs/storage.md
+++ b/web/docs/storage.md
@@ -41,6 +41,7 @@ For more details, see:
- https://web.dev/articles/indexeddb
- https://github.com/jakearchibald/idb
+- https://github.com/localForage/localForage
## OPFS
diff --git a/web/packages/gallery/services/video.ts b/web/packages/gallery/services/video.ts
new file mode 100644
index 0000000000..948e2acffa
--- /dev/null
+++ b/web/packages/gallery/services/video.ts
@@ -0,0 +1,13 @@
+import type { EnteFile } from "@/media/file";
+import { wait } from "@/utils/promise";
+
+/**
+ * Return a HLS playlist that can be used to stream playback of thne given video
+ * {@link file}.
+ *
+ * @param file An {@link EnteFile} of type
+ */
+export const hlsPlaylistForFile = async (file: EnteFile) => {
+ await wait(0);
+ return file.id;
+};