security-union/videocall-rs

audio decoding error

dsaetgareev opened this issue · 3 comments

Hello. I use part of the project code in my project, the code responsible for transferring the video and audio stream, I transfer chunks via webtrc. The video works without errors, while decoding the audio I get the error "Uncaught Error: closure invoked recursively or after being dropped". I've been struggling with this problem for three days now. Maybe you also faced this problem?
Screenshot from 2023-08-31 21-02-41
Screenshot from 2023-08-31 21-04-38
Screenshot from 2023-08-31 22-00-25

Hey @dsaetgareev indeed I have seen this!!

this is likely because the error and output callbacks are being deallocated by rust but then javascript is trying to call them, to solve this simply call:

forget(error)
forget(output)

or store those callbacks such that they do not get dropped

Dario, hello!!! I just saw your message and immediately followed your advice, and everything worked!!! Added
error.forget();
output.forget();
Dario, thank you very much for your help!!
image

that is awesome !!! 😄 glad I was able to help!