ffmpegwasm / ffmpegwasm/ffmpeg.wasm

Store WASM file in localStorage

オープン
#358 コメント 4 件 リアクション 0 件 担当者 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 を短くまとめたダイジェスト。