Open zoriya opened 11 months ago
When the offset renderer is enabled, and you run new Jassub(...) with a video that as not started playing, this error is thrown:
new Jassub(...)
Uncaught DOMException: OffscreenCanvas.width setter: Cannot set width of placeholder canvas transferred to worker. _render jassub.js:681 _onmessage jassub.js:783 onmessage jassub.js:120 JASSUB jassub.js:120
This is my new call:
new Jassub({ video: player.current, workerUrl: "/_next/static/chunks/jassub-worker.js", wasmUrl: "/_next/static/chunks/jassub-worker.wasm", legacyWasmUrl: "/_next/static/chunks/jassub-worker.wasm.js", subUrl: value.link, fonts: fonts, });
(Since September 2023, OffscreenCanvas is stable in FF, so this is not like #10)
OffscreenCanvas
just firefox things, feel free to disable offscreen canvas in ff, i cba fixing this for firefox for the 5th time, they simply can't implement it properly
When the offset renderer is enabled, and you run
new Jassub(...)
with a video that as not started playing, this error is thrown:This is my new call:
(Since September 2023,
OffscreenCanvas
is stable in FF, so this is not like #10)