feat: add FFmpeg WASM runtime (#1512)

This commit is contained in:
Levi authored and GitHub committed 2026-09-16 00:38:22 +08:00
1 parent 46c34f2e92
commit c667f097dc
31 files changed
+2305 -24

No files matched your search

+4
View File
@@ -1484,6 +1484,7 @@ func TestDownloader_ExtensionRuntimeWebViewInjected(t *testing.T) {
value, err := runtime.Eval(`(async () => ({
hasRuntime: !!gopeed.runtime,
hasBlob: !!(gopeed.runtime && gopeed.runtime.blob),
hasFFmpegMerge: typeof gopeed.runtime.ffmpeg.merge,
hasCreateObjectURL: typeof gopeed.runtime.blob.createObjectURL,
hasRevokeObjectURL: typeof gopeed.runtime.blob.revokeObjectURL,
hasWebView: !!(gopeed.runtime && gopeed.runtime.webview),
@@ -1502,6 +1503,9 @@ func TestDownloader_ExtensionRuntimeWebViewInjected(t *testing.T) {
if result["hasRuntime"] != true {
t.Fatalf("expected runtime injection, got %#v", result)
}
if result["hasFFmpegMerge"] != "function" {
t.Fatalf("expected ffmpeg injection, got %#v", result)
}
if result["hasBlob"] != true {
t.Fatalf("expected blob injection, got %#v", result)
}