Open vusirikala opened 2 years ago
Hi @vusirikala,
from your description I would guess the error is coming from here: https://github.com/chrisguttandin/media-encoder-host-broker/blob/e92fb44e0cfa4da3b1830b9302559724ce2bf8a2/src/module.ts#L36
It's where postMessage()
is used internally to transfer the port
to the worker. It looks like port
is not a MessagePort
for some reason.
Can you try to log the following:
import { register } from 'extendable-media-recorder';
import { connect } from 'extendable-media-recorder-wav-encoder';
const port = await connect();
console.log(port);
await register(port);
I'm curious what port
actually is.
It would also be helpful to know which browser you're using? Or is it happening in multiple browser?
I tried to add
It gives me the following error.
Based on the call stack, the register function in extendable-media-recorder called
media-encoder-host-broker/src/module.ts:36
, which calledbroker-factory/src/module.ts:59
, which calledbroker-factory/src/module.ts:57
. And this line gave error.I kindly request you to help me fixing this.