videocall-rs icon indicating copy to clipboard operation
videocall-rs copied to clipboard

Where do encoderWorker.min.js / decoderWorker.min.js come from?

Open tgrushka opened this issue 3 months ago • 3 comments

Hi, thanks again for this! Trying to find source of encoderWorker.min.js and decoderWorker.min.js.

Is it:

  • https://github.com/chris-rudmin/opus-recorder or
  • https://github.com/zhukov/opus-recorder or from somewhere else?

Looks generated, possibly from one of the above. Would be nice to have a few docs about + automation/build script to import/sync this library. Would be good to repro from its source in case of updates, bugfixes, etc.

I found the unminified digging through PRs but it didn't help much: https://raw.githubusercontent.com/security-union/videocall-rs/959def70da6ea9cb376e088f0d873810bab80120/yew-ui/scripts/encoderWorker.js

Thank you!

tgrushka avatar Sep 08 '25 22:09 tgrushka

P.S. This error message in browser console prompted me to ask about this (I think when switching audio sources in meeting/preview):

Stopping Microphone audio encoder
videocall-ui-5a1ead9940d11707.js:839 Microphone audio encoder stopped and cleaned up
encoderWorker.min.js:1 Uncaught TypeError: Cannot read properties of undefined (reading 'forEach')
    at MessagePort.<anonymous> (encoderWorker.min.js:1:384754)

... but this doesn't occur every time switching audio devices.

tgrushka avatar Sep 08 '25 22:09 tgrushka

Hey @tgrushka it comes from https://github.com/security-union/videocall-rs/pull/116

I will checkin the code to a different repo and add it as a submodule, ese github thinks that videocall.rs is majority Javascript XD

darioalessandro avatar Sep 10 '25 11:09 darioalessandro

What do you think?

darioalessandro avatar Oct 08 '25 02:10 darioalessandro