mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-19 06:43:42 +00:00
feat(extension): add streaming FFmpeg WASM merge runtime
This commit is contained in:
1 parent
62e8ab3cef
commit
9124976b5c
29 files changed
+1970
-15
No files matched your search
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user