feat(extension): add streaming FFmpeg WASM merge runtime

This commit is contained in:
Levi committed 2026-09-13 15:23:29 +08:00
1 parent 62e8ab3cef
commit 9124976b5c
29 files changed
+1970 -15

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)
}