ente/web/packages/media
Manav Rathi af79db90d0
Doesn't work for us yet
Current version throws
    Module build failed: UnhandledSchemeError: Reading from "node:buffer" is not handled by plugins (Unhandled scheme).
    Webpack supports "data:" and "file:" URIs by default.
    You may need an additional plugin to handle "node:" URIs.

See: https://github.com/sindresorhus/file-type/issues/502

There are ways around by using polyfills, e.g.
- https://stackoverflow.com/questions/76500464/issues-while-using-gradio-client-in-next-js/76522223#76522223
- https://github.com/vercel/next.js/discussions/33982

but since no functional changes in the detection that impact us have been made,
stay back at the old version for now.
2024-04-24 18:44:09 +05:30
..
.eslintrc.js Create a package to share code between photos and cast 2024-04-17 09:47:28 +05:30
file-type.ts type-detect 2024-04-24 18:06:52 +05:30
live-photo.ts type-detect 2024-04-24 18:06:52 +05:30
package.json Doesn't work for us yet 2024-04-24 18:44:09 +05:30
README.md Create a package to share code between photos and cast 2024-04-17 09:47:28 +05:30
tsconfig.json Create a package to share code between photos and cast 2024-04-17 09:47:28 +05:30

@/media

A package for sharing code between our apps that show media (photos, videos).

Specifically, this is the intersection of code required by both the photos and cast apps.

Packaging

This (internal) package exports a React TypeScript library. We rely on the importing project to transpile and bundle it.