ffmpegwasm / ffmpegwasm/ffmpeg.wasm

Store WASM file in localStorage

Đang mở
#358 4 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
C
Star
17.8k
Fork
1.1k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.