ffmpegwasm / ffmpegwasm/ffmpeg.wasm

Store WASM file in localStorage

未关闭
#358 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
C
星标
17.8k
派生
1.1k
PR 合并指标
30 天内没有已合并 PR

描述

The Library is really good, but the only thing is that it takes very long to load the library cause it is humungous. Which is sometimes frustrating as a developer and will obviously be frustrating to the consumer.

The Idea I have is that we can store a compressed WASM file and then store it in the localStorage. Then when the load function is called and if the corePath is the same we can directly get the file from localStorage and inject it.
We can offer a flag like cacheLocalStorage: boolean, to configure this.
If the WASM file is not there in localStorage we can download it.
We can do similar stuff with worker.js and core.js files, which are much smaller than the WASM file.
We should also check the limit of localStorage to avoid errors.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。