attachment_engine_web 0.0.1-dev.1
attachment_engine_web: ^0.0.1-dev.1 copied to clipboard
Web implementation of attachment_engine providing Web Share API, OPFS storage, fetch downloads, and HTML5 video/audio playback.
0.0.1-dev.1 #
- Initial development release: share (
shareText, via the Web Share API) and open-externally (window.open) — via rawdart:js_interop(a Dart SDK core library, not even a pub package). - Added paths (
getApplicationSupportDirectory/getApplicationCacheDirectory) via the Origin Private File System (OPFS,navigator.storage.getDirectory()), returning a stable logical key rather than a real OS path — see README for details. - Added download (
startDownload/resumeDownload/cancelDownload/downloadEvents) viafetch()streamed chunk-by-chunk into OPFS, withAbortController-backed cancellation and the same{downloadId, type, received, total, path, message}event shape used by the other platforms. - Added video/audio playback (
video*/audio*) via real<video>/<audio>elements driven withdart:js_interop, with the video surface embedded throughdart:ui_web'splatformViewRegistry.registerViewFactory, emitting the same{state, positionMs, durationMs, width, height}(video) /{state, positionMs, durationMs}(audio) event shape as iOS/Android. shareFile, PDF native rendering, and embedded webview are still not implemented — see README for why (PDF.js integration was investigated and deliberately deferred as a documented follow-up rather than forced in; webview is out of scope for every platform in this contract).