ffmpegwasm / ffmpegwasm/ffmpeg.wasm

Support for Running in Workers without `document` Object

Open
#258 2 comments 4 reactions 0 assignees View on GitHub
Dominant language
C
Stars
17.8k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

At the moment, FFmpeg.wasm cannot be run on a Service Worker since Service Worker does not have access to `document`.

One reason this does not work is due to the usage of `resolve-url` which fails if the `document` object is not available.

One would also have to change the way the script is injected by using `importScripts` over `document.createElement('script')` if `document` is not available.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.