Commit 216d0dcf authored by Linshizhi's avatar Linshizhi

enable blockbased transfer in encww.

parent 89a84413
......@@ -83,10 +83,14 @@ async function deBridging() {
}
async function init(msg) {
let info = getInfoFromMsg(msg), ret;
let info = getInfoFromMsg(msg);;
src = new Channel(info.size, SharedArrayBuffer, info.shm);
ident = info.ident;
if (info.blocksize > 0) {
src.enableBlockMode(info.blocksize);
}
// Wait encoder init
while (encoder == null)
await sleep(100);
......
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