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 混流输出] 持久缓存相关文件 #4667

Merged
merged 2 commits into from
Mar 5, 2024

Conversation

WakelessSloth56
Copy link
Contributor

@WakelessSloth56 WakelessSloth56 commented Mar 4, 2024

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

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

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

抱歉刚刚 PR 错分支了,我记得能改的啊,但是点了 Edit 之后,目标分支没有下拉选择了()?

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

Co-authored-by: lainio24 <lainio24@outlook.com>
@the1812 the1812 merged commit 02e1305 into the1812:preview-features Mar 5, 2024
1 check passed
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.

None yet

2 participants