Answer the question
In order to leave comments, you need to log in
How to reduce memory consumption in an ElectronJS application?
Good afternoon.
I have a desktop video player application written in ElectronJS.
The playback stream takes from the server in M3U8 (hls) format.
This whole thing is reproduced by Flowplayer with the hls.js module.
After a short time the player starts to fill up all the PC's RAM and the application slows down. (In total, the PC has 4 GB, 2 of which are consumed by the application)
I can’t figure out how to either clear the memory by timing or set the maximum memory consumption limit.
Suggest options.
Answer the question
In order to leave comments, you need to log in
how do you answer if you don't even show the code?
I can’t figure out how to make it so that either memory is cleared by timing, or set the maximum limit for memory consumption.
After a short time the player starts to fill up all the RAM of the PC and the application slows downIn general, it looks like you are adding something to the buffer and not clearing it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question