R
R
rusrich2022-03-06 12:18:11
JavaScript
rusrich, 2022-03-06 12:18:11

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

1 answer(s)
C
calculator212, 2022-03-06
@calculator212


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.
how do you answer if you don't even show the code?
After a short time the player starts to fill up all the RAM of the PC and the application slows down
In 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 question

Ask a Question

731 491 924 answers to any question