Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[插件 - 下载视频 - WASM 混流输出] 持久缓存相关文件 #4666

Closed

Conversation

WakelessSloth56
Copy link
Contributor

参见议题 #4648
由于浏览器缓存机制,WASM 文件缓存失效很快。
(个人猜测可能是因为文件过大,具体原因没来得及调查验证。)

使用 IndexedDB 持久缓存相关文件,数据库版本使用 Bilibili-Evolved 的版本号。
此次本插件更新后,正常情况下,以下情景会下载相关文件并创建/更新缓存:

  • 第一次使用本插件
  • 清除浏览器缓存后再次使用本插件
  • Bilibili-Evolved 更新后再次使用本插件

关于我多次提到的 “基于 WebCodecs 的插件”(#4648#4615),因为我近期确实没有太多空闲时间来仔细研究 WebCodecs,所以可能短期内写不出来了,于是就凑了点时间先把 WASM 插件的缓存做了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant