Skip to content

Conversation

nicolo-kira
Copy link
Contributor

In our local application we noticed that if you run the ffmpeg-wasm convert engine multiple times in a row, even after calling the VideoJS dispose function, the plugin loads the ffmpeg workers into the browser on every conversion. This caused a memory leak and eventual crash in our application, as the number of workers trying to run kept growing and growing

I've added a dispose hook in the convert engine similar to the record engine, which would be called when the player is disposed of, and cleans up the ffmpeg workers to avoid the memory leak.

@coveralls
Copy link

Coverage Status

coverage: 71.353% (-0.09%) from 71.445%
when pulling b5d97e4 on kira:fix-ffmpeg-wasm-leak
into 1285cec on collab-project:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants