Commit ed7a15b7 authored by Linshizhi's avatar Linshizhi

Use absolute path to load web worker script.

parent 4cda2f75
...@@ -89,11 +89,11 @@ export class H264EncWWGroup extends WWGroup { ...@@ -89,11 +89,11 @@ export class H264EncWWGroup extends WWGroup {
// in order. // in order.
// Create Muxer // Create Muxer
this.#muxWorker = new WW("MUX", '../resources/workers/muxWW.js'); this.#muxWorker = new WW("MUX", '/paraencode/resources/workers/muxWW.js');
// Create Encoder // Create Encoder
for (let i = 0; i < this.#numOfEncWorker; ++i) { for (let i = 0; i < this.#numOfEncWorker; ++i) {
let worker = new WW("ENC_" + i, '../resources/workers/encWW.js'); let worker = new WW("ENC_" + i, '/paraencode/resources/workers/encWW.js');
this.#encWorkers.push(worker); this.#encWorkers.push(worker);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment